Answer the question
In order to leave comments, you need to log in
How to configure postfix transport relay with MX record filter?
Good afternoon! There was a problem here, about which Google and stackoverflow give very vague information.
Bottom line: there are a number of very picky mail services (hello, gmail! hello, outlook!), Which drop mail in spam despite the configured DKIM, SPF, PTR and even ADSP. For such picks, I had to configure postfix transport via mandrill. But here's the problem: you can assign a transport to the recipient's domain, and it works; however, I want to choose transport not for the domain, but for its MX record, since there is Google Apps.
I found only one answer in the topic ( serverfault.com/questions/663418/relay-host-based-... ) but in the same place, in the comments, it is marked as incorrect.
So, how can you configure the choice of SMTP transport in postfix not by domain, but by its mx records?
More precisely, now in /etc/postfix/transport:
outlook.com smtp:[smtp.mandrillapp.com]:587
live.ru smtp:[smtp.mandrillapp.com]:587
hotmail.com smtp:[smtp.mandrillapp.com]:587
yahoo.com smtp:[smtp.mandrillapp.com]:587
gmail.com smtp:[smtp.mandrillapp.com]:587
googlemail.com smtp:[smtp.mandrillapp.com]:587
aspmx.l.google.com smtp:[smtp.mandrillapp.com]:587
microsoft-com.mail.protection.outlook.com smtp:[smtp.mandrillapp.com]:587
MX:[*.google.com] smtp:[smtp.mandrillapp.com]:587
MX:[*.outlook.com] smtp:[smtp.mandrillapp.com]:587
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question