Etienne Gladu via Postfix-users:
> In short, I want postfix to change the recipient of all email going through
> port 7025, 7026, etc
> In exemple : email came from port 7025, then redirect/change recipient to
> [email protected]
> if its 7026, redirect/change recipient to [email protected]
The client (and server port) are available in the SMTP policy
delegation protocol.
If you were to use the Perl code in the SMTPD_POLICY_RADME.html it
might look like:
if ($attr{'client_port'} == 7025) { print("action=redirect
[email protected]\n\n"); }
But it may also be possible with postfwd, or with policy plugins in other
languages.
> Maybe it's just not possible with postfix?
It is possible.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]