Hi,
Let's say my domain is example.com. We have a bunch of servers that are
authorised to use our SMTP server to relay their mail to the outside with
something like :
mynetworks: 192.168.250.0/24
So far, so good.
Now I have a sister organisation with domain example2.com that operates a
web app than needs to send mail through our Postfix server and I want to
relay mails sent from this web app provided the messages sender meets a
specific email address (say web...@example2.com).
How can I do that in main.cf ? Simply adding the web app server IP to
mynetworks would not do the trick since I'd rather not relay any email
traffic from this server, only this webapp messages (notwithstanding fake
headers).
I read through smtpd_reject_unlisted_recipient and smtpd_relay_restrictions
documentation but could not figure out how to do it.
Thanks in advance,
phep