Re: [Exim] Delaying transport for a particular address

Pàgina inicial
Delete this message
Reply to this message
Autor: Glenn Carver
Data:  
A: exim-users
Assumpte: Re: [Exim] Delaying transport for a particular address
Hmm.. still not sure I've got this delayed mail working correctly. With the FAQ router in place it seems that exim is actually temporarily rejecting email from the sending server. Whereas what I want it to do is accept the message and queue it for a deferred delivery.

Here's the log file entry:

16:34:16 H=plum.csi.cam.ac.uk [131.111.8.3] F=<user@???> temporarily rejected RCPT <user-local@???>: delivery delayed

My configure router looks like this:

delay:
driver = redirect
domains = atm.ch.cam.ac.uk
local_parts = user-local
condition = ${if < {$message_age}{43200} {yes}{no}}
data = :defer: delivery delayed
allow_defer = true

When I tested this using -bt (admittedly as a local user) it seemed to work ok. What have I missed??

Thanks,
         Glenn




On 2002.07.22 10:29 Philip Hazel wrote:
> On Sat, 20 Jul 2002, Glenn Carver wrote:
>
> > Thanks for your email. There's a typo in the exim 4 FAQ for Q9807 (as
> > well as the lack of allow_defer).
>
> Thanks. Both fixed in the newly released version.
>
> > Just out of curiousity, suppose I wanted to defer a message based on
> > the time-of-day and only attempt delivery after 2am. I've seen the
> > $tod variables but I'd need a bit of regex to strip out and test just
> > the hour of the day. And I'm not a regex wiz.. how would I do it?
>
> ${if match{$tod_log}{\N^.{11}(\d\d)\N}{$1}}
>
> expands to the hour of the day. Thus, a condition that yields "yes"
> between the hours of 2 am and 8 am is:
>
> condition = ${if and                                                  \
>                  {                                                    \
>                    { >                                                \
>                      {${if match{$tod_log}{\N^.{11}(\d\d)\N}{$1}}}    \
>                      {2}                                              \
>                    }                                                  \
>                    { <                                                \
>                      {${if match{$tod_log}{\N^.{11}(\d\d)\N}{$1}}}    \
>                      {8}                                              \
>                    }                                                  \
>                  }                                                    \
>                  {yes}{no}}

>
>
>
> --
> Philip Hazel            University of Cambridge Computing Service,
> ph10@???      Cambridge, England. Phone: +44 1223 334714.

>
>

--

Dr. Glenn Carver, Centre for Atmospheric Science, Univ. of Cambridge,
Chemistry Dept., Lensfield Road, Cambridge, CB2 1EW, UK.

mailto:Glenn.Carver@atm.ch.cam.ac.uk  http://www.atm.ch.cam.ac.uk/~glenn/
Phone: +44 (1223) 763827      ** please note new numbers **
Fax:   +44 (1223) 763823