flowhosts:
> Nov 14 10:53:54 fallback postfix/smtpd[7187]: warning: restriction 
> check_recipient_a_access returns OK for vasilnhdgz0sdiminut...@netgooya.com
> Nov 14 10:53:54 fallback postfix/smtpd[7187]: warning: this is not 
> allowed for security reasons
> Nov 14 10:53:54 fallback postfix/smtpd[7187]: warning: use DUNNO instead 
> of OK if you want to make an exception
> Nov 14 10:53:54 fallback postfix/smtpd[7187]: NOQUEUE: reject: RCPT from 
> unknown[192.168.xxx.xxx]:53698: 451 4.3.5 Server configuration error; 

This patch applies to Postfix 3.0 and later.

        Wietse

--- ./src/smtpd/smtpd_check.c-  2017-05-31 16:29:46.000000000 -0500
+++ ./src/smtpd/smtpd_check.c   2017-11-16 09:32:46.898378490 -0600
@@ -4044,7 +4044,7 @@
 static void forbid_whitelist(SMTPD_STATE *state, const char *name,
                                     int status, const char *target)
 {
-    if (status == SMTPD_CHECK_OK) {
+    if (state->discard == 0 && status == SMTPD_CHECK_OK) {
        msg_warn("restriction %s returns OK for %s", name, target);
        msg_warn("this is not allowed for security reasons");
        msg_warn("use DUNNO instead of OK if you want to make an exception");

Reply via email to