Re: [exim] Message Age in Exim?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Wolfgang Breyha
Data:  
Para: Marc Perkel
CC: exim-users
Assunto: Re: [exim] Message Age in Exim?
On 2013-04-13 07:46, Marc Perkel wrote:
> Is there an easy way to do an ACL conditional based on message age? So if
> something is older than XX days I can bounce it?


Not in an ACL, but you can achieve that with routers. ACLs are not run
after the message got queued already.

eg:
delay_suspicious:
  driver = redirect
  domains = <whatever>
  senders = <whatever>
  condition = ${if and{ \
                       {eq{$acl_m_delay}{yes}} \
                       {<{$message_age}{300}} \
                      } \
               }
  allow_defer
  data = :defer: message not old enough


In your case you have to add allow_fail and :fail: it in data.

Greetings, Wolfgang
--
Wolfgang Breyha <wbreyha@???> | http://www.blafasel.at/
Vienna University Computer Center | Austria