On 2014-07-22 08:17, Nicolás wrote:
After maintaining an old version of Postfix for some longer time, I
finally decided to jump to version 2.11 and currently I'm tuning it
up. I'm having an issue with smtpd_relay_restrictions. At this time,
the configuration is the default one:
smtpd_relay_restrictions =
permit_mynetworks
permit_sasl_authenticated
defer_unauth_destination
[ snipped ]
my aim is to specifically allow
certain IPs to use my mail server as relayhost, otherwise reject the
requests.
[ snipped ]
So, here goes the question: Is there a way to only whitelist certain
IPs to use this server as the relayhost and reject anyone else but
without affecting incoming e-mails?
On: http://www.postfix.org/postconf.5.html#permit_mynetworks
permit_mynetworks
Permit the request when the client IP address matches any network or
network address listed in $mynetworks.
I think the answer you seek can be found at:
http://www.postfix.org/postconf.5.html#mynetworks
Alex