Intermittent duplicate outgoing emails submitted twice to Postfix within 3 seconds
Maintainers usually reply within 1 day
@odzhychko is already working on this.
Since Aug 18, 2026.
Assessment
This issue has not been assessed yet.
Description
Steps to reproduce
- Compose and send emails normally through the Nextcloud Mail web interface.
- The issue does not occur on every send and is currently not reliably reproducible on demand.
- In affected cases, a single user action results in the same outgoing email being submitted twice to Postfix.
- The two SMTP submissions occur approximately 3 seconds apart.
- Postfix creates two separate queue entries and delivers both messages.
Expected behavior
Every email should be submitted to the configured SMTP server exactly once after the user clicks Send.
This should also be the case if there are temporary delays or internal retries during the send/outbox processing.
Actual behavior
Intermittently, Nextcloud Mail submits the same outgoing email twice to Postfix even though the user only clicked Send once.
The issue does not happen with every email and currently appears sporadically.
For affected messages, the Postfix logs show two separate SMTP submissions approximately 3 seconds apart. Both submissions are accepted by Postfix and receive separate queue IDs.
As a result, the recipient receives the same email twice.
Since Postfix already receives the message twice, the duplication appears to occur before normal Postfix delivery processing, most likely somewhere in the Nextcloud Mail send/outbox/retry handling.
Mail app version
5.10.12
Nextcloud version
33.0.7
Mailserver or service
Mailcow
Operating system
No response
PHP engine version
None
Nextcloud memory caching
No response
Web server
None
Database
None
Additional info
This issue description was created with AI assistance based on the observed behavior and available log information. All technical details, timings, and observations were reviewed before submission.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 363
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 80
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/mail
-
0. to triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Show email next to name in Search dropdownPossibly taken @vansh-nagar claimed this 15 days ago. Open1. to develop enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nextcloud/mail#13703 · 1 comment ·
Maintainers usually reply within 1 day
-
ISO-2022-JP emails are garbled in Mail 5.10.12 [Minimal fix available]Possibly taken @neconohitomi claimed this 35 days ago. Open1. to develop bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nextcloud/mail#13472 · 1 comment ·
Maintainers usually reply within 1 day
-
1. to develop technical debt
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
0. to triage enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
druxt/umami.demo.druxtjs.org#527 ·
Maintainers usually reply within 9 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
NuSkooler/enigma-bbs#907 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day