Matthias Hank <[email protected]> (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 = [email protected]
>         data = [email protected]
>         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
> 
> [email protected]: [email protected]
> [email protected]: [email protected]

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)-

Attachment: signature.asc
Description: Digital signature

-- 
## 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