Results 1 to 3 of 3

Thread: Undeliverable messages staying in queue forever

  1. #1
    Member
    Join Date
    Apr 2010
    Posts
    21

    Default Undeliverable messages staying in queue forever

    I have messages sitting in the mail queue that are undeliverable for various reasons (usually a bad e-mail address). Some of these are bounced messages and others are neither bounced nor frozen.

    For the bounced messages, I have 'ignore_bounce_errors_after = 1d' in the Exim configuration file but they're not being dropped after 1 day.

    For the others, I tried adding 'ignore_errmsg_errors_after = 1d' to the Exim config file but got an error, 'main option "ignore_errmsg_errors_after" unknown'. So I suppose this option is not available in Exim v4.

    Any idea how I can get rid of these undeliverable messages after a set time?

  2. #2
    Member
    Join Date
    Apr 2010
    Posts
    21

    Default Re: Undeliverable messages staying in queue forever

    Any suggestions on what I can do to fix this?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Undeliverable messages staying in queue forever

    I can provide a suggestion on how to clear them using a cron if you are willing to go that route. The following cron command path will run at 1:00am server time every day of the week and remove messages in the queue that are older than 2 days (172800 is the number of seconds in 2 days time). If you want it to be just one day, that would be 86400 seconds so you'd use rather than 172800 in the command. Multiple the number of days desired x 86400 to get any other interval.

    Code:
    0 1 * * * /usr/sbin/exiqgrep -o 172800 -i | /usr/bin/xargs exim -Mrm
    You'd place the above cron into /var/spool/cron/root or using crontab -e command in root SSH.

    As for why ignore_bounce_errors_after is not working, it might be due to what is stated here (taken from 14. Main configuration location):

    This option affects the processing of bounce messages that cannot be delivered, that is, those that suffer a permanent delivery failure. (Bounce messages that suffer temporary delivery failures are of course retried in the usual way.)

    After a permanent delivery failure, bounce messages are frozen, because there is no sender to whom they can be returned. When a frozen bounce message has been on the queue for more than the given time, it is unfrozen at the next queue run, and a further delivery is attempted. If delivery fails again, the bounce message is discarded. This makes it possible to keep failed bounce messages around for a shorter time than the normal maximum retry time for frozen messages. For example,

    ignore_bounce_errors_after = 12h

    retries failed bounce message deliveries after 12 hours, discarding any further failures. If the value of this option is set to a zero time period, bounce failures are discarded immediately. Setting a very long time (as in the default value) has the effect of disabling this option. For ways of automatically dealing with other kinds of frozen message, see auto_thaw and timeout_frozen_after.
    Possibly the setting time is too long and needs to be reduced to 12h or a lower value. I'm uncertain if you've also set auto_thaw and timeout_frozen_after values.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Exim Mail Queue Full of Undeliverable Mail
    By smithster in forum E-mail Discussions
    Replies: 0
    Last Post: 08-22-2010, 06:13 PM
  2. messages stuck in queue
    By compliancelc in forum E-mail Discussions
    Replies: 5
    Last Post: 06-30-2009, 01:46 PM
  3. Replies: 3
    Last Post: 04-22-2008, 01:24 PM
  4. Mail Queue forever
    By s_2_s in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-10-2004, 12:34 AM
  5. I can't Sent the Messages in Queue
    By rodolfochka in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 03-30-2004, 11:47 PM

Tags for this Thread