[email protected]:
> Hi everybody, is it possible to define a transport map based on
> recipient mail server address instead of recipient domain?
Postfix reads the transport map before it knows the server IP address.
You can override the transport map with a FILTER command.
However:
- This works only for mail received with SMTP.
- If a message has multiple recipients, the last FILTER command wins.
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
# must go before permit_mynetworks
check_recipient_mx_access hash:/etc/postfix/rcpt_mx_access
permit_mynetworks
reject_unauth_destination
/etc/postfix/rcpt_mx_access
123.456.123.456 FILTER smtp:[relayhost.com]
Wietse