On 2024-09-02 05:59, Steve Litt via dovecot wrote:
I stopped Dovecot, backed up the tens of thousands of files in /var/spool/smtpd/offline/, then deleted them, then started Dovecot again. Everything runs fine, so I guess those files weren't important, at least not to Dovecot.
I also found the major problem consuming so much /var space was Void Linux' package cache files, so I deleted all of those more than 3 months old. Soon I'll make a daemon or a cron job that deletes old files in these two directories, and probably a lot more.
I'm not an expert on Dovecot, but I've run it for quite a number of years, and cannot remember having seen that directory on any of my installations.
So I guessed the easiest way to find out about it, is to Google for "/var/spool/smtpd" (including quotes). The results seem to indicate that the directory is related to OpenSMTPD. E.g.:
https://manpages.debian.org/stretch/opensmtpd/smtpd.conf.5.en.html
FILES
[...]
/var/spool/smtpd/
Spool directories for mail during processing.
So if you have OpenSMTPD installed, you probably deleted spool files
from undeliverable email (or so; I'm unfamiliar with OpenSMTPD). Maybe
you should check what is in those files (Postfix queue files are
readable when using postcat
, maybe OpenSMTPD spool files are also
readable).
-- Rob