On Tue, 9 Dec 1997, Bradley Dunn wrote:
> First let me say that I really like Exim and we are working to switch all
> of our sendmail boxes over to Exim. It is great to have such rich features
> without having to hack up a sendmail.cf. Also, Exim has some of the best
> documentation I have ever seen for a computer program, free or otherwise.
Thank you.
> What I want to do is take the $recipients variable in a systemwide filter
> and selectively remove addresses containing a certain string. There is
> another catch, I only want to do this when $sender_address contains a
> certain string. I know I can do something like this:
>
> if $sender_address contains "x.dom" and $recipients contains "y.dom"
> then seen finish
> endif
>
> That is almost what I want but I believe this will blackhole the message
> for all of the recipients. I only want to blackhole it for those
> recipients who contain "y.dom".
>
> Is there a way to do this?
Yes, but not in a system filter, which is a one-off thing for the whole
message. Your requirement is to handle certain recipients specially
under certain circumstances, and that is a directing task. Try something
like this:
blackhole_transport:
driver = appendfile
file = /dev/null
user = nobody
...
blackhole_director:
driver = smartuser
transport = blackhole_transport
senders = ^.*x\.dom
domains = ^.*y\.dom
--
Philip Hazel University Computing Service,
ph10@??? New Museums Site, Cambridge CB2 3QG,
P.Hazel@??? England. Phone: +44 1223 334714
--
*** Exim information can be found at
http://www.exim.org/ ***