Hi, I use postfix version 2.6 or 2.10 I forget

Can you test setting these settings ?
In main.cf

#relay_domains = test.uconn.edu $mydestination
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

tfix]# more relay_recipients
angelo.fazz...@test.uconn.edu OK



Not sure is   virtual_alias_domains setting may help you as well ?

Good Luck.

-ANGELO FAZZINA

ITS Service Manager:
Spam and Virus Prevention
Mass Mailing
G Suite/Gmail

ang...@uconn.edu
University of Connecticut,  ITS, SSG, Server Systems
860-486-9075

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of phep
Sent: Tuesday, March 20, 2018 9:42 AM
To: postfix-users@postfix.org
Subject: Howto configure Postfix to relay messages from a specific email address

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

Reply via email to