[Exim] lsearch in .forward

Top Pagina
Delete this message
Reply to this message
Auteur: edouard.boucher
Datum:  
Aan: exim-users
Onderwerp: [Exim] lsearch in .forward
hi,

I am trying to save all mail comming from some domains in a separate
file.
I'd like to do this with a .forward and not a router, because i am not
root on the target machine.

so far, i tryed :

if ($h_from: ends "test.com")
then
    save file


but because there is several domains, and i would like to have them in
another file, i tryed :
if ($h_from: ends lsearch:/home/edouard/domains)
then
    save file


but this doesnt work and gives not error with exim -bf


where am i wrong ?


Thank you very much for your help


Edouard