Skip to content

[Bug]: Email service is waiting for emails to go out forever #876

Open

Description

@bigbasti

Existing issue

  • 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:

Image

Every time i sent an email to postmaster, the number increases.

Is there a way to see and cancel those queued emails?

Steps to reproduce

see above

Environment

  • OpenShip version/commit: 0.7.2
  • Deployment method: docker
  • Operating system: ubuntu 24
  • Browser (if applicable): edge

Logs and screenshots

Additional context

No response

Activity

  1. added
    bug
    on Sep 10, 2026
  2. added theissue type on Sep 10, 2026
  3. Hydralerne commented on Sep 15, 2026

    @Hydralerne
    Member

    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.

  4. Hydralerne commented on Sep 16, 2026

    @Hydralerne
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions