Problem in relaying outbound mails for specific smtp
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem in relaying outbound mails for specific smtp
Hi Guys,
I have this client, and they have a Postfix Email Server, this client wants to make all outbound mails for the domain aol.com to relay on this specific smtp server (an smtp relay server that is located on their backup ISP provider). One problem is that they do not want to relay other outbound mails such as yahoo.com or gmail.com for this smtp.
The reason they want to do this is that Aol does not allow to accept their mails that are comming from our clients postfix server unless it comes from their smtp relay that are located in their backup ISP provider.
edit /etc/transport. add this line
aol.com relay:[<your SMTP fqdn>]
edit main.cf add/edit this line :
transport_maps = hash:/etc/postfix/transport
adjust the path accordingly.
then run on the command prompt :
# postmap transport
# postfix reload
to check the relaying works :
send an email to aol.com while executing this line on the linux :
# tail /var/log/maillog -f
a line like this will show ( this line is example only ) :
Sep 1 11:15:31 dms postfix/smtp[28951]: 8AE51110C0A: to=<abc@aol.com>, relay=<your SMTP fqdn>, delay=9, status=sent (250 2.0.0 k814FK7p012667 Message accepted for delivery)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.