Re: [exim] Copy/duplicate a mail depending of the sender add…

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-users
Temat: Re: [exim] Copy/duplicate a mail depending of the sender address
Matthias Hank <mh-exim@???> (Di 18 Nov 2014 10:33:24 CET):
> Hi,
>
> i need to duplicate specific mails in exim depending on the sender address.
>
> I have this working for now:
>
> copyrouter:
>         driver = redirect
>         senders = localpart1@???
>         data = localpart1@???
>         unseen
>         no_verify

>
> So for more senders i could use more routers like this, but maybe a lookup
> to a textfile would scale better.
>
> I thought about a file (eg. /etc/exim4/copylist) with pairs of
>
> localpart1@???: localpart1@???
> localpart2@???: localpart2@???


Untested.

 copyrouter:
         driver = redirect
         data = ${lookup{$sender_address}lsearch{/etc/exim4/copylist}}
         unseen
         no_verify


    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-