Thanks for the tip, I will try that monday and post the results.
Bolivar,
----- Original Message -----
From: Markus Stumpf <[EMAIL PROTECTED]>
To: Bolivar Diaz Galarza <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 16, 2000 7:39 PM
Subject: Re: Blocking a specific address
> On Fri, Jun 16, 2000 at 07:00:26AM -0500, Bolivar Diaz Galarza wrote:
> > One of my clients does not like to receive e-mail from
> > exposed.freewebsites.com, how do I block this server? it is ot in the
> > mail-abuse or orbs.org database....
>
> There is a patch for qmail-smtpd.c floating around (sorry, I don't
> have it handy, and I can't extract one as my qmail-smtpd is *heavily*
> patched) that basically checks for a environment variable
> BOUNCEMAIL and if set sends back the contents of this variable in
> smtp_rcpt() before the "250 ok".
>
> As a way to go modify qmail-smtpd.c
> ------------------------------------------------------------------------
> near "char *relayclient;" add a line
> char *bouncemail;
> --------------------
> near "void err_bmf() { ... }" add a line
> void err_bouncemail(s) char *s; { out(s); out(" (#5.7.1)\r\n"); }
> --------------------
> in setup() before "dohelo()" add a line
> bouncemail = env_get("BOUNCEMAIL");
> --------------------
> in smtp_rcpt() after "if (flagbarf) { ...}" add a line
> if (bouncemail) { err_bouncemail(bouncemail); return; }
> ------------------------------------------------------------------------
>
> This allows using tcprules like:
> 216.65.1.3:allow,BOUNCEMAIL="521 we do not accept messages from this
server"
>
> Please note, that this will not only filter out messages to one of your
> client, but affects your qmail system as a whole. It will reject all
> messages from 216.65.1.3 (i.e. exposed.freewebsites.com).
>
> If you want the filtering to be client specific the solution depends
> on how your client gets his email delivered.
>
> \Maex
>
> --
> SpaceNet GmbH | http://www.Space.Net/ | Stress is when you
wake
> Research & Development | mailto:[EMAIL PROTECTED] | up screaming and
you
> Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | realize you
haven't
> D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet.
>