| To: | qmail@list.cr.yp.to |
|---|---|
| Subject: | Re: [Christmas Gift for free] 50% Spam reduction ! |
| From: | Joshua Megerman <qmail@honorablemenschen.com> |
| Date: | Sat, 6 Jan 2007 00:22:25 -0500 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | gmail-qmail@securepoint.com |
| Delivered-to: | sp.com.list@gmail.com |
| Delivered-to: | mailing list qmail@list.cr.yp.to |
| In-reply-to: | <20070106015856.GA16830@odin.dempsky.org> |
| Mailing-list: | contact qmail-help@list.cr.yp.to; run by ezmlm |
| References: | <3.0.6.32.20061222190856.00b84580@192.168.192.1> <459E9C6B.50109@scriptkitchen.com> <20070106015856.GA16830@odin.dempsky.org> |
| User-agent: | KMail/1.9.5 |
On Friday 05 January 2007 20:58, Matthew R. Dempsky wrote:
> On the topic of logging, yesterday I released greetdelay 0.02, which
> slightly improves the log output format by adding IP and pid info
> (like rblsmtpd's).
Here's a 1-line patch to your program that spits out a 554 response code
before exiting if strict checking is enabled - this is required to maintain
RFC2821 compliance. Since you are accepting the connection, you must give a
response, even if it's just "go away"...
--- greetdelay.c.orig 2007-01-04 09:03:59.000000000 -0500
+++ greetdelay.c 2007-01-06 00:07:40.000000000 -0500
@@ -54,6 +54,7 @@
select(1,&rfds,0,0,&tv);
if (flagstrict && FD_ISSET(0,&rfds)) {
if (verbosity >= 1) fprintf(stderr,"greetdelay: %s pid %lu: premature
input on stdin\n",ip,pid);
+ printf("554 You must wait until you receive the SMTP banner before
talking\n");
return 111;
}
}
Josh
--
Joshua Megerman
SJGames MIB #5273 - OGRE AI Testing Division
You can't win; You can't break even; You can't even quit the game.
- Layman's translation of the Laws of Thermodynamics
qmail@honorablemenschen.com
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Christmas Gift for free] 50% Spam reduction !, Sami Farin |
|---|---|
| Next by Date: | Re: [Christmas Gift for free] 50% Spam reduction !, Matthew R. Dempsky |
| Previous by Thread: | Re: [Christmas Gift for free] 50% Spam reduction !, Matthew R. Dempsky |
| Next by Thread: | Re: [Christmas Gift for free] 50% Spam reduction !, Matthew R. Dempsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |