Without being touched for weeks, my Virtualmin server has suddenly stopped receiving email, and upon sending returns the error “The sender address person@domain.com was rejected by the server domain.com”
Email sent to the server is not being returned to the sender, so I am unclear as to exactly when the problem occurred, as it’s a server that does not receive very much email so a few days passed before I noticed that nothing was arriving.
I do notice that in var/log/ the maillog files are absolutely huge:
maillog 288.9MB
maillog.1 531.2MB
maillog.2 530.2MB
maillog.3 528.6MB
maillog.4 528.8MB
so obviously large amounts of errors are being written in there. I am downloading one as I type, it will take all night and then I face the challenge of finding a text editor that can open a file that large.
I was just hoping someone on here may be able to point me in the right direction to start to troubleshoot the problem.
Seeing that the /var filesystem was at 99% capacity, in a moment of madness I deleted the maillog files, all five of them, and made a new maillog file at the same location. Nothing is now being written into that file, so Eric, I followed your suggestion and restarted Postfix, but now I have an empty maillog and I don’t know what to do to get Postfix to write into it again.
I’m stuck. Any help would be sincerely appreciated.
OK, I rebooted the box and as you suggested Eric, this caused the log to be written successfully again. Now I am receiving email messages (all the ones sent but not previously received have now suddenly come through) and I can send again with no errors.
I do wonder what the hell caused those maillog files to become so bloated, which seems to fill that partition and cause mail to fail. I guess I’ll just have to keep an eye out for it happening again.