[exim] Re: Routers senders option, multiple senders?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Andreas Metzler
Datum:  
To: exim-users
Betreff: [exim] Re: Routers senders option, multiple senders?
Burhan Khalid <burhan.khalid@???> wrote:
> I am trying to apply a outgoing email redirect to a few addresses in
> my domain. After browsing the archives for a while, I came upon this
> router:


>  sneaky_copy:
>  driver  = redirect
>  senders = abc@xxxxxxxxxxxx
>  data    = def@xxxxxxxxxxxx
>  unseen


> This worked great for me, but I'm trying to get it to have multiple
> addresses in the senders = option. I have tried comma separated list,
> semi-colon separated list, quoted list, but nothing seems to work
> (there are no errors reported).


http://www.exim.org/exim-html-4.50/doc/html/spec_6.html#SECT6.15

> I would like for it to lookup from a file, and match the senders
> address to the foward address. I know I need to look at lsearch, but
> I'm a bit lost as this is my first time with exim configuration. Can
> someone please point me in the right direction?


Assuming you want to put
-------------
# copy any mail with env-from foo@??? to sneakycopy@???
foo@???: sneakycopy@???
-------------
into a file with the effect of
  sneaky_copy:
  driver  = redirect
  senders = foo@???
  data    = sneakycopy@???
  unseen


then this should do the trick

senders = lsearch;/some/file
data = $sender_data

(untested)
                 cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde