[Exim] Expiration adresses

Top Page
Delete this message
Reply to this message
Author: Mark M
Date:  
To: exim-users
Subject: [Exim] Expiration adresses
Hi All,

I've been trying to get below snippet to work.
I got it from:
http://exim.got-there.com/forums/viewtopic.php?t=440&sid=1a6a06a56e82da4fe1dd3b22ac4db3fd

It should, in theory, enable the use of expiration adresses.

When i changed my check_rcpt_acl all email sent to me was bounced
back, with "relaying is not allowed" as beeing the error message.

I'm using Exim 4.30 heavy deamon from Debian Woody.

Anyone have any pointers?

#################################
accept domains = +local_domains
        local_parts = ^.+-(exp|dated)-0*(\\d{4,12})\$
        verify = recipient
        set acl_m0 = ${if
match{$tod_log}{^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)}\
                       {y=$1 m=$1$2 d=$1$2$3}{}}
        set acl_m1 = ${if
match{$local_part}{-(exp|dated)-0*(\\d\{4,12\})\$}\
                       {$2}{}}
        set acl_m2 = ${strlen:$acl_m1}
        set acl_m3 = ${if =={$acl_m2}{4}\
                       {${if
<{$acl_m1}{${extract{y}{$acl_m0}}}{no}{yes}}}\
                       {${if =={$acl_m2}{6}\
                          {${if
<{$acl_m1}{${extract{m}{$acl_m0}}}{no}{yes}}}\
                          {${if =={$acl_m2}{8}\
                             {${if
<{$acl_m1}{${extract{d}{$acl_m0}}}{no}{yes}}}\
                             {${if <{$acl_m1}{$tod_epoch}{no}{yes}}}\
                            }\
                          }\
                         }\
                       }\
                      }
        endpass
        message = Invalid/expired address
        condition = ${if eq{$acl_m3}{yes}{yes}{no}}
###############################


Thanks,
Mark
--
Little something to harras spammers:
spamtrap@???: arnold@??? zebra@???
Sparse binary polynomial matching with a Bayesian Chain Rule evaluator
Yeah.. U-huh.