Re: [Exim] fail all mail going to a certain domain

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Dan Jacobson
CC: exim-users
Subject: Re: [Exim] fail all mail going to a certain domain
On Wed, 2 Apr 2003, Dan Jacobson wrote:

> Dear list: is
>
>  if $domain contains jidanni.org then
>     fail "Please see http://jidanni.org/contact_en.html for my address."
>  endif

>
> one way to reject all messages coming into my pal's machine that are
> meant for *@*jidanni.org?


Only if you put it in a filter that is called from a router.

You can't put it in system filter, because a message may have more than
one recipient, and so $domain is not set at that time. You presumably
want to reject only the invalid addresses, not valid ones. So you must
put this logic somewhere that is obeyed separately for each address, and
that is the routers.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.