PDA

View Full Version : Delivery keeps failing, how to set fail limit


hddweb
06-25-2006, 01:08 AM
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

chatwizrd
06-25-2006, 08:02 AM
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:


exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm

hddweb
06-25-2006, 09:11 AM
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?

chatwizrd
06-25-2006, 04:05 PM
begin retry

* * F,2h,15m; G,16h,1h,1.5; F,4d,8h

hddweb
06-25-2006, 04:23 PM
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.....