From d9a12ac3090d26768fcf855fb9c302804f367e7b Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Mon, 6 Jun 2005 05:45:59 +0000 Subject: fix to be able to launch wizard --- postfix_wizard/Postfix.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'postfix_wizard') diff --git a/postfix_wizard/Postfix.pm b/postfix_wizard/Postfix.pm index e0c745ba..109641a2 100755 --- a/postfix_wizard/Postfix.pm +++ b/postfix_wizard/Postfix.pm @@ -109,6 +109,8 @@ my %understanding = ( 2 => N('Expert - advanced options'), ); +my @yesorno = qw(yes no); push @yesorno, ""; + $o->{pages} = { welcome => { name => N("Internet mail configuration wizard") . "\n\n" . N("This wizard will help you configure an Postifx mail server for your network, or a Postfix mail relay."), @@ -162,7 +164,7 @@ $o->{pages} = { $::in->ask_warn(N('Error'), N('Please provide an Smtpd banner.')); return 1; } if (!$o->{var}{wiz_myhostname}) { $::in->ask_warn(N('Error'), N('You must provide an internet hostname of this mail system.')); return 1; } - if (!$o->{var}{wiz_domain_name}) { + if (!$o->{var}{wiz_mydomain}) { $::in->ask_warn(N('Error'), N('You must specifies the local internet domain name.')); return 1; } }, }, @@ -171,12 +173,12 @@ $o->{pages} = { pre => sub { $o->{var}{wiz_smtpd_helo_required} ||= $postfix->{smtpd_helo_required}; $o->{var}{wiz_disable_vrfy_command} ||= $postfix->{disable_vrfy_command}; - smtpd_recipient_restrictions - smtpd_data_restrictions + #smtpd_recipient_restrictions + # smtpd_data_restrictions }, data => [ - { label => N('helo required:'), val => \$o->{var}{wiz_smtpd_helo_required}, fixed_list => \@yesrorno, help => '' }, - { label => N('Disable verify command:'), val => \$o->{var}{wiz_disable_vrfy_command}, fixed_list => \@yesrorno, help => '' }, + { label => N('helo required:'), val => \$o->{var}{wiz_smtpd_helo_required}, fixed_list => \@yesorno, help => '' }, + { label => N('Disable verify command:'), val => \$o->{var}{wiz_disable_vrfy_command}, fixed_list => \@yesorno, help => '' }, ], next => 'message_config', }, -- cgit v1.2.1