Delivery keeps failing, how to set fail limit

hddweb

Verified User
Joined
Dec 2, 2004
Messages
27
Two questions regarding email on RHE 3

- I get tons of errors in an email account that say:

"Warning: message XXXXXXXXx delayed XXX hour..."

where XXX hours is a ridiculous amount, like 1 month+. Is there any way to set the amount of times a delivery fails before the mail server stops trying to send the email? These are all old spam emails (security flaw was fixed a few weeks ago) that I wish the server would stop trying to send.


- On a related note, I have quite a few emails in the mail queue, where do I go to delete these (once again mostly spam). Is it in the folder "/var/spool/exim/msglog"?

Thanks
 
There should be a retry section in your exim.conf way at the bottom. There is where the retry limits are set.

To remove frozen emails you can try:

Code:
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm
 
thanks for the reply chatwizard, this is what is in exim.conf right now:


ignore_bounce_errors_after = 2d

timeout_frozen_after = 5d

Seems like its alright though doesn't it?
 
yep I had the exact same thing for "begin retry" section.

I've been doing exim -bpc throughout the day as I did the "exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm" command and the number of emails in queue keeps going up, right now it gives me 182,317.....
 
Back
Top