no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:linux:postfix_relay_on_recipient_domain [2015/01/09 12:47] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Choose relay based on recipient domain ====== | ||
| + | To choose an SMTP relay server based on the recipient domain. | ||
| + | / | ||
| + | < | ||
| + | #relayhost = | ||
| + | #Remove any relayhost entry | ||
| + | smtp_sender_dependent_authentication = yes | ||
| + | transport_maps = hash:/ | ||
| + | </ | ||
| + | |||
| + | / | ||
| + | < | ||
| + | yahoo.com smtp: | ||
| + | </ | ||
| + | |||
| + | Run the following | ||
| + | <code bash> | ||
| + | postmap / | ||
| + | service postfix restart | ||
| + | </ | ||
| + | |||
| + | ===== Alternate setup ===== | ||
| + | The example below is to define alternate transport for given exceptions. | ||
| + | / | ||
| + | < | ||
| + | smtp_sender_dependent_authentication = yes | ||
| + | transport_maps = hash:/ | ||
| + | </ | ||
| + | |||
| + | / | ||
| + | < | ||
| + | gmail.com smtp: | ||
| + | </ | ||
| + | |||
| + | ==== References ==== | ||
| + | * http:// | ||
| + | * http:// | ||



