postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Repeated mails

Re: Repeated mails

From: mouss <mouss_at_nospam>
Date: Sat Oct 16 2010 - 16:33:18 GMT
To: Alberto Lepe <dev@alepe.com>

  Le 12/10/2010 04:26, Alberto Lepe a écrit :
> Hello, I need some advice with a problem (I believe is an easy
> question but I couldn't find an answer):
>
> My server logs is "normally" reporting twice almost every time someone
> is sending an email:
>
> ./mail.log.0:Oct 11 08:58:23 mail postfix/qmgr[5276]: CCC3C1C015:
> from=<nakata@example.co.jp <mailto:nakata@example.co.jp>>,
> size=127578, nrcpt=1 (queue active)
> ./mail.log.0:Oct 11 08:58:36 mail postfix/qmgr[5276]: E88691CCFF:
> from=<nakata@example.co.jp <mailto:nakata@example.co.jp>>,
> size=128101, nrcpt=1 (queue active)
>
> Looking more in detail those 2 ids:
>
> /var/log/mail.log.0:Oct 11 08:58:19 mail postfix/smtpd[3333]:
> CCC3C1C015: client=p2147-ipad21xsajima.ne.jp
> <http://p2147-ipad21xsajima.ne.jp>[20.0.0.147]
> /var/log/mail.log.0:Oct 11 08:58:19 mail postfix/cleanup[2680]:
> CCC3C1C015: message-id=<00ec01cb68d6$d7e41450$180115ac@nakata>
> /var/log/mail.log.0:Oct 11 08:58:23 mail postfix/qmgr[5276]:
> CCC3C1C015: from=<nakata@example.co.jp <mailto:nakata@example.co.jp>>,
> size=127578, nrcpt=1 (queue active)
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/smtp[2746]:
> CCC3C1C015: to=<hinsyo@example.co.jp <mailto:hinsyo@example.co.jp>>,
> relay=127.0.0.1[127.0.0.1]:10024, delay=17, delays=3.2/0/0/14,
> dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as E88691CCFF)
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/qmgr[5276]:
> CCC3C1C015: removed
>
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/smtpd[3349]:
> E88691CCFF: client=localhost[127.0.0.1]
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/cleanup[3350]:
> E88691CCFF: message-id=<00ec01cb68d6$d7e41450$180115ac@nakata>
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/qmgr[5276]:
> E88691CCFF: from=<nakata@example.co.jp <mailto:nakata@example.co.jp>>,
> size=128101, nrcpt=1 (queue active)
> /var/log/mail.log.0:Oct 11 08:58:36 mail amavis[32232]: (32232-18)
> Passed SPAM, [20.0.0.147] [20.0.0.147] <nakata@example.co.jp
> <mailto:nakata@example.co.jp>> -> <hinsyo@example.co.jp
> <mailto:hinsyo@example.co.jp>>, quarantine: 6/spam-6qyX68lC4hKy.gz,
> Message-ID: <00ec01cb68d6$d7e41450$180115ac@nakata>, mail_id:
> 6qyX68lC4hKy, Hits: 8.687, size: 127578, queued_as: E88691CCFF, 13947 ms
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/smtp[2746]:
> CCC3C1C015: to=<hinsyo@example.co.jp <mailto:hinsyo@example.co.jp>>,
> relay=127.0.0.1[127.0.0.1]:10024, delay=17, delays=3.2/0/0/14,
> dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as E88691CCFF)
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/local[3971]:
> E88691CCFF: to=<hinsyo@mail.mailserver.jp
> <mailto:hinsyo@mail.mailserver.jp>>, orig_to=<hinsyo@example.co.jp
> <mailto:hinsyo@example.co.jp>>, relay=local, delay=0.03,
> delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
> /var/log/mail.log.0:Oct 11 08:58:36 mail postfix/qmgr[5276]:
> E88691CCFF: removed
>
> It seems to me that "CCC3C1C015" mail was delivered to
> "hinsyo@example.co.jp <mailto:hinsyo@example.co.jp>" and "E88691CCFF"
> was delivered to quarantine and that is why is logged twice. Is that
> right?
>
> One of the users (nakata) is reporting that everytime he/she sends an
> email to anyone (for example, hinsyo), they get several copies of the
> same mail at once.
>
> The spam-assassin filter is still on testing period so some messages
> are marked as SPAM only but are not blocked. Could that be the reason
> of duplicated emails?
>
> Thank you in advance.

most probably, you did not disable address rewrite before or after the
content filter. If so, this is a FAQ.
     http://www.postfix.org/postconf.5.html#no_address_mappings
     http://www.postfix.org/FILTER_README.html
     http://www.ijs.si/software/amavisd/README.postfix.html

Here is a snippet from master.cf:

smtp inet n - n - - smtpd
   -o receive_override_options=no_address_mappings

127.0.0.1:10025 inet n - n - - smtpd
   -o content_filter=
     ....