Martin LEUSCH:
> 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

The canonical and virtual_alias mappings are implemented
in the cleanup daemon, not smtpd.

/etc/postfix/master.cf:
    :2525 inet n     -       n       -       -   smtpd
        -o cleanup_service=cleanup_2525
    cleanup_2525 unix  n -   n       -       0   cleanup
        -o canonical_maps=regexp:/etc/postfix/canonical-redirect-test
        -o virtual_alias_maps=regexp:/etc/postfix/canonical-redirect-test

        Wietse

Reply via email to