Thanks for your answer. Thats a good idea with a .qmail file. 

But is it possible to make a file for a specific domain ? 
I have currently 13 local domains and 12 domains for remote Mailservers 

Regards,
J�rg Sippel


----- Original Message ----- 
From: "Claudio Jeker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 11:14 AM
Subject: Re: Whitelist for recipients


> On Tue, Jul 01, 2003 at 09:55:51AM +0200, J�rg Sippel wrote:
> > Hello,
> > 
> > our Qmail server is currently used to recieve mail from Internet and
> > forward it to multiple internal mailservers. Since 3 weeks a spammer on
> > the internet use one of our domains as sender for their spam. All
> > messages which noch reach her destination come back to us with a
> > failure. This Addresses also don't exist on our internal server, so i
> > get the messages in my inbox an there are thousands a week :(
> > 
> > Is it possible to get a whitelist with qmail with allowed recipients
> > instead of badrcptto for one domain to block bad recipients?
> > 
> 
> It is not possible to do that in qmail-ldap (there is no whitelist in
> qmail-smtpd implemented, and I don't think it is very useful)
> I would add a catchall account for that domain and deliver all mails to a
> account that does the filtering and forwarding. You can use the RECIPIENT
> env to filter and forward the good mails directly with qmail-remote.
> Instead of a catchall account in ldap you can also use the alias user and
> a .qmail-default or a virtualdomain config.
> 
> A possible .qmail could look like this.
> 
> # first line
> |sh -c "grep -qi $RECIPIENT whitelist || exit 99"
> |sh -c "qmail-remote remotehost $SENDER $RECIPIENT"
> # end
> 
> Nota bene, this is just a idea. I never tested it and I'm not sure if
> there are any possible pittfalls.
> 
> -- 
> :wq Claudio
>

Reply via email to