toml
Verified User
I am running into a problem, that I have not been able to figure out. I have a system that has been running pretty solidly for years. About 3 days ago, I noticed one of my logwatch emails didn't come through. After a couple of days I thought that there was an issue with cron but it looks to be a problem with dovecot-lmtp process.
I can see in the exim/mainlog that the email was delivered to dovecot_lmtp_udp, I can see in the dovecot-lmtp.log file that is received the email and according to the logs.
exim/mainlog:
2024-08-07 14:51:08 1sboYm-00000001Ehz-13br => tom <[email protected]> F=<bounce-mc.us7_148369750.5730651-191617c830@mail172.atl21.rsgsv.net> R=virtual_user T=dovecot_lmtp_udp S=74068 C="250 2.0.0 <[email protected]> eFYELUzss2asdgQA7JJOBg Saved"
dovecot-lmtp.log:
Aug 07 14:51:08 lmtp([email protected])<292524><eFYELUzss2asdgQA7JJOBg>: Info: sieve: msgid=<f6433ce6f921519a43d1ddddc.191617c830.20240807213131.bef28560b6.dd815295@mail172.atl21.rsgsv.net>: stored mail into mailbox 'INBOX'
In rspamd I see this:
It appears as though the file was created in the user's INBOX directory, but the file never gets written to the Maildir. As you can see, there wasn't any action on rspamd to do anything with the email, and my personal spam filter didn't even see the email because it was never served via IMAP because it was never there. This is happening to a good percentage of emails to one of my virtual accounts, and from what I can see it isn't affecting any other accounts.
I don't see anything in any of the log files that relate to OOM or anything else that might affect the files being written. I even set up a forwarder to try and not lose any more emails but even those are not getting forwarded. It is almost like the process reading from the lmtp socket is crashing before it gets to write the email or log an error. Of course I don't see any evidence of that either, it is quite frustrating. I even setup some straces on a dovecot lmtp process but after sending 20 emails, it didn't seem to hit that processes, so I gave up that method of debugging.
I recently rebooted the server, rebuilt exim, dovecot, dovecot pigeonhole, exim_conf, dovecot_conf and the problem is still occurring. Any ideas on how to fix this without taking down my whole email system while clients are active?
I can see in the exim/mainlog that the email was delivered to dovecot_lmtp_udp, I can see in the dovecot-lmtp.log file that is received the email and according to the logs.
exim/mainlog:
2024-08-07 14:51:08 1sboYm-00000001Ehz-13br => tom <[email protected]> F=<bounce-mc.us7_148369750.5730651-191617c830@mail172.atl21.rsgsv.net> R=virtual_user T=dovecot_lmtp_udp S=74068 C="250 2.0.0 <[email protected]> eFYELUzss2asdgQA7JJOBg Saved"
dovecot-lmtp.log:
Aug 07 14:51:08 lmtp([email protected])<292524><eFYELUzss2asdgQA7JJOBg>: Info: sieve: msgid=<f6433ce6f921519a43d1ddddc.191617c830.20240807213131.bef28560b6.dd815295@mail172.atl21.rsgsv.net>: stored mail into mailbox 'INBOX'
In rspamd I see this:
f6433ce6f921519a43d1ddddc.191617c830.20240807213131.bef28560b6.dd815295@mail172.atl21.rsgsv.net | 205.201.133.172 | [bounce-mc.us7_148369750.5730651-191617c830@mail172.atl21.rsgsv.net] [email protected] | [email protected] | Visa/Mastercard Filing Deadline is Fast Approaching | no action | 70.6 KiB | 0.336 | 8/7/2024, 2:51:08 PM | unknown |
[td]
7.03 / 15
[/td]It appears as though the file was created in the user's INBOX directory, but the file never gets written to the Maildir. As you can see, there wasn't any action on rspamd to do anything with the email, and my personal spam filter didn't even see the email because it was never served via IMAP because it was never there. This is happening to a good percentage of emails to one of my virtual accounts, and from what I can see it isn't affecting any other accounts.
I don't see anything in any of the log files that relate to OOM or anything else that might affect the files being written. I even set up a forwarder to try and not lose any more emails but even those are not getting forwarded. It is almost like the process reading from the lmtp socket is crashing before it gets to write the email or log an error. Of course I don't see any evidence of that either, it is quite frustrating. I even setup some straces on a dovecot lmtp process but after sending 20 emails, it didn't seem to hit that processes, so I gave up that method of debugging.
I recently rebooted the server, rebuilt exim, dovecot, dovecot pigeonhole, exim_conf, dovecot_conf and the problem is still occurring. Any ideas on how to fix this without taking down my whole email system while clients are active?