Re: [exim] Block mails sent to a spacific address

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Andrew
Fecha:  
A: Vaidya nathan
Cc: exim-users
Asunto: Re: [exim] Block mails sent to a spacific address
Heya,

Vaidya nathan wrote:
> Thanks Andrew. This seems to work for me. But i get the following error
> in the Exim log, not sure why.
> 2009-11-23 17:01:05 KTERX8-00020S-A8 == abc@??? R=reject_user
> defer (-17): error in redirect data: missing or malformed local part
> (expected word or "<") in ": freeze:Mail blocked for this recepient"


I think spaces are not allowed between : and freeze, Also a space after
the second colon surrounding freeze might be required, but not 100% sure.

Are you using a file for storage of local parts to reject?
If so, do you have a : at the end of the local part, a space (well at
least one) and then :freeze:
If not, that's where the problem lies.
eg
abc: :freeze:

HTH
cya
Andrew

> On Fri, 20 Nov 2009 13:12:49 +0530 wrote
> >Andrew wrote:
> > Vaidya nathan wrote:
> >> Thanks for your response. Actually i'm running Exim on Cygwin in
> windows.
> >>
> >> The mails are submitted locally to Exim.
> >>
> >> Other point i forgot to say is that i need to allow mails to all
> other IDs of the domain example.com except abc@???.
> >>
> >> But I hope the below entry would actually block sending mails to
> example.com.
> >>
> >> reject_user:
> >>
> >> driver = redirect
> >>
> >> domains = example.com
> >>
> >> allow_fail
> >>
> >> data = ${lookup{$local_part}lsearch{/path/to/above/file}}
> >>
>
> BTW to take out the whole domain just replace
> data = ${lookup{ etc
> with
> data = :fail: This domain is blocked.
> or
> data = :freeze:
>
>
> cheers
>
>
> --snip--
>
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>