On 12 April 2018 at 10:05, Ajay Kajla via Exim-users <exim-users@exim.org>

> Hi,
> We have following requirement any mail coming from a...@abc.com and subject
> contains "SomeThing" to go to x...@mydomain.com With complete headers and
> to
> a...@mydomain.com without Cc and From headers.
> I tried following filter but it's removing headers for both
> x...@mydomain.com
> & a...@mydomain.com.
> =====
> if ("$h_from:" contains "a...@abc.com" and "$header_subject:" contains
> "SomeThing")
> then
> deliver "x...@mydomain.com" (should go to x...@mydomain.com With complete
> headers )
> endif

I can't help with the why headers are being removed for both. However my
thought is that you might want to be a bit careful with

"$h_from:" contains "a...@abc.com"

as I'm pretty sure it will also match when $h_from is, say, "z...@abc.com"
(because this also *contains* "a...@abc.com").

Mind, I might well be wrong as I've only used a system filter in one
situation, and that was about 10 years ago! :-)

Mike B-)

Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to