Re: [exim] too long in queue - how to catch that?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Drav Sloan
Päiväys:  
Vastaanottaja: Arkadiusz Miskiewicz
Kopio: exim-users
Aihe: Re: [exim] too long in queue - how to catch that?
Arkadiusz Miskiewicz wrote:
> Hi,
>
> I want to reroute messages to second machine which will handle remote
> deliveries if a message is too long in first machine queue?


in your routers section, near the top of the ruleset (before the standard
smtp router)

slow_mail:
    driver = manualroute
    condition = ${if >{$message_age} {3600} {yes} {no}} 
    transport = remote_smtp
    domains = *
    route_data = my.server.to.handle.this.mail.com


(change the transport line if your smtp transport is called anything
different).

Regards

D.