Handle hostnames with upper-case letters
[webmin.git] / postfix / local_delivery.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 controlling local delivery.
7 #
8 # << Here are all options seen in Postfix sample-local.cf >>
9
10 require './postfix-lib.pl';
11
12
13 $access{'local_delivery'} || &error($text{'local_delivery_ecannot'});
14 &ui_print_header(undef, $text{'local_delivery_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", "local");
23 print &ui_table_start($text{'local_delivery_title'}, "width=100%", 4);
24
25 &option_radios_freefield("local_transport", 30, $text{'opts_local_transport_local'});
26
27 &option_radios_freefield("local_command_shell", 40, $text{'opts_local_command_shell_direct'});
28
29 &option_freefield("forward_path", 80);
30
31 &option_freefield("allow_mail_to_commands", 40);
32
33 &option_freefield("allow_mail_to_files", 40);
34
35 &option_freefield("default_privs", 25);
36
37 &option_radios_freefield("home_mailbox", 40, $text{'opts_home_mailbox_default'});
38
39 &option_radios_freefield("luser_relay", 40, $text{'opts_luser_relay_none'});
40
41 &option_freefield("mail_spool_directory", 40);
42
43 &option_freefield("mailbox_command", 60, $text{'opts_mailbox_command_none'});
44
45 &option_radios_freefield("mailbox_transport", 40, $text{'opts_mailbox_transport_none'});
46
47 &option_radios_freefield("fallback_transport", 40, $text{'opts_fallback_transport_none'});
48
49 &option_freefield("local_destination_concurrency_limit", 6);
50
51 &option_radios_freefield("local_destination_recipient_limit", 40, $text{'opts_local_destination_recipient_limit_default'});
52
53 &option_radios_freefield("prepend_delivered_header", 40, $text{'opts_prepend_delivered_header_default'});
54
55 print &ui_table_end();
56 print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
57
58 &ui_print_footer("", $text{'index_return'});
59
60
61
62