On 20.03.18 14:41, phep wrote:
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.

configure SMTP authentication instead of playing with this.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I wonder how much deeper the ocean would be without sponges.

Reply via email to