Enable sendmail mailstats

Running mailstats on a debian etch server running sendmail was returning the following error:
# /usr/sbin/mailstats
MSP statistics...
mailstats: /var/lib/sendmail/sm-client.st: No such file or directory
MTA statistics...
mailstats: /var/lib/sendmail/sendmail.st: No such file or directory

The StatusFile was enabled in sendmail.cf (the default location as no definition was overwritten in sendmail.mc):
# grep StatusFile /etc/mail/sendmail.cf
O StatusFile=/var/lib/sendmail/sendmail.st

Read the rest of this entry »

Tags:

Sendmail Multiple Queues

Sendmail will use by default a single mail queue. This is what most users will need, and if you don’t have any special requirement you will not care about this. Still for high traffic mail servers it might be useful to split the queue over several directories, as thousands of files in a single directory will become a performance penalty at some point and also processing the queue sequentially will become very slow. This post will show how we can implement multiple mail queues with modern sendmail versions.

Read the rest of this entry »

Tags: ,