Re: [Mailman-Users] Re: No footer

Brad Knowles wrote:
At 12:12 PM -0400 2004-06-16, Anita Lewis wrote:
They are on a webhost - complete different server and domain. Ours is on a dedicated server that one of us has root access to. I just mention about our posting to the other lists, because it shows that our emails are not the problem.
Yes, but those other lists might have different configurations.
They might have had their software customized to deal better with such issues. There's no way of telling what the similarities and differences are, unless you control all of the systems in question and you can give exhaustive documentation on each minute detail.
We changed servers and got a domain a while back. Previously we had Suse 9.0 and mailman 2.0.13. I looked at our emails on the list back then and we had footers. I compared the headers just now and I see a difference in a couple of places. I'll copy both sets below, but here is what stands out to me. Could this be the difference? ...Anita
Current with no footer: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: lb-admin@LinuxBasics.org X-Mailman-Version: 2.1.4
Previous with footer: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: [LinuxBasics] Today's IRC-log Sender: linuxbasics-admin@waidele.info Errors-To: linuxbasics-admin@waidele.info X-BeenThere: linuxbasics@waidele.info X-Mailman-Version: 2.0.13
====================Complete 2.0.13================ From - Wed Apr 21 17:13:37 2004 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: <linuxbasics-admin@waidele.info> Received: from p10085231.pureserver.de ([unix socket]) by p10085231 (Cyrus v2.1.9) with LMTP; Wed, 21 Apr 2004 00:20:01 +0200 X-Sieve: CMU Sieve 2.2 Received: from p10085231.pureserver.de (localhost.localdomain [127.0.0.1]) by p10085231.pureserver.de (Postfix) with ESMTP id 649B53140D2; Wed, 21 Apr 2004 00:20:01 +0200 (CEST) Delivered-To: linuxbasics@waidele.info Received: from Waidele.info (p5083F66A.dip0.t-ipconnect.de [80.131.246.106]) by p10085231.pureserver.de (Postfix) with ESMTP id 4D4633140D2 for <linuxbasics@waidele.info>; Wed, 21 Apr 2004 00:19:04 +0200 (CEST) Message-ID: <4085A1D2.7070800@Waidele.info> From: "Stefan Waidele jun." <Stefan@Waidele.info> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: linuxbasics@waidele.info Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: [LinuxBasics] Today's IRC-log Sender: linuxbasics-admin@waidele.info Errors-To: linuxbasics-admin@waidele.info X-BeenThere: linuxbasics@waidele.info X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: linuxbasics@waidele.info List-Unsubscribe: <http://waidele.info/mailman/listinfo/linuxbasics>, <mailto:linuxbasics-request@waidele.info?subject=unsubscribe> List-Id: LinuxBasics - The Community Linux Course <linuxbasics.waidele.info> List-Post: <mailto:linuxbasics@waidele.info> List-Help: <mailto:linuxbasics-request@waidele.info?subject=help> List-Subscribe: <http://waidele.info/mailman/listinfo/linuxbasics>, <mailto:linuxbasics-request@waidele.info?subject=subscribe> List-Archive: <http://waidele.info/pipermail/linuxbasics/> Date: Wed, 21 Apr 2004 00:18:58 +0200
==================Complete 2.1.4================ From - Sat May 08 11:18:11 2004 X-Mozilla-Status: 0013 X-Mozilla-Status2: 00000000 Return-Path: <lb-admin-bounces@LinuxBasics.org> Received: from linuxbasics.org ([unix socket]) by p15156159 (Cyrus v2.1.15) with LMTP; Sat, 08 May 2004 00:42:43 +0200 X-Sieve: CMU Sieve 2.2 Received: by linuxbasics.org (Postfix, from userid 72) id A5C53C0017E; Sat, 8 May 2004 00:42:43 +0200 (CEST) X-Original-To: lb-admin@LinuxBasics.org Delivered-To: lb-admin@LinuxBasics.org Received: from LinuxBasics.org (p5083E484.dip0.t-ipconnect.de [80.131.228.132]) by linuxbasics.org (Postfix) with ESMTP id 05BD2C0017D for <lb-admin@LinuxBasics.org>; Sat, 8 May 2004 00:42:41 +0200 (CEST) Message-ID: <409C10E0.2000704@LinuxBasics.org> Date: Sat, 08 May 2004 00:42:40 +0200 From: Stefan Waidele <St.Waidele@LinuxBasics.org> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Admin-List for the Linuxbasic.org team" <lb-admin@LinuxBasics.org> Subject: Re: [LB-Admin] TWiki mailnotify References: <409C0C00.8080703@linuxbasics.org> In-Reply-To: <409C0C00.8080703@linuxbasics.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: lb-admin@LinuxBasics.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: "Admin-List for the Linuxbasic.org team" <lb-admin@LinuxBasics.org> List-Id: "Admin-List for the Linuxbasic.org team" <lb-admin.LinuxBasics.org> List-Unsubscribe: <http://LinuxBasics.org/mailman/listinfo/lb-admin>, <mailto:lb-admin-request@LinuxBasics.org?subject=unsubscribe> List-Archive: <http://LinuxBasics.org/mailman/private/lb-admin> List-Post: <mailto:lb-admin@LinuxBasics.org> List-Help: <mailto:lb-admin-request@LinuxBasics.org?subject=help> List-Subscribe: <http://LinuxBasics.org/mailman/listinfo/lb-admin>, <mailto:lb-admin-request@LinuxBasics.org?subject=subscribe>

At 8:04 PM -0400 2004-06-16, Anita Lewis wrote:
Current with no footer: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: lb-admin@LinuxBasics.org X-Mailman-Version: 2.1.4
Previous with footer: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: [LinuxBasics] Today's IRC-log Sender: linuxbasics-admin@waidele.info Errors-To: linuxbasics-admin@waidele.info X-BeenThere: linuxbasics@waidele.info X-Mailman-Version: 2.0.13
Weird. If anything I would have expected that the 8-bit encoding
and charset=windows-1252 might have caused problems for you, but that's from the group that used to work.
At this point, all I can suspect is the templates for the footer.
-- Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania.
SAGE member since 1995. See <http://www.sage.org/> for more info.

Brad Knowles wrote:
At 8:04 PM -0400 2004-06-16, Anita Lewis wrote:
Current with no footer: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: lb-admin@LinuxBasics.org X-Mailman-Version: 2.1.4
Previous with footer: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: [LinuxBasics] Today's IRC-log Sender: linuxbasics-admin@waidele.info Errors-To: linuxbasics-admin@waidele.info X-BeenThere: linuxbasics@waidele.info X-Mailman-Version: 2.0.13
Weird. If anything I would have expected that the 8-bit encoding
and charset=windows-1252 might have caused problems for you, but that's from the group that used to work.
At this point, all I can suspect is the templates for the footer.
We even tried making a new list and left everything at default. The footer is the default. That isn't working either. I don't think it is the footer if the default doesn't work.
Could the footer be stripped out for some reason? Maybe something that sendmail does to it? Also could the fact that this box has more than one domain on it have anything to do with this?
Anita

At 7:21 AM -0400 2004-06-17, Anita Lewis wrote:
We even tried making a new list and left everything at default. The footer is the default. That isn't working either. I don't think it is the footer if the default doesn't work.
Hmm. Did you stop and restart mailman after making changes?
Could the footer be stripped out for some reason? Maybe something that sendmail does to it?
Sendmail shouldn't be doing anything of this sort, but if you're
using a tool like MIMEDefang, an anti-virus scanner, an anti-spam processing engine, or anything else other than plain-jane sendmail during the processing of messages, that might.
Also could the fact that this box has more than
one domain on it have anything to do with this?
Dunno. I wouldn't think so.
-- Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania.
SAGE member since 1995. See <http://www.sage.org/> for more info.

Brad Knowles wrote:
At 7:21 AM -0400 2004-06-17, Anita Lewis wrote:
We even tried making a new list and left everything at default. The footer is the default. That isn't working either. I don't think it is the footer if the default doesn't work.
Hmm. Did you stop and restart mailman after making changes?
I don't have root privilege on the server. The person who does made the new list. Are you saying that after making a new list, the admin needs to run the mailman script in the init directory with 'restart'?
Could the footer be stripped out for some reason? Maybe something that sendmail does to it?
Sendmail shouldn't be doing anything of this sort, but if you're
using a tool like MIMEDefang, an anti-virus scanner, an anti-spam processing engine, or anything else other than plain-jane sendmail during the processing of messages, that might.
I was wrong here - the server is using postfix, but I assume that would be similar in function to endmail. I'll check, but don't think there is anything else processing mail.
Thanks. I'll have to wait until tomorrow when I can confer with the admin of the server.
Anita

At 12:17 PM -0400 2004-06-17, Anita Lewis wrote:
I don't have root privilege on the server. The person who does made the new list. Are you saying that after making a new list, the admin needs to run the mailman script in the init directory with 'restart'?
No, but if you've made any changes to any of the templates, then
you need to stop and restart mailman (using mailmanctl, or the vendor-provided script that calls mailmanctl).
I was wrong here - the server is using postfix, but I assume that would be similar in function to endmail. I'll check, but don't think there is anything else processing mail.
Yeah, postfix would function the same way, at this level.
Thanks. I'll have to wait until tomorrow when I can confer with the admin of the server.
Sorry I'm not able to be more helpful. I'm just out of ideas of
things to look at or try.
-- Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania.
SAGE member since 1995. See <http://www.sage.org/> for more info.

Brad Knowles wrote:
At 12:17 PM -0400 2004-06-17, Anita Lewis wrote:
I don't have root privilege on the server. The person who does made the new list.
I am that person. Hi I'm Stefan :)
You suggested (in a PM to Anita, I think) that we add more logging into .../Mailman/Handlers/Decorate.py like this:
syslog('error', 'can't add footer because xxx')
Well I did so in several places, even outside of conditions, just so I could see that Decorate.py is called.
It is not.
A 'grep Decorate /home/mailman/Mailman/Handlers' only gave SMTPDirect.py as files calling Decorate.py.
Since we were not able to use SMTPDirect.py because the server only accepts authenticated smtp-connections, which do not seem to work with SMTPDirect.py
So, against the warning in Sendmail.py, we are using that handler for sending mail. I have inserted the call to Decorate.py I saw in SMTPDirect.py where I thought it would be appropriate, but with no success.
I have not much knowledge in python. I renamed the Sendmail.pyc so the new source would be compiled. While the list still works, there is no new compiled version in the directory. Strange.
I would be very thankful for any clues,
Stefan

On Sat, Jun 19, 2004 at 09:24:52PM +0200, Stefan Waidele jun. wrote:
Brad Knowles wrote:
At 12:17 PM -0400 2004-06-17, Anita Lewis wrote:
I don't have root privilege on the server. The person who does made the new list.
I am that person. Hi I'm Stefan :)
You suggested (in a PM to Anita, I think) that we add more logging into .../Mailman/Handlers/Decorate.py like this: syslog('error', 'can't add footer because xxx')
Ah. I think *I* was *that* person.
Since we were not able to use SMTPDirect.py because the server only accepts authenticated smtp-connections, which do not seem to work with SMTPDirect.py
Ah! Python's smtplib module grew support for SMTP auth in version 2.2. If you need only a single user/password, you could embed it in SMTPdirect: --- /usr/local/src/mailman-2.1.5/Mailman/Handlers/SMTPDirect.py 2004-01-23 08:02:07.000000000 +0900 +++ SMTPDirect.py 2004-06-24 11:55:29.420208168 +0900 @@ -61,6 +61,7 @@ def __connect(self): self.__conn = smtplib.SMTP() self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT) + self.__conn.login('user', 'password') self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION def sendmail(self, envsender, recips, msgtext): --- /usr/local/src/mailman-2.1.5/Mailman/Handlers/SMTPDirect.py Cleaner alternatives might be to: - if the user/passord are the same for all the lists, put them in your mm_cfg.py and reference them here - add them to the affected list's MailList object (using bin/withlist) and reference them here (guarded by an 'if' to make sure they exist)
So, against the warning in Sendmail.py, we are using that handler for sending mail. I have inserted the call to Decorate.py I saw in SMTPDirect.py where I thought it would be appropriate, but with no success.
It does seem a bug that Sendmail.py isn't doing the decoration... I think most people are using SMTPDirect to inject their messages into their mail systems. -- Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/ Ringo MUG Tokyo http://www.ringo.net/rss.html

Jim Tittsler wrote:
[...] Ah. I think *I* was *that* person.
Sorry, I had to parse a forwarded copy of one part of the start of the thread. I even think the exchange was in PM, at least in part, so I quess you are right :)
[...] Ah! Python's smtplib module grew support for SMTP auth in version 2.2. If you need only a single user/password, you could embed it in SMTPdirect:
--- /usr/local/src/mailman-2.1.5/Mailman/Handlers/SMTPDirect.py 2004-01-23 08:02:07.000000000 +0900 +++ SMTPDirect.py 2004-06-24 11:55:29.420208168 +0900 @@ -61,6 +61,7 @@ def __connect(self): self.__conn = smtplib.SMTP() self.__conn.connect(mm_cfg.SMTPHOST, mm_cfg.SMTPPORT) + self.__conn.login('user', 'password') self.__numsessions = mm_cfg.SMTP_MAX_SESSIONS_PER_CONNECTION
def sendmail(self, envsender, recips, msgtext):
--- /usr/local/src/mailman-2.1.5/Mailman/Handlers/SMTPDirect.py
This is what I did, and things work perfectly. Thank you very much. I had mixed feelings about using the unsafe Sendmail.py but it was still better than running an open relay.
Cleaner alternatives might be to: - if the user/passord are the same for all the lists, put them in your mm_cfg.py and reference them here [...] It does seem a bug that Sendmail.py isn't doing the decoration... I think most people are using SMTPDirect to inject their messages into their mail systems.
I think it is not a major bug in Sendmail.py, since the author strongly dissapproves its usage. It should be in there, since it is provided as an example. But I would not really consider it to be a 'bug'. I consider it more important to support SMTP-auth in the widely used SMTPDirect.py module. (That is: without source-code changes done by the users) When I installed mailman, I was looking for a way to use SMTP-auth but did not find any. Seems like it is the time to join the documentation-list, isn't it...? :) Well, thank you all very much for your help and for a wonderfull software. Stefan

At 9:24 PM +0200 2004-06-19, Stefan Waidele jun. wrote:
I have not much knowledge in python. I renamed the Sendmail.pyc so the new source would be compiled. While the list still works, there is no new compiled version in the directory. Strange.
You need to stop and restart Mailman, using mailmanctl.
Now, why aren't you able to use SMTPDirect?
-- Brad Knowles, <brad.knowles@skynet.be>
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin, Historical Review of Pennsylvania.
SAGE member since 1995. See <http://www.sage.org/> for more info.

Brad Knowles wrote:
[...] Now, why aren't you able to use SMTPDirect?
Because when setting up the server, I did not find out how to use authenticated SMTP.
It seemed better to use Sendmail.py than running an open relay.
Thank you very much for your help in this matter. Even though it did not lead to an 'instant solution', I learned very much about mailman in the process.
Yours,
Stefan
PS: The problem is solved, as I will report the list in an answer to Jim Tittsler's post.
participants (4)
-
Anita Lewis
-
Brad Knowles
-
Jim Tittsler
-
Stefan Waidele jun.