You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Email service is waiting for emails to go out forever #876
I have searched the existing issues and found no duplicate.
Problem description
I created a fresh server end installed email.
Everything works, but when i send an email to postmaster@my_domain.com the email never reaches the predefined postmaster inbox, instead an additional email is queued and never leaves:
Every time i sent an email to postmaster, the number increases.
Is there a way to see and cancel those queued emails?
The bugfix integration branch now includes #885, preserving Francisco Trillo’s contribution. I reproduced its specific failure: leftover Amavis PID files after a container restart can make Amavis refuse to start, leaving mail deferred. The entrypoint now cleans those runtime files before starting the daemons. Two real-Docker tests and the updated PR CI passed; main is unchanged.
I am keeping this issue open because the original report describes a fresh installation, and the screenshot’s temporary failure alone does not establish the same cause. Please share the sanitized deferred reason from the mail queue and the Amavis/Postfix startup log around one failed attempt, along with the Openship/mail image version. Remove credentials, message content and personal addresses. That will identify whether this fix applies or a separate first-install failure remains.
PR #885 is merged into feat/bugfix-integration-2026-09-15 and is waiting for that branch to merge into main.
Status correction after the latest review: #885 is already in main through #891. It fixes the reproduced Amavis restart failure caused by stale runtime PID/lock/socket files. #892 also includes #477's repair for Amavis transport TLS settings, including persisted mail configuration.
I checked this report's screenshot again. It records only “temporary failure” on a fresh installation, which does not establish either of those causes. This issue remains open because its fresh-install delivery failure is not yet verified as resolved; it is not waiting solely for #885 to merge.
For the queue question: on a container installation, docker exec MAIL_CONTAINER postqueue -p lists queue IDs and the deferred reason (replace MAIL_CONTAINER with the mail engine container name). The reason plus the matching Postfix/Amavis log lines is the missing evidence. The Postfix queue can contain inbound/local deliveries too, despite the dashboard's “outbound” wording.
To cancel one inspected queued message, docker exec MAIL_CONTAINER postsuper -d QUEUE_ID deletes that specific queued message. Do not include message contents or credentials when sharing diagnostics.
Activity
Hydralerne commentedon Sep 15, 2026
The bugfix integration branch now includes #885, preserving Francisco Trillo’s contribution. I reproduced its specific failure: leftover Amavis PID files after a container restart can make Amavis refuse to start, leaving mail deferred. The entrypoint now cleans those runtime files before starting the daemons. Two real-Docker tests and the updated PR CI passed; main is unchanged.
I am keeping this issue open because the original report describes a fresh installation, and the screenshot’s temporary failure alone does not establish the same cause. Please share the sanitized deferred reason from the mail queue and the Amavis/Postfix startup log around one failed attempt, along with the Openship/mail image version. Remove credentials, message content and personal addresses. That will identify whether this fix applies or a separate first-install failure remains.
PR #885 is merged into
feat/bugfix-integration-2026-09-15and is waiting for that branch to merge into main.Hydralerne commentedon Sep 16, 2026
Status correction after the latest review: #885 is already in main through #891. It fixes the reproduced Amavis restart failure caused by stale runtime PID/lock/socket files. #892 also includes #477's repair for Amavis transport TLS settings, including persisted mail configuration.
I checked this report's screenshot again. It records only “temporary failure” on a fresh installation, which does not establish either of those causes. This issue remains open because its fresh-install delivery failure is not yet verified as resolved; it is not waiting solely for #885 to merge.
For the queue question: on a container installation,
docker exec MAIL_CONTAINER postqueue -plists queue IDs and the deferred reason (replaceMAIL_CONTAINERwith the mail engine container name). The reason plus the matching Postfix/Amavis log lines is the missing evidence. The Postfix queue can contain inbound/local deliveries too, despite the dashboard's “outbound” wording.To cancel one inspected queued message,
docker exec MAIL_CONTAINER postsuper -d QUEUE_IDdeletes that specific queued message. Do not include message contents or credentials when sharing diagnostics.