diff options
-rwxr-xr-x | postfix_wizard/Postfix.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix_wizard/Postfix.pm b/postfix_wizard/Postfix.pm index d494ede8..a324f16f 100755 --- a/postfix_wizard/Postfix.pm +++ b/postfix_wizard/Postfix.pm @@ -168,7 +168,7 @@ sub new { sub check_sendmail { my $in = 'interactive'->vnew('su', 'Check sendmail'); - my $w = $in->wait_message(N("Postfix Server"), N("Check if sendmail is installed, to avoid conflict....")); + my $w = $in->wait_message(N("Postfix Server"), N("removing Sendmail to avoid conflict....")); my $test = any { /sendmail/ } system("rpm -qa sendmail"); !$test or return 'error_sendmail'; undef $w; @@ -276,7 +276,7 @@ sub do_it_external { foreach (@conf) { system("/usr/sbin/postconf -e '$_'"); } - if (defined $o->{var}{wiz_ext_mail_relay}) { + if (defined $o->{var}{wiz_ext_mail_relay} && $wiz_domain_name ne $o->{var}{wiz_mail_masquerade}) { my $file = "/etc/postfix/canonical"; my $canon = "\n\@$wiz_domain_name $o->{var}{wiz_mail_masquerade}"; my $t; |