Re: [exim] Relaying mail and backup ETRN

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: John Oxley
CC: exim-users
Tárgy: Re: [exim] Relaying mail and backup ETRN
On Wed, 13 Apr 2005, John Oxley wrote:
>
> - A mail comes into codeine destined for geoff@???
> - Codeine tries to relay it directly
> - If the relay through the radio link works, great
> - Else if the relay doesn't work:
>     - Send the mail to the ETRN spool
>     - Wait for it to be fetched


You can do this using a router whose condition is based on $message_age.
If the message has been delayed too long, route it to the ETRN spool.

>     - If the radio link comes back up
>         - Pull the mail out of the ETRN spool and send it directly


This is probably best done outside Exim. Have a cron job or something
which detects the return of the radio link; when this occurs, run a script
over the ETRN spool which sends the waiting email.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}