Bobby Shahzad wrote: > I want to avoid retry situation. Basically our situation is that mails keep > coming in to queue(through newsletter injector script) even if there is > permanent block, we dont want such messages to sit in retry queue for 5 days > , we just want them to be discarded at once because delivery is not going to > happen any way. So what I want is, the first time there is a TS03 yahoo > error, stop delivery of any future message to Yahoo > > how can we do it?
Short term: Have a look at Exim's retry settings. You can customize those by destination. Combine that with altered freeze/thaw times for a great deal of 'automagic' or self-adapting flexibility. EG earlier than-default retry-quit with a failure message back to the original sender may be more help than hindrance. Unless the amount still left in the queue is rather massive, not a lot of harm is done, so add a cleanup script of the sort Wash mentions only if still essential. Longer term? 'Honor the threat' - don't just apply a band-aid. IOW - see what you can do w/r improving the manners of that injector script, insuring overall link reliability, checking message format as far as apparent spammishness, insure your server has good credentials, perhaps look at rate-limiting .... all so as to improve initial acceptance of the traffic. If all of that is well-behaved, you shouldn't HAVE an accumulation in the queue. HTH, Bill Hacker > > > On Tue, Oct 12, 2010 at 5:15 PM, Odhiambo Washington > <[email protected]>wrote: > >> >> On Tue, Oct 12, 2010 at 7:03 PM, Bobby Shahzad <[email protected]> wrote: >> >>> Hello, >>> >>> My client wants me to setup exim so that if there are a particular bounce >>> reason such as "yahoo TS03 permanent block" exim should stop sending mails >>> to that ISP until the situation is back, which usually is after 48 hours. >>> >>> I have no clue how to do that in exim. Do I have to custom program exim >>> and >>> recompile it? any ideas what we are talking about here? >>> >>> Give me some clues please. >>> >>> >> If Exim gets an error code = 550, it stops sending immediately and returns >> a bounce to the sender. However, if the error is one of those temporary >> ones, then Exim will retry sending the e-mail until (by default, based on >> the default retry rules) 5 days is over. >> In my opinion, I think you do not need to customize anything to achieve >> your desire. >> >> -- >> Best regards, >> Odhiambo WASHINGTON, >> Nairobi,KE >> +254733744121/+254722743223 >> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >> "If you have nothing good to say about someone, just shut up!." >> -- Lucky Dube >> -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
