Auto delete older bounced emails

winlinfix
Junior Member
Posts: 22
Joined: 04 Jan 2007, 14:45

delete domain name mail queue crontab

Post by winlinfix »

HI.


how to make crontab to delete perticular domains mailqueue only?


thank you,
prabudh
Junior Member
Posts: 33
Joined: 10 Dec 2006, 13:05
Location: India
Contact:

Post by prabudh »

try Cron job Clean Mail Queue script
thanx
pk
winlinfix
Junior Member
Posts: 22
Joined: 04 Jan 2007, 14:45

mail queue delete.

Post by winlinfix »

HI,

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?
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Post 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
Chirpy,
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?

Regards,
Sergio
winlinfix
Junior Member
Posts: 22
Joined: 04 Jan 2007, 14:45

mail queue delete

Post by winlinfix »

HI,

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,
Belaird
Junior Member
Posts: 6
Joined: 10 Dec 2006, 13:10

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

Post 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.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post 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
vince
Junior Member
Posts: 23
Joined: 25 Aug 2007, 08:55

Post by vince »

Interesting how this does not seem to work for everyone.
In the very top I have this:
exim.conf
#!!# 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
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

It is strange and seems to be a long outstanding bug in exim.
Post Reply