Handle hostnames with upper-case letters
[webmin.git] / postfix / save_opts_canonical.cgi
1 #!/usr/local/bin/perl
2 #
3 # postfix-module by Guillaume Cottenceau <gc@mandrakesoft.com>,
4 # for webmin by Jamie Cameron
5 #
6 # Save Postfix options ; special because for canonical tables
7
8
9 require './postfix-lib.pl';
10
11 &ReadParse();
12
13 $access{'canonical'} || &error($text{'canonical_ecannot'});
14
15 #      &ui_print_header(undef, $text{'opts_title'}, "");
16
17
18 &error_setup($text{'opts_err'});
19
20
21 &lock_postfix_files();
22 &before_save();
23 &save_options(\%in);
24 &ensure_map("canonical_maps");
25 &ensure_map("recipient_canonical_maps");
26 &ensure_map("sender_canonical_maps");
27 &after_save();
28 &unlock_postfix_files();
29
30
31 &regenerate_canonical_table();
32
33 &reload_postfix();
34
35 &webmin_log("canonical");
36 &redirect("");
37
38
39