Re: [Exim] dated addresses (example)

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Kevin Reed
日付:  
To: exim-users
題目: Re: [Exim] dated addresses (example)
Kirill Miazine said:
> Greetings
>
> Below follows an Exim filter snip to deal with addresses that will
> expire at given numer of seconds since epoch (and a valid address will
> be bounced back to the sender):
>
>     if $local_part_suffix matches "\\N^-dated-0*(\\d{10,12})$\\N" then
>         add $tod_epoch to n7
>         add ${eval:$n7+86400} to n8
>         add $1 to n9
>         if $n9 is below 1041375600 then
>             fail "Address not yet valid, try
> <$local_part-dated-$n8@$domain>"
>         elif $n9 is below $n7 then
>             fail "Address no longer valid, try
> <$local_part-dated-$n8@$domain>"
>         endif
>     endif

>
> (Useful for those who like the idea of addresses that expire, but do not
> want to install a monster like TMDA just to get dated addresses.)
>
> Here is how one generates an address that will expire in 15 minutes
> (used at http://km.krot.org/mailto):
>
>     print 'km-dated-', (time + 900), '@krot.org', "\n";

>
> Best wishes
> Kirill


Interesting Idea, but not very useful since you are creating a bounce.

The filter doesn't know who really sent the message so you can't know
really who to send the bounce to... so you could easily end up bouncing
this message to people who never sent you a message in the first place.
Evil...

Take the same idea, and change it so that is is an ACL and acts on it
during SMTP receipt so that the deny is not a bounce, just a deny, then
you have something useful.

Something with cron and a separate file that is processed say every hour
or so or what ever increment you want to use...

Should be very easy to create...

--
Kevin W. Reed - TNET Services, Inc.
Unoffical Exim MTA Info Forums - http://exim.got-there.com/forums