Norbert Schmidt via Postfix-users:
> Hello, 
> 
> as many people we do have problems delivering mail through the Microsoft
> MX'es which are used by a lot of company domains. All these domains use MX
> records with *.protection.outlook.com or *.prod.outlook.com. 
> 
> I am looking for a way to send mail to domains that have such a mx record
> through a different transport (for instance through the mailjet service) but
> send all other mail the "normal" way. 
>
> As I do not know in advance that a domain is using a M$-MX host, I cannot
> put all these domains into the transport table by hand. 
> 
> I tried to use a regular expression "/^.*\s+prod\.outlook\.com\.$/" in a
> file and then let smtp_generic_maps use it with "smtp_generic_maps =
> pcre:/etc/postfix/outlook_mx_patterns"
> 
> My plan was to us it as a filter in transport.
> 
> The problem is, smtp_generic_maps does not accept reglar expressions. 

Of course it does support regexp: and pcre: tables, but you need to
replace a destination MX or A recored, not the recipient address.

This could be a use case for
https://www.postfix.org/postconf.5.html#smtp_dns_reply_filter but
that feature currently has no REPLACE operation.

Another option would be to use the DNS resolver (Bind, unbound, etc)
support to manipulate zone lookups.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to