[Mailman-Users] When using qmail, messages bounce if they have capital letters in the listname portion of the address
Tanner Lovelace
lovelace at wayfarer.org
Tue Nov 14 01:37:45 CET 2000
Greetings,
I recently installed Mailman on my system. I use qmail
as my mailer daemon so I used the qmail-to-mailman.py
script contributed by Bruce Perens. I noticed however,
that when using the script it bounces any address that
has any kind of capital letters in the username portion
of the e-mail address. This is apparently because of
the fact that the script checks for the existence of
the list directory to verify a list's existence. Since
the directory is lowercased upon creation, the script
needs to lowercase the username portion of the address
also. (example: if you have a list called
mailinglist at lists.domain.com and send a message to
MailingList at lists.domain.com it will bounce the message
saying there is no list by that name.) I asked Bruce
about it and he suggested I submit my patch.
One question I had, though, was if this was the correct
way to handle this. Domain names are defined to be case
insensitive but generally usernames are not. Unfortunately,
many users come from the MS-Windows world where most things
are case insensitive and are likely to get confused by case
sensitivity.
I've gone ahead and submitted this as a bug to sourceforge
and submitted a corresponding patch. I hope that was
the correct thing to do.
Anyway, here is the patch. What are the chances that
this can make it into the 2.0 release?
--- contrib/qmail-to-mailman.py-orig Mon Nov 13 19:13:23 2000
+++ contrib/qmail-to-mailman.py Mon Nov 13 19:14:00 2000
@@ -62,6 +62,8 @@
sys.stderr.write("LOCAL not set in environment?\n")
sys.exit(100)
+ local = string.lower(local)
+
local = re.sub("^mailman-","",local)
names = ("root", "postmaster", "mailer-daemon", "mailman-owner",
"owner",
--
Tanner Lovelace
lovelace at wayfarer.org
http://wtl.wayfarer.org/
Cthulu for President. Why settle for the lesser evil?
More information about the Mailman-Users
mailing list