Mail Queue not deleting messages >2 days

kerriritter

Active Member
Oct 25, 2004
31
0
156
I changed the last line in exim configuration to:

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

This this is the rule:

# This single retry rule applies to all domains and all errors. It specifies
# retries every 15 minutes for 2 hours, then increasing retry intervals,
# starting at 1 hour and increasing each time by a factor of 1.5, up to 16
# hours, then retries every 8 hours until 4 days have passed since the first
# failed delivery.

I understand this to mean that after 2 days (48 hours) have passed the email will be removed from the queue. I have waited 2 days and no joy. I have messages in the queue older than 48 hours. These are emails with connection timed out, refused, temporarily unavailable, and so on. The mail is time sensitive to begin with and no point in continuing to send. But furthermore, why are they not getting dropped out based on the numerous attempts with these results from the recipient server?

Is there a place in exim.conf to do this? Or a command I can run to clear the queue, but only for messages that meet a certain condition, ie. been in there xx hours or xx days?

I would appreciate any help with this. This is not a new issue for me, but it is wearing me out. It has been very time consuming doing this daily on several servers. :eek:
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
In the "Exim Configuration Editor" in advanced mode, add

timeout_frozen_after = 2d
ignore_bounce_errors_after = 12h

to the first box.

It might help.

As far as cleaning the mail queue, check out my scripts. (see sig below)
 

hekri

Well-Known Member
Oct 14, 2003
147
2
168
It not help, i change thise, restart exim, delte messages in queue and after 4 days i still see messages in queue 3, 4 days :(
 

deftech

Member
Jan 11, 2006
12
0
151
try this

Try one of these from a command prompt via SSH

#This gets rid of frozen messages
exiqgrep -zi | xargs exim -Mrm


# Frozen messages older than a day
exiqgrep -zi -o 86400


#This will force queue to send and force frozen messages out
/usr/sbin/exim -qff
 

hekri

Well-Known Member
Oct 14, 2003
147
2
168
Thanx, better is /usr/sbin/exim -qff -v &
i see what is exim doing :)