diff --git a/postfix/save_sasl.cgi b/postfix/save_sasl.cgi index c2c906729..8f4f2e2b0 100755 --- a/postfix/save_sasl.cgi +++ b/postfix/save_sasl.cgi @@ -38,13 +38,13 @@ if (!$in{'login_none'}) { %newrecip = map { $_, 1 } split(/\0/, $in{'sasl_recip'}); foreach $o (&list_smtpd_restrictions()) { if ($newrecip{$o}) { - push(@recip, $o); + push(@recip, $o) if (&indexof($o, @recip) < 0); } else { @recip = grep { $_ ne $o } @recip; } } -&set_current_value("smtpd_recipient_restrictions", join(" ", &unique(@recip))); +&set_current_value("smtpd_recipient_restrictions", join(" ", @recip)); # Save SSL options if ($postfix_version >= 2.3) {