Bypass Postfix 'reject_unknown_client_hostname' for authenticated SMTP clients

tcdaly asked:

In my postfix configuration, I’ve switched on smtpd_client_restrictions = reject_unknown_client_hostname as an anti-spam measure.

However, sometimes I fall foul of this myself when I make an authenticated SMTP connection to the server from remote hosts that don’t have reverse DNS. My attempt to send an email gets rejected.

Is there any way to ignore smtpd_client_restrictions = reject_unknown_client_hostname in the case of an authenticated client?

My answer:

You just need to permit authenticated clients, for instance:

smtpd_client_restrictions = 
        #...the rest of them

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.