p***@gmail.com
2018-04-25 16:12:53 UTC
How with postfix can I allow relay for any SMTP client connection that the reverse DNS lookup on matches a domain? The mail server is using a DNS server I control that is final authority on that domain. My hundreds of clients in my domain are scattered over hundreds of different IP subnets on campus so maintaining an IP list for postfix in addition to DNS would be unneeded redundancy prone to error.
For sendmail this is as simple as adding the domain to /etc/mail/relay-domains
In postfix, conceptually I want to do:
mynetworks = *.mydomain.com
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
defer_unauth_destination
but mynetworks does not seem to accept non-IP address/mask values.
For sendmail this is as simple as adding the domain to /etc/mail/relay-domains
In postfix, conceptually I want to do:
mynetworks = *.mydomain.com
smtpd_relay_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
defer_unauth_destination
but mynetworks does not seem to accept non-IP address/mask values.