Configure Over quota mailboxes to bounce messages

Hi,

We have some users who are not checking their mailboxes regularly enough to prevent their mailboxes from reaching quota. This is causing the mail queue to get backed up with status “To Be Delivered”. Can anyone point us in the direction of how to get the mail server to simply bounce messages back to the sender if the recipient’s mailbox is full?

Thanks.

Hi aos

I hope you don’t mind, but as a quick fix to resolve your issue slightly, you may want to adjust the time spent in delivery queue from a week to a time you consider is reasonable. If you SSH into server and run the first command, I think it will show as below (which is a week), the next command resets this time, which I have used 4 Hours, which I consider reasonable in todays world, but adjust accordingly, and please remember, it is in Seconds.

I hope that helps a little, and I realise you would rather a check before email is accpeted at SMTP, but I’m pushed for time as my family are about to arrive, so it was a quick think.

Many thanks

John

/var/qmail/bin/qmail-showctl | grep queuelifetime
queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

echo “14400” > /var/qmail/control/queuelifetime

/var/qmail/bin/qmail-showctl | grep queuelifetime
queuelifetime: (Default.) Message lifetime in the queue is 14400 seconds.