On Sat, Mar 17, 2012 at 11:01:49AM -0400, Sahil Tandon writes:
> On Sat, 2012-03-17 at 16:00:26 +0200, Pavel Gulchouck wrote:

>> On Sat, Mar 17, 2012 at 09:19:15AM -0400, Sahil Tandon writes:
> >> On Sat, 2012-03-17 at 13:48:17 +0200, Pavel Gulchouck wrote:
>> 
> >>> I use recipient_delimiter feature and procmail processing local
> >>> delivery.  Messages for me+sms goes to sms, for me+xmpp - to jabber
> >>> etc.
> >>> 
> >>> But if I want to receive a message both to xmpp and sms, I have a
> >>> problem, because cleanup decides that me+xmpp and me+sms is the
> >>> same user, and leaves only one copy of the message.
>> 
> >> Do you have logs of this occurring?
>> 
>> Additional info: this happens when destination is alias which expands
>> to list of addresses contain user+ext1 and user+ext2.

> Rather than providing tidbits of information, would you share the output
> of 'postconf -n' and other relevant information as described in
> DEBUG_README?

Sorry, I thought it's simple to reproduce.
I've install postfix to clean debian-6 system, add alias gul-test to "gul+1, 
gul+2", 
set procmail as local delivery agent, send test email to the alias and got 
only one copy in mailbox and mail.log.

If I comment out line
mailbox_command = procmail -a "$EXTENSION"
in main.cf then postfix deliver mail to both addresses unless I add line
|"/usr/bin/procmail -a $EXTENSION"
to my ~/.forward.

Output of "postconf -n":

=====
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = debian6-amd64, localhost.localdomain, , localhost
myhostname = debian6-amd64
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relayhost = 
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = 
btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
=====

postfinger output attached.
mail.log and aliases are in quote.

>> In my test, /etc/aliases contains:
>> gul-test:          gul+1, gul+2
>> 
>> Here's mail.log of sending mail to gul-test:
>> 
>> Mar 17 13:50:00 mon postfix/pickup[31038]: 35847F90660: uid=1013 from=<gul>
>> Mar 17 13:50:00 mon postfix/cleanup[11341]: 35847F90660: 
>> message-id=<20120317135000.35847f90...@gul.kiev.ua>
>> Mar 17 13:50:00 mon postfix/qmgr[7754]: 35847F90660: 
>> from=<g...@gul.kiev.ua>, size=327, nrcpt=1 (queue active)
>> Mar 17 13:50:01 mon postfix/local[11413]: 35847F90660: 
>> to=<gu...@gul.kiev.ua>, orig_to=<gul-test>, relay=local, delay=1, 
>> delays=0/0/0/1, dsn=2.0.0, status=sent (delivered to command: procmail -a 
>> "$EXTENSION")
>> Mar 17 13:50:01 mon postfix/qmgr[7754]: 35847F90660: removed

> FWIW, I cannot reproduce this, though I do not hand mail off to
> procmail:

> Mar 17 10:40:35 mx1 postfix/local[67468]: 2FD108A05B: 
> to=<sahi...@mx1.example.org>, orig_to=<foo...@mx1.example.org>, relay=local, 
> delay=0.47, delays=0.46/0.01/0/0, dsn=2.0.0, status=sent (delivered to 
> maildir)
> Mar 17 10:40:35 mx1 postfix/local[67468]: 2FD108A05B: 
> to=<sahi...@mx1.example.org>, orig_to=<foo...@mx1.example.org>, relay=local, 
> delay=0.47, delays=0.46/0.01/0/0, dsn=2.0.0, status=sent (delivered to 
> maildir)

-- 
Pavel
postfinger - postfix configuration on Sun Mar 18 13:11:51 MSK 2012
version: 1.30

Warning: postfinger output may show private configuration information,
such as ip addresses and/or domain names which you do not want to show
to the public.  If this is the case it is your responsibility to modify
the output to hide this private information.  [Remove this warning with
the --nowarn option.]

--System Parameters--
mail_version = 2.7.1
hostname = debian6-amd64
uname = Linux debian6-amd64 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 
x86_64 GNU/Linux

--Packaging information--
looks like this postfix comes from deb package: postfix-2.7.1-1+squeeze1

--main.cf non-default parameters--
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = debian6-amd64, localhost.localdomain, , localhost
myhostname = debian6-amd64
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

--master.cf--
smtp      inet  n       -       -       -       -       smtpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} 
${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

-- end of postfinger output --

Reply via email to