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:
>
>
>[r...@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
>
>
>[r...@sosogh ~]# postconf | grep virtual_transport
>virtual_transport = dspam:
>
>
>[r...@sosogh ~]# postconf | grep dovecot
>mailbox_command = /usr/libexec/dovecot/deliver
>smtpd_sasl_path = dovecot-auth
>smtpd_sasl_type = dovecot
>       
>
>[r...@sosogh new]# postconf  | grep virtual_mailbox_maps
>virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
>
>
>[r...@sosogh ~]# postmap -q "b...@sosogh.2288.org" 
>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=<b...@sosogh.2288.org>, 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: 
><b...@sosogh.2288.org>
>Jul  1 03:17:48 sosogh postfix/smtpd[27776]: smtpd_check_addr: 
>addr...@sosogh.2288.org
>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 = 
>b...@sosogh.2288.org
>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: 
>b...@sosogh.2288.org
>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: 
>b...@sosogh.2288.org -> b...@sosogh.2288.org
>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 = 
>b...@sosogh.2288.org
>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: 
>b...@sosogh.2288.org
>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: `' -> 
>`...@sosogh.2288.org' -> transp=`dovecot' host=`sosogh.2288.org' 
>rcpt=...@sosogh.2288.org' flags= class=virtual
>Jul  1 03:17:48 sosogh postfix/smtpd[27776]: ctable_locate: install entry key 
>b...@sosogh.2288.org
>
>
>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




Reply via email to