Handle hostnames with upper-case letters
[webmin.git] / postfix / smtp.cgi
1 #!/usr/local/bin/perl
2 #
3 # postfix-module by Guillaume Cottenceau <gc@mandrakesoft.com>,
4 # for webmin by Jamie Cameron
5 #
6 # A form for SMTP client parameters.
7 #
8 # << Here are all options seen in Postfix sample-smtp.cf >>
9
10 require './postfix-lib.pl';
11
12
13 $access{'smtp'} || &error($text{'smtp_ecannot'});
14 &ui_print_header(undef, $text{'smtp_title'}, "");
15
16 $default = $text{'opts_default'};
17 $none = $text{'opts_none'};
18 $no_ = $text{'opts_no'};
19
20 # Start of form
21 print &ui_form_start("save_opts.cgi");
22 print &ui_hidden("_log_form", "smtp");
23 print &ui_table_start($text{'smtp_title'}, "width=100%", 4);
24
25 &option_radios_freefield("best_mx_transport", 25, $text{'opts_best_mx_transport_default'});
26
27 &option_radios_freefield("fallback_relay", 60, $default);
28
29 &option_yesno("ignore_mx_lookup_error", 'help');
30 &option_yesno("smtp_skip_4xx_greeting", 'help');
31
32 &option_yesno("smtp_skip_quit_response", 'help');
33
34 &option_radios_freefield("smtp_destination_concurrency_limit", 15, $default);
35
36 &option_radios_freefield("smtp_destination_recipient_limit", 15, $default);
37
38 &option_freefield("smtp_connect_timeout", 15);
39 &option_freefield("smtp_helo_timeout", 15);
40
41 &option_freefield("smtp_mail_timeout", 15);
42 &option_freefield("smtp_rcpt_timeout", 15);
43
44 &option_freefield("smtp_data_init_timeout", 15);
45 &option_freefield("smtp_data_xfer_timeout", 15);
46
47 &option_freefield("smtp_data_done_timeout", 15);
48 &option_freefield("smtp_quit_timeout", 15);
49
50 print &ui_table_end();
51 print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
52
53 &ui_print_footer("", $text{'index_return'});
54
55
56
57