On 4/28/2014 10:17 PM, Andy Yen wrote:
> Hi, sorry, it appears I forgot to add the logs. They are included below.
> This is called with PHPMailer just once, but postfix show it is being
> sent 3 times for some reason....
> 
> This is the output from /var/log/maillog
> 
> Apr 28 21:50:27 mail postfix/smtp[13404]: 8F8E3142500B4:
> to=<andy...@somedomain.com>,
> relay=mail.somedomain.com[216.70.96.226]:25, delay=1.2,
> delays=0.05/0/0.98/0.2, dsn=2.0.0, status=sent (250 ok 1398736227 qp 7475)
> Apr 28 22:06:47 mail postfix/smtp[15276]: 2D7D3142500D1:
> to=<andy...@somedomain.com>,
> relay=mail.somedomain.com[216.70.96.226]:25, delay=0.75,
> delays=0.05/0/0.5/0.2, dsn=2.0.0, status=sent (250 ok 1398737207 qp 7660)
> Apr 28 22:15:00 mail postfix/smtp[16179]: A56FD142500D8:
> to=<andy...@somedomain.com>,
> relay=mail.somedomain.com[216.70.96.226]:25, delay=0.57,
> delays=0.06/0.01/0.3/0.2, dsn=2.0.0, status=sent (250 ok 1398737700 qp
> 7767)

This simply demonstrates what you already know--3 messages queued, 3
delivered.  You need to locate the smtpd log entries showing the
injection point of each of the 3 message IDs, and any alias expansions.
 You mentioned this only occurs with users who have "email forwarding
enabled on their email addresses".  Describe precisely how you are
performing such forwarding.  This is probably the root of the problem.

> And just for good measure, here is the header of one of the duplicate
> emails:

The header won't tell us anything about injection.

...
> On 4/28/2014 10:49 PM, Viktor Dukhovni wrote:
>> On Mon, Apr 28, 2014 at 10:37:41PM -0400, Andy Yen wrote:
>>
>>> Is there a setting I can change to fix this?
>> Change the setting that enables you to ask questions that non-psychics
>> can answer:
>>
>>      http://www.postfix.org/DEBUG_README.html#mail

Per the instructions, paste the output of "postconf -n" into your
message.  This allows us to spot Postfix configuration errors.

>> When mail delivered multiple times that will be recorded in your
>> logs.  You need to identify all log entries pertaining to some
>> sample messages that were delivered more than once.
>>
>> Avoid virtual alias expansion on both sides of a content filter,
>> as that can generate a second copy of a forwarding address.
>>
>> Watch for deliveries that time-out at end of data, Postfix logs
>> make a fuss about these:
>>
>>      <some problem> sending end of data -- message may be sent more
>> than once



Cheers,

Stan

Reply via email to