Thanks Wietse, it worked!

Il giorno mer 1 apr 2020 alle ore 15:58 Wietse Venema
<[email protected]> ha scritto:
>
> [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

Reply via email to