What option do I need to change to make all emails in the exim mail queue older than X days be removed?
Printable View
What option do I need to change to make all emails in the exim mail queue older than X days be removed?
Searching the archives would reveal that the option you want is
timeout_frozen_after =
where is some period of time - 7d is the default.
What version of EXIM are you running? I have just tested this on one of my mail servers and just changing the value of
TOCode:timeout_frozen_after = 7d
and restarting exim does flush the queue of any messages older than 3 days. I am not familiar with Cpanel controlled systems but if you can run exiqgrep to verify that the messages in the queue are older than what you have the timeout set for. And if they are, then if you can some how stop and start exim.Code:timeout_frozen_after = 3d
Then check the logs to verify that exim did infact stop and restart and to see what exim did with the frozen messages, going back to the listing from exiqgrep to match up the message IDs. I'm guessing, but going back and verifying that Exim is at least processing the queue upon startup would be a step forward.