Page 2 of 2

delete domain name mail queue crontab

Posted: 05 Jan 2007, 09:52
by winlinfix

how to make crontab to delete perticular domains mailqueue only?

thank you,

Posted: 20 Jan 2007, 08:49
by prabudh
try Cron job Clean Mail Queue script

mail queue delete.

Posted: 26 May 2007, 07:42
by winlinfix

i read script but it will delete mail for perticular a/c or if we specify in data file.
i would like to delete frozen mails and bounce mails as well as 2 days old mail by script.

let me know how to do it?

Posted: 29 May 2007, 17:56
by Sergio
chirpy wrote:The easiest way is to probably drop them off the queue by adding the following to the first textarea in the Exim Configuration Editor:

Code: Select all

timeout_frozen_after = 4d
ignore_bounce_errors_after = 2d
I have changed timeout_frozen_after from 4d to 2d, but it doesn´t delete emails in the queue on the 2nd day and they still in the queue until the 4d, is there somenthing else that I have to tweak on exim for the queue emails to be deleted on the 2nd day?


mail queue delete

Posted: 15 Jun 2007, 01:16
by winlinfix

i am still unable to understand how to delete all frozen mails and bouce mails.

or how to pass value to mail queue scripts so i will run by php or lynx or elinks

Thank yuo,

Mod won't work, exim has statement lower that change

Posted: 25 Jun 2007, 20:13
by Belaird
timeout_frozen_after = 4d
ignore_bounce_errors_after = 2d

won't work at the top if I read the layout right, they appear about 40 statements down as fixed defaults in the body.

Posted: 26 Jun 2007, 18:26
by chirpy
It most definitely does work. The buildeximconf takes into account settings made in the exim configuration editor that come before the default settings and replaces them when it generates exim.conf

Posted: 25 Aug 2007, 09:19
by vince
Interesting how this does not seem to work for everyone.
In the very top I have this:
#!!# cPanel Exim 4 Config
log_selector = +address_rewrite +all_parents +arguments +connection_reject +delay_delivery +delivery_size +dnslist_defer +incoming_interface +incoming_port +lost_incoming_connection +queue_run +received_sender +received_recipients +retry_defer +sender_on_delivery +size_reject +skip_delivery +smtp_confirmation +smtp_connection +smtp_protocol_error +smtp_syntax_error +subject +tls_cipher +tls_peerdn
timeout_frozen_after = 1d
ignore_bounce_errors_after = 2h
So mine shoud clear frozen after 1 day and bounce errors after 2 hours.
However, I regularly have to clear these from the queue manually (using cmq: v1.09), as both frozen and bounced seem to remain there for ever. :(

Strange or not?

- Vince

Posted: 03 Sep 2007, 11:25
by chirpy
It is strange and seems to be a long outstanding bug in exim.