Hi,

I'm trying to create postfix master process listening on port 2525 and redirect all email send trough this port to an external address.

I create regexp table "/etc/postfix/canonical-redirect-test" to map any address to the external address I want, test query with postmap return the expected address.

/^.+@.+$/     t...@example.com

I add new process in /etc/postfix/master.cf

:2525 inet n     -       n       -       -   smtpd
    -o canonical_maps=regexp:/etc/postfix/canonical-redirect-test
    -o virtual_alias_maps=regexp:/etc/postfix/canonical-redirect-test

I also try other settings with "recipient_canonical_maps" or "virtual_maps" but email are always send to the original recipient address and not to t...@example.com.

Thanks,


Reply via email to