Thanks Darren for the tips below. I'm using it and it works just fine!
I've just switched from sendmail to exim and have few related questions:
I transferred a long rejection list I had for sendmail in /etc/mail/access
and modified it into a file that matches your description below.
In my exim blacklist most lines look like:
*.xxxstaion.com : *
xxxtopsex.com : *
But I have few popular domains in which I tried to block specific names just
like the
yahoo.com : sex : hp2500cp : ver42sixyfive : mke : yoshrajobs : partyzeus :
infoemail-2000
(and more)
1. How do I break a very long line into few? I tried ending it with a
backslash (\) but it won't work.
2. Can I block partial local names, something like:
yahoo.com : *sex* : *money*
My original sendmail rejection list contains many explicit IP addresses and
sometimes only the first 3 parts of the IP.
How can I transfer this into exim?
Thanks in advance,
--
Ilan Aisic
Pointer Software Systems, Ltd.
> -----Original Message-----
> From: exim-users-admin@???
> [mailto:exim-users-admin@exim.org] On Behalf Of Darren Casey
> Sent: Monday, February 09, 2004 1:28 PM
> To: Martin Brooks; exim-users@???
> Subject: Re: [Exim] Refuse specific recipients?
>
>
> > I'd like exim4 to refuse recipients from a list in a text
> file. I've
> > seen several possible mechanisms for doing this but I wondered if
> > anyone had some real world experience of doing this. Any tips
> > appreciated.
>
> to block the sender domain on a match
>
> deny senders = @@lsearch;/etc/reject-by-domain
> message = $local_part@$domain does not want your email
>
> Or recipent :-
> deny recipients = @@lsearch;/etc/reject-by-domain
> message = $local_part@$domain is an invalid e-mail address
>
> The format of reject-by-domain is
> lowestonweb.info : *
> pcpartner.net : *
> domain.com : alias : priceless : n : mains : matrixsolutions : ains
>
> Have the above working on many mail servers with no issues
>
> The above should be in
>
> acl_check_rcpt:
>
> put it below
> accept hosts = :
>
> Regards
> Darren
>
>