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

Re: problem of virtual_transport

Expand Messages
  • sosogh
    It turns out somebody seted out transport_maps and in transport_maps , sosogh.2288.org is seted to use transport dovecot because transport_maps has
    Message 1 of 1 , Jun 30, 2009
    • 0 Attachment
      It turns out somebody seted out "transport_maps"
      and in "transport_maps" , sosogh.2288.org is seted to use transport "dovecot"

      because transport_maps has higher precedence than virtual_transport,
      virtual_transport=dspam: does not work


      2009-07-01 11:51:22 sosogh wrote:

      >Hi list
      >
      >I want to use dspam as virtual_transport ,
      >but it doesnot work(I have restarted postfix after setting config),how to debug it?
      >This is my config:
      >
      >
      >[root@sosogh ~]# grep 'dspam' /etc/postfix/master.cf
      >dspam unix - n n - 10 pipe
      > flags=Ru user=vmail argv=/usr/local/bin/dspam --debug --deliver=innocent
      > --user mydspam -i -f $sender -- $recipient
      >
      >
      >[root@sosogh ~]# postconf | grep virtual_transport
      >virtual_transport = dspam:
      >
      >
      >[root@sosogh ~]# postconf | grep dovecot
      >mailbox_command = /usr/libexec/dovecot/deliver
      >smtpd_sasl_path = dovecot-auth
      >smtpd_sasl_type = dovecot
      >
      >
      >[root@sosogh new]# postconf | grep virtual_mailbox_maps
      >virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
      >
      >
      >[root@sosogh ~]# postmap -q "bb@..." mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
      >sosogh.2288.org/bb/Maildir/
      >
      >
      >log:
      >Jul 1 11:17:48 sosogh postfix/pipe[27782]: D1E7074E726: to=<bb@...>, relay=dovecot, delay=0.13, delays=0.08/0.03/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
      >Jul 1 11:17:48 sosogh postfix/qmgr[27775]: D1E7074E726: removed
      >
      >
      > debug info:
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: extract_addr: input: <bb@...>
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: smtpd_check_addr: addr=bb@...
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: send attr request = rewrite
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: send attr rule = local
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: send attr address = bb@...
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: flags
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: flags
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: 0
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: address
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: address
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: bb@...
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: (list terminator)
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: (end)
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: rewrite_clnt: local: bb@... -> bb@...
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: send attr request = resolve
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: send attr sender =
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: send attr address = bb@...
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: flags
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: flags
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: 0
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: transport
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: transport
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: dovecot
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: nexthop
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: nexthop
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: sosogh.2288.org
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: recipient
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: recipient
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: bb@...
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: flags
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: flags
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute value: 1024
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: private/rewrite socket: wanted attribute: (list terminator)
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: input attribute name: (end)
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: resolve_clnt: `' -> `bb@...' -> transp=`dovecot' host=`sosogh.2288.org' rcpt=`bb@...' flags= class=virtual
      >Jul 1 03:17:48 sosogh postfix/smtpd[27776]: ctable_locate: install entry key bb@...
      >
      >
      >I wonder why postfix use "dovecot" as virtual_transport instead of "dspam"
      >Any hints is appreciated
      >
      >thank you
      >
      >
      >--------------
      >sosogh
      >2009-07-01



      ------------------
      sosogh
      2009-07-01
    Your message has been successfully submitted and would be delivered to recipients shortly.