Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network issues can cause permanent halt #75

Open
luke-jr opened this issue Jun 13, 2021 · 4 comments
Open

Network issues can cause permanent halt #75

luke-jr opened this issue Jun 13, 2021 · 4 comments
Assignees

Comments

@luke-jr
Copy link

luke-jr commented Jun 13, 2021

I've been having lots of intermittent network issues, and discovered recently that nullmailer simply stopped delivering any mail a month ago. Restarting it got a few old messages sent, but it quickly hung again, and a few more times since that.

Probably it should timeout/retry eventually (even if very slow, like a day) and/or send other emails over new connections while/if one is taking a while.

@bruceg
Copy link
Owner

bruceg commented Jun 14, 2021

That's puzzling. Nullmailer should retry once the network is back up. What were the last few lines logged by nullmailer-send before it stopped delivering?

@bruceg bruceg self-assigned this Jun 14, 2021
@luke-jr
Copy link
Author

luke-jr commented Jun 14, 2021

...
Starting delivery, 1 message(s) in queue.
Starting delivery: host: smtp.mail.dashjr.org protocol: smtp file: 1621234935.36483
From: <redacted@redacted> to: <redacted@redacted>
Message-Id: <1621234935.340528.36311.nullmailer@redacted>
smtp: Succeeded: 250 2.0.0 Ok: queued as 8946138A002A
Sent file.
Delivery complete, 0 message(s) remain.
Trigger pulled.
Rescanning queue.
Starting delivery, 1 message(s) in queue.
Starting delivery: host: smtp.mail.dashjr.org protocol: smtp file: 1621236068.51599
From: <root@redacted> to: <root@redacted>
Message-Id: <1621236068.582644.51598.nullmailer@redacted>
    (nothing for ~a month; restarted nullmailer here)
Rescanning queue.
Starting delivery, 437 message(s) in queue.
Starting delivery: host: smtp.mail.dashjr.org protocol: smtp file: 1621508416.41242
From: <redacted@redacted> to: <redacted@redacted>
Message-Id: <1621508416.073821.40747.nullmailer@redacted>
smtp: Succeeded: 250 2.0.0 Ok: queued as D5E6338A00A0
Sent file.
...

@bigntallmike
Copy link

I had a similar problem I couldn't identify and wrote a patch to let systemd restart nullmailer if it stops responding. See merge request.

@t29j
Copy link

t29j commented Jan 20, 2023

We are also suffering from that problem.
nullmailer-send just stops to to deliver the messages and the queue fills.
But the process is still running and systemd is happy.

It just does not do it's job.

After systemctl restart nullmailer.service it continues to work for a few days or weeks.

Is there anything useful we could collect for you once it is hanging to debug this further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants