[email protected] wrote on 07/23/2018 05:04:45 PM:

> From: Allen Coates <[email protected]>
> To: [email protected]
> Date: 07/23/2018 05:05 PM
> Subject: Re: How to white list
> Sent by: [email protected]
> 
> 
> 
> On 23/07/18 21:17, [email protected] wrote:
> > I have whitelisted the ip in postscreen_access.cidr.  I can see the 
> > 'whitelisted' for postscreen in log.
> > But it does not get past smtpd.
> > 
> > I do not want to remove reject_invalid_helo_hostname as this really 
opens 
> > up more spam.  So how
> > do I white list the ip for smtpd?
> > 
> > Jul 23 13:53:32 postfix/smtpd[16279]: Anonymous TLS connection 
established 
> > from unknown[65.100.117.244]: TLSv1.2 with cipher AECDH-AES256-SHA 
> > (256/256 bits)
> > Jul 23 13:53:32 postfix/smtpd[16279]: NOQUEUE: reject: RCPT from 
> > unknown[65.100.117.244]: 450 4.7.1 Client host rejected: cannot find 
your 
> > reverse hostname, [65.100.117.244]; from=<[email protected]> 
> > to=<[email protected]> proto=ESMTP helo=<barracuda.slfcu.org>
> > Jul 23 13:53:33 postfix/smtpd[16279]: disconnect from 
> > unknown[65.100.117.244] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 
rset=1 
> > quit=1 commands=6/8
> > 
> > Thank you,
> > 
> > Durwin
> > 
> > === main.cf ===
> 
> [snip]
> 
> > shlib_directory = /usr/lib64/postfix
> > smtp_helo_name = mail.mycompany.com
> > smtpd_authorized_xclient_hosts = 172.23.93.0/24
> > smtpd_banner = mail.mycompany.com ESMTP $mail_name ($mail_version)
> 
> > smtpd_client_restrictions = reject_unknown_reverse_client_hostname
> THIS is the line which is rejecting the email;
> 
> you could try
> smtpd_client_restrictions = permit_mynetworks,
>    check_client_access cidr:/etc/postfix/postscreen_access.cidr
>    reject_unknown_reverse_client_hostname

Thank you.  This fixed issue.  Though I can't figure why it was being
blocked in the first place.

> 
> anything white-listed by postscreen will bypass client restrictions also

I had it white-listed here.
postscreen_access_list = permit_mynetworks,
    cidr:/etc/postfix/postscreen_access.cidr

So why was it not passed?

> 
> > smtpd_delay_reject = yes
> > smtpd_helo_required = yes
> > smtpd_helo_restrictions = permit_mynetworks check_helo_access 
> > hash:/etc/postfix/helo_access reject_invalid_helo_hostname permit
> 
> Two useful (and safe) additions to your smtpd_helo_restrictions are:
> reject_invalid_helo_hostname, and
> reject_non_fqdn_helo_hostname
> these force the HELO argument to be RFC compliant
> 
> Hope this helps
> 
> Allen C

Thank you.  This helped immensely.

Durwin


This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain proprietary and/or confidential 
information which may be privileged or otherwise protected from 
disclosure. Any unauthorized review, use, disclosure or distribution is 
prohibited. If you are not the intended recipient(s), please contact the 
sender by reply email and destroy the original message and any copies of 
the message as well as any attachments to the original message.

Reply via email to