Mail - Important Notes about Email Quotas


2003-02-12

If you enable quotas on a drive which contains email its very important that you use procmail (maybe others work as well) as your local delivery agent. If you don not you may run into a problem with some users receiving hundreds of copies of the same email. Here is why…The multiple emails are caused by the Local Delivery Agent (LDA) when quotas are enabled.

The problem occurs when one message has been addressed to multiple recipients on the local server and one of those recipients is over their quota. The message will go into the mail queue and retry up to 5 days. The message gets re-delivered to every recipient because the LDA doesn’t know which user caused it to bounce. This causes some people to receive hundreds of copies of the same message.

This problem can be fixed by installing Procmail as the LDA which will bounce mail back to the sender instead of putting it back in the queue if a user is over his quota.

Installing Procmail:

$ cd /usr/ports/mail/procmail
$ make install
$ vi /usr/local/src/sendmail-8.12.7/cf/cf/config.mc
Add the following line with the other features...
FEATURE(`local_procmail')

$ sh Build config.cf
$ cp config.cf /etc/mail/sendmail.cf
$ killall -HUP sendmail