On Thu, July 2, 2009 8:46 am, sosogh said:

> I am running two  postfix instances:
> 0.0.0.0:25
> 127.0.0.1:10025
>
> I want 0.0.0.0:25 to use  virtual_transport = lmtp:unix:/tmp/dspam.sock
> 127.0.0.1:10025 to  use    virtual_transport = dovecot
>
> so I add
> virtual_transport = lmtp:unix:/tmp/dspam.sock into /etc/postfix/main.cf
> and
>  add the following lines into /etc/postfix/master.cf
> 127.0.0.1:10025 inet n  -   -   -   -  smtpd
>     -o virtual_transport=dovecot
>     -o
> receive_override_options=no_header_body_checks,no_unknown_recipient_checks
>
> but it doesnot work,It is said that virtual_transport is used by
> TRIVIAL-REWRITE
> I donot know how to config  127.0.0.1:10025  to use my user-defined
> TRIVIAL-REWRITE
> (I know using user-defined cleanup service via parameter
> cleanup_service_name)

You don't have two instances of Postfix, you just have two smtpd(8)
listeners. The transport selection is global to a Postfix instance, so you
can't have different virtual transports depending on the entry point. But
why are you using virtual_transport anyway? It looks like you're looking
into using dspam as a content filter. In that case, use content_filter and
not virtual_transport.

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to