Re: [exim] Add recipient for subject line

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Mike Cardwell
Data:  
Para: Exim Users List
Assunto: Re: [exim] Add recipient for subject line
Peter Kirk wrote:

> Need to setup exim so that when a mail comes in with a certain subject
> line, it add's another recipient to the mail.
> Is this possible?
>
> Thanks for the help in advance :-)


You could do this by adding an unseen redirect router. Something like
the below (completely untested)

router_name:
    driver    = redirect
    condition = \
${if and{{\
    eq{$h_Subject:}{The subject line}\
}{\
    !eq{$local_part@$domain}{the.additional.address@???}\
}}}
    data      = the.additional.address@???
    no_verify
    unseen


--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/