Cron – Exim – Force Messages to domain before retry time

cronemail-servereximexiqgrepqueue

We have exim running in queue-only fashion. The reason is that we are a bulk sender (a legitimate, double opt-in) and have experienced Yahoo and Hotmail throttling. The best practices state that once they inform you of throttling (like Yahoos TS-01 or TS-02 error), you should STOP SENDING for 4 hours. If exim is in a traditional setup this does not happen, every message that is sent to exim is tried to be sent immediately. When it fails, it waits the 4 hours, but this doesn't stop the 500 emails behind it to the same host from being tried.

In any case, my question is this:
How do we force emails to mydomain.com AND hisdomain.com to be FORCED SENT IMMEDIATELY. I was thinking of some exim command we could run via cron every 5-10 minutes. Before we send out a large dispatch, we always send a test to these 2-3 domains, but now we are waiting 30+ minutes to be able to check delivery (due to it being queued).

I know you can force a message to be sent, but this requires its messageID, so I think I need to combine a command that grabs the IDS for these domains with one that forces them… I'm just not sure how to do this.

Best Answer

exim -Rf "mydomain.com" 

will be better