Thanks! I will try to reorganise that grouping as well. 

On 11/07/2017 16:38, Alex JOST wrote:

> Am 11.07.2017 um 17:21 schrieb Darren Share: 
> 
>> Hi,
>> 
>> I've posted this as a serverfault [1]question but had no bites so far.
>> 
>> I am receiving about 50 rejected emails per day because there is a typo
>> in the sending email address and it's hitting
>> reject_unknown_sender_domain:
>> 
>> Jul 10 12:21:31 serverb3 postfix/smtpd[6647]: NOQUEUE: reject: RCPT from
>> smtp.correctly-spelt-domain.co.uk[X.X.X.X]: 450 4.1.8
>> <[email protected]>: Sender address rejected: Domain not
>> found; from=<[email protected]> to=<[email protected]>
>> proto=ESMTP helo=<smtp.correctly-spelt-domain.co.uk>
>> 
>> I've added [email protected] OK to /etc/postfix/sender_access,
>> ran postmap /etc/postfix/sender_access and restarted postfix.
>> 
>> Despite check_sender_access hash:/etc/postfix/sender_access appearing in
>> my smtpd_recipient_restrictions list before reject_unknown_sender_domain
>> the emails are still being rejected for that reason. Why is this and how
>> can I fix it?
>> 
>> Postfix v2.11.3
>> 
>> Output of postconf -n:
> 
>> smtpd_relay_restrictions = permit_mynetworks reject_unauth_destination
>> reject_unauth_pipelining reject_invalid_hostname reject_non_fqdn_sender
>> reject_unknown_sender_domain reject_non_fqdn_recipient
>> reject_unknown_recipient_domain check_sender_access
>> hash:/etc/postfix/sender_access reject_rbl_client bl.spamcop.net
>> reject_rbl_client zen.spamhaus.org reject_rbl_client dul.dnsbl.sorbs.net
>> permit
> 
> You have 'reject_unknown_sender_domain' in 'smtpd_relay_restrictions' which 
> is evaluated before 'smtpd_recipient_restrictions'. Note that the reject is 
> delayed until RCPT TO.
> 
> http://www.postfix.org/postconf.5.html#smtpd_relay_restrictions
> http://www.postfix.org/postconf.5.html#smtpd_delay_reject

Reply via email to