#!/usr/local/bin/perl
# Enable postgrey

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'postgrey_ecannot'});
$err = &check_postgrey();
&error($err) if ($err);
&ui_print_unbuffered_header(undef, $text{'postgrey_title2'}, "");

&obtain_lock_postgrey();
&enable_postgrey();
&release_lock_postgrey();
&run_post_actions();
&webmin_log("enable", "postgrey");

&ui_print_footer("postgrey.cgi", $text{'postgrey_return'});

