Postfix can verify recipients against the final destination server. Read this:http://www.postfix.org/ADDRESS_... [by simon_matthews]
This is what i tried after doing some google searchrelay_domains = mailserver.comsmtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destinationtransport_maps = hash:/... [by ryan-rootr9]
I wish to set up Postfix to use an external relay depending on the destination hostname, ie:
If destination hostname is *.outlook.com, use relay some_smtp.example.com
If any other destination hostname, use local relay
I know it is possible to specify a relay depending on the sender address (using sender_dependent_relayhost_maps), but it's impractical in my situation.
The goal is to use a differ