Resending Unix Mbox Files

Unfortunately someone screwed up the installation of one of our servers so that mail to local addresses was being delivered into /var/spool/mail/ instead of being sent onwards to our SMTP server.

Getting the sendmail.mc correct was the easy bit, there is a simple
“null client” sendmail.mc file I wrote years ago which does that nicely.

The hard bit was taking all the Unix mbox files in /var/spool/mail and /var/mail and re-delivering them all to their intended recipients. The bit most people get wrong is the separator between messages. The separator is
not a line starting with “From “. The separator is a blank line followed by a line starting with “From “. So I wrote my own script to do it which you are very welcome to download and use.
Comments

ScamNailer.ndb

I have made the ScamNailer database of phishing email addresses available as a ClamAV ".ndb" signature database file. All you need to do is download the file from http://www.mailscanner.eu/scamnailer.db once every hour and put it into your ClamAV "Database Directory" which is defined in your clamd.conf and/or freshclam.conf file. It's usually somewhere like /var/clamav. Then tell your clamd to reload its database (sending it a "kill -HUP" should do the trick) so it knows something has changed.

Note: Please do not download this file more than once every hour, it does not change that frequently and you will overload my poor little web server!
Comments