Re: [exim] Add recipient for subject line

Top Page
Delete this message
Reply to this message
Author: Peter Kirk
Date:  
To: Mike Cardwell, Exim Users List
Subject: 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/


Sorry but one more question, I have been trying but cant get it right,
say now I want:

All mail got to user1@??? with subject "whateva"... must be
redirected to user2@???, so user1@??? no longer gets it

Any help would be greatly appreciated :)

Thanks