Loading ...
Sorry, an error occurred while loading the content.

question of different postfix instance use different virtual_transport

Expand Messages
  • sosogh
    HI list 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
    Message 1 of 2 , Jul 1, 2009
    • 0 Attachment
      HI list

      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)

      Any hints is appreciated

      Thank you




      --------------
      sosogh
      2009-07-02
    • Magnus Bäck
      ... 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
      Message 2 of 2 , Jul 2, 2009
      • 0 Attachment
        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
        magnus@...
      Your message has been successfully submitted and would be delivered to recipients shortly.