> Date: Thu, 12 Feb 2004 13:18:52 -0600
> From: Kyle Hasselbacher <[EMAIL PROTECTED]>
> To: Benjamin J. Stassart <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: Incoming whitelist
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wed, Oct 15, 2003 at 09:19:30PM -0700, Benjamin J. Stassart wrote:
>
> Sorry for the very late reply. I'm just now looking at implementing this.
> I have a bugfix and a question.
While not quite the delay of your reply :), sorry for the slow response.
> ># $Id: tmda-incoming,v 1.12 2003/10/16 03:23:02 stassart Exp stassart $
> When I actually set $MAXADDR = 0, it didn't work as advertised. I changed
> the line to this:
>
> > if ($MAXADDR && $addr_count > $MAXADDR) {
>
> That seemed to help.
Thank you for letting me know about the bug.
1.12 had one serious bug if you try to use it with Qmail's preline it can
generate errors in the system log and postpone delivery indefinitely.
Preline has an issue where if one exits a piped program before reading the
entire message it gives an error message (I had initially just been
reading headers). I posted back in November about the updated version.
If you are using Qmail and preline, I highly recommend upgrading.
There was another bug where duplicate addresses were being added to the
whitelist when CDB databases were being used and the e-mail address was
not lower case. I just fixed this bug. One can clean up any duplicate
entries with:
% cat whitelist-incoming | tr '[A-Z]' '[a-z]' | sort | uniq >
whitelist-incoming.new
% wc -l whitelist-incoming
% wc -l whitelist-incoming.new
% mv whitelist-incoming.new whitelist-incoming
I only had about 40 duplicate e-mail address, but your traffic may vary.
The latest version is available:
http://www.stassart.org/tmda/tmda-incoming
I made a few other minor improvements.
# Revision 1.16 2004/02/16 08:34:32 stassart
# Make sure CDB database is up to date, otherwise use text version.
# Check for undisclosed-recipients or Recipient list suppressed
# rather than logging an Invalid e-mail address.
#
# Revision 1.15 2004/02/16 07:55:53 stassart
# Fixed MAXADDR bug reported by Kyle Hasselbacher.
#
# Revision 1.14 2004/02/16 07:50:49 stassart
# Added print_log_debug and log_time.
# Fixed lowercase bug with CDB.
#
# Revision 1.13 2003/11/10 08:24:50 stassart
# Grab rest of data for preline.
> My question is, is there a simple way to tell it addresses that I want
> never to add (e.g., my own)? I'm not on my whitelist, and I don't want to
> be, but this added it with the first test I tried. I can certainly insert
> code locally to do it, but I wondered if there was a way already
> implemented that I'd missed.
Sure. Just add another list to check. If you use a text whitelist, you
can use the * and @= wildcards.
> Thanks for this program!
Thanks for the feedback.
I wrote this program for myself and users on my system, but thought others
may find it useful.
Benjamin J. Stassart
------------------------------------------------+
A great many people think they are thinking |
when they are merely rearranging their |
prejudices |
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users