Re: [exim] Add recipient for subject line

Pàgina inicial
Delete this message
Reply to this message
Autor: Mike Cardwell
Data:  
A: Exim Users List
Assumpte: 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/