Hi all,
# uname -a FreeBSD 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0: Tue Apr 7 03:01:12 UTC 2015 # postconf mail_version mail_version = 2.11.5 I have a couple of servers setup to relay mail from customers. Relay access to control by IP address using mynetworks parameter and a MySQL backup. # postconf mynetworks mynetworks = proxy:mysql:/usr/local/etc/postfix/mysql/mynetworks.cf #cat /usr/local/etc/postfix/mysql/mynetworks.cf user = some_user password = some_pass dbname = mail query = SELECT '%s' as ip FROM postfix_mynetworks WHERE INET_ATON('%s') BETWEEN ip_start_aton AND ip_end_aton AND active='y' /* mynetworks.cf */; hosts = mysqlserverhost This setup has works reasonable for years, but we do occasionaly run into problems if an end user setups mail forwarding on thier mailbox to thier personal hotmail or outlook.com address. This results in us getting blacklisted by Microsoft (one problem is that forwarding breaks SPF, another problem the user occasional forwards thier spam). Being listed in mynetworks means my customers can sender email from anydomaintheylike.com via our servers. Is there a way for me to configure postfix to permit IP 1.2.3.4 to relay only mail addressed from example1234.com, and IP 2.3.4.5 to relay only mail addressed from example2345.com and so on and so forth? I appericate this wouldn't be full proof, but it would serve a purpose in my setup. Kind regards Steve DISCLAIMER This email is for the use of the intended recipient(s) only. If you have received this email in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this email without the authors prior permission. We have taken precautions to minimise the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. The information contained in this communication may be confidential and may be subject to the attorney-client privilege. If you are the intended recipient and you do not wish to receive similar electronic messages from us in future then please respond to the sender to this effect.