On 29/08/25 08:28, Doug Hardie via Postfix-users wrote:
I periodically encounter an issue where there will be more than one copy of an 
email in a mailbox.  I first thought it might be a sieve issue.  I copied one 
of those emails and ran the sieve test on it.  It only showed one instance of 
saving the email.

Today, I found another occurrence of this and used ssh to access the mailbox 
and found that there are duplicates in the mailbox.  I can't tell at this point 
if this is being caused by postfix or dovecot.  Here is the index of those 
emails:

a fetch 276:281 (body[header.fields (subject message-id)])
* 276 FETCH (BODY[HEADER.FIELDS (SUBJECT MESSAGE-ID)] {111}
Message-Id: <4ccprz6v9fzj...@spike.porcupine.org>
Subject: [pfx] Re: Possible to influence map precedence?

)
* 277 FETCH (BODY[HEADER.FIELDS (SUBJECT MESSAGE-ID)] {111}
Message-Id: <4ccprz6v9fzj...@spike.porcupine.org>
Subject: [pfx] Re: Possible to influence map precedence?

)
* 278 FETCH (BODY[HEADER.FIELDS (SUBJECT MESSAGE-ID)] {137}
Message-ID: <fdf1284fc213cb1450708d2b956f27ad5075cd35.ca...@brain-force.ch>
Subject: [pfx] Re: Possible to influence map precedence?

)
* 279 FETCH (BODY[HEADER.FIELDS (SUBJECT MESSAGE-ID)] {137}
Message-ID: <fdf1284fc213cb1450708d2b956f27ad5075cd35.ca...@brain-force.ch>
Subject: [pfx] Re: Possible to influence map precedence?

)
* 280 FETCH (BODY[HEADER.FIELDS (SUBJECT MESSAGE-ID)] {111}
Message-Id: <4ccv601pspzj...@spike.porcupine.org>
Subject: [pfx] Re: Possible to influence map precedence?

)
* 281 FETCH (BODY[HEADER.FIELDS (SUBJECT MESSAGE-ID)] {111}
Message-Id: <4ccv601pspzj...@spike.porcupine.org>
Subject: [pfx] Re: Possible to influence map precedence?

)
a OK Fetch completed (0.001 + 0.000 secs).


Note there are 4 copies of the first email and 2 copies of the 3rd.  How can I 
figure out the problem from here?

That's two copies each of three different messages.

Two different likely possibilities come to mind:

1: You are subscribed to the postfix mailing list under two different aliases of the same email address.

2: You are using a content filter and then re-injecting the mail back into postfix and postfix is doing alias expansion on both sides, creating duplicates.

There are other possibilities.

Showing full logs from postfix of one of the messages and your postfix configuration (postconf -nf and postconf -Mf output) will help a lot to diagnose the issue.


Peter

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to