David Touzeau:
> 
> Dear all
> 
> I have a problem according duplicate mail
> since last discuss with weitse 
> http://www.mail-archive.com/postfix-users@postfix.org/msg34944.html
> 
> I would like to specify et dedicated transport maps in a master.cf
> defined SMTP instance.
> But it seems that the instance did not want to read the
> transport_maps=hash:/etc/postfix/other.transport command line.
> In this case when the smtp instance try to send the mail for
> @test.example.com id did not find entries and return an error.
> 
> the question is ow to force the testsmtp instance to resolv 
> a new transport maps ?

transport_maps is used ONLY by the trivial-rewrite daemon.
To use different transport maps use multiple POSTFIX instances.
http://www.postfix.org/MULTI_INSTANCE_README.html

        Wietse
> 
> /etc/postfix/main.cf:
>     transport_maps = hash:/etc/postfix/transport
>     recipient_bcc_maps = pcre:/etc/postfix/copy.pcre
> 
> /etc/postfix/transport:
>     test.example.com    testsmtp:
> 
> /etc/postfix/copy.pcre
>       /^(.*)@the\.example\.com$/   ${1}@test.example.com
> 
> /etc/postfix/master.cf:
>     testsmtp      unix  -       -       n       -       -       smtp
>         -o smtp_generic_maps=pcre:/etc/postfix/testsmtp.pcre -o
> transport_maps=hash:/etc/postfix/other.transport
> 
> /etc/postfix/testsmtp.pcre
>     /^(.*)@test\.example\.com$/ ${1}@example.com
> 
> /etc/postfix/other.transport
> test.example.com      smtp:[10.10.5.2]:25
> 
> 
> 
> 
> 

Reply via email to