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 <[email protected]> | http://www.blafasel.at/
Vienna University Computer Center | Austria

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to