3 # postfix-module by Guillaume Cottenceau <gc@mandrakesoft.com>,
4 # for webmin by Jamie Cameron
6 # A form for editing address rewriting for Postfix
8 # << Here are all options seen in Postfix sample-rewrite.cf >>
10 require './postfix-lib.pl';
12 $access{'address_rewriting'} || &error($text{'address_rewriting_ecannot'});
13 &ui_print_header(undef, $text{'address_rewriting_title'}, "");
15 $default = $text{'opts_default'};
16 $none = $text{'opts_none'};
17 $no_ = $text{'opts_no'};
19 print &ui_form_start("save_opts.cgi");
20 print &ui_hidden("_log_form", "opts");
21 print &ui_table_start($text{'address_rewriting_title'}, "width=100%", 4);
23 &option_yesno("allow_percent_hack");
24 &option_yesno("append_at_myorigin");
26 &option_yesno("append_dot_mydomain");
27 &option_yesno("swap_bangpath", 'help');
29 &option_radios_freefield("empty_address_recipient", 35, $text{'opt_empty_recip_default'});
31 &option_radios_freefield("masquerade_domains", 35, $none);
33 &option_radios_freefield("masquerade_exceptions", 35, $none);
35 print &ui_table_end();
36 print &ui_form_end([ [ undef, $text{'opts_save'} ] ]);
38 &ui_print_footer("", $text{'index_return'});