Web Hosting Talk







View Full Version : EXIM - CPanel - Queue


admin0
03-06-2003, 03:56 PM
Hi,

On several of the Cpanel systems that I monitor, the exim queue is growing day by day and filling the partitions. What I want to do is not keep the email in queue, but if unable to deliver, bounce back to the sender immediately, and NOT keep a queue.

I found the default keep for 7d option, and changed that to 1d, but it is still keeping mails that is more than 1 day old. Where do I change it ?

If possible, when someone sends a email via the server, if not successful, rather than keeping in queue, I want that bounced back to the sender immediately, and if I have to specify a retry time, then not more than 1 hour.

How do I achieve that ?

There are more than 1,00,000 mails in queue.

All help appretiated.

Also, how do I restrict the max size of mail.?
I found someone trying to send a 200MB zip of "macromedia director and it's plugins"

:homer:

serial
03-06-2003, 04:16 PM
You should always keep a mail queue, often times mail servers are down for maintenance or your server has issues resolving the destination domain. A mail queue should be left above 5 days.

You can restrict the size of incoming/outgoing emails by listing the following option within your exim.conf file:

message_size_limit = 10M

Be sure to change 10 to however many MBs you want to allow per email.

You may also want to add another directive to your exim.conf file to expunge bounced messages and bounce back undeliverable messages. This can be done by adding:

timeout_frozen_after = 5h
ignore_errmsg_errors_after = 1h
deliver_queue_load_max = 4

Be sure that you don't already have any of the above listed in your config file first before adding the above. Once you make these changes you will need to restart Exim to take hold of the changes.

/etc/rc.d/init.d/exim restart

Further to that, you can always force your mail queue to empty. Simply run the following:

exim -v -qff >/dev/null 2>&1

If your queue is large, this will take many hours to complete.

atjeu
03-06-2003, 07:38 PM
We will second that - dont get rid of the mail queue or let it go less then 5 days.... you really need that there or you will notice a lot of mail wont ever get delivered.