Conditional relay with credential based on domain recipient?

1

I use postfix to send email directly, but sometimes outlook.com won't deliver my business email messages.

After changing the SPF record, the delivery succeeded, but goes to the recipient's Spam folder.

So, to assure the email arrives in the recipient's Inbox, I'd like postfix to use my email provider's smtp server, logging with the credentials based on sender, only when I send to outlook.com (and other Microsoft domains, i.e., live.com, live.ca, msn.com, hotmail.com, hotmail.co.au, hotmail.co.uk, hotmail.co.za, hotmail.co.nz, and hotmail.ca, among others) .

For example: 1) pippo@mydomain.com -> user@anydomain.com, send directly to anydomain.com mx server

2) pippo@mydomain.com -> user@outlook.com, send through smtp.myproviderdomain.com using credential pippo@mydomain.com / password

3) pluto@mydomain.com -> user@outlook.com, send through smtp.myproviderdomain.com using credential pluto@mydomain.com / password

Some configuration using smtp_sender_dependent_authentication = yes and smtp_sasl_password_maps table

How may one tell to postfix using this directive for only outlook.com and associated domains?

jangar

Posted 2015-02-20T15:14:04.037

Reputation: 11

No answers