Problems getting news/mail gateway working (with fixes)

System: Debian: 2.0 Mailman: 1.0b6 (compiled, not from .deb package) Inn: 1.7.2 (debian package version 1.7.2-4)
I found one bug in the Python source and one installation error:
I'm trying to set up Mailman on my system to gateway between mail and news. I found I was getting the following error in my syslog when trying to gateway mail to news:
Dec 23 13:05:00 hodag /USR/SBIN/CRON[12324]: (mailman) CMD (/usr/bin/python /hom e/m/mailman/cron/gate_news) Dec 23 13:09:05 hodag sendmail[12352]: NAA12352: from=<sjp@siliconlogic.com>, si ze=671, class=0, pri=30671, nrcpts=1, msgid=<36813FAF.710DD6C6@siliconlogic.com> , proto=ESMTP, relay=relay.siliconlogic.com [207.67.84.2] Dec 23 13:09:05 hodag sendmail[12353]: NAA12353: clone NAA12352, owner=test-admi n Dec 23 13:09:07 hodag nnrpd[12358]: hodag.buzzsaw.net connect Dec 23 13:09:07 hodag nnrpd[12358]: hodag.buzzsaw.net post failed Duplicate "Sen der" header Dec 23 13:09:07 hodag nnrpd[12358]: hodag.buzzsaw.net exit articles 0 groups 0 Dec 23 13:09:07 hodag nnrpd[12358]: hodag.buzzsaw.net posts received 0 rejected 1 Dec 23 13:09:07 hodag nnrpd[12358]: hodag.buzzsaw.net times user 0.010 system 0. 010 elapsed 0.131
Looks like it failed because the header that innd got was bad. Investigation revealed this bit of code from GatewayManager.py:
subj = msg.getheader('subject')
if not subj:
msg.SetHeader('Subject', '%s(no subject)' % prefix)
if self.reply_goes_to_list:
del msg['reply-to']
msg.headers.append('Reply-To: %s\n' % self.GetListEmail())
msg.headers.append('Sender: %s\n' % self.GetAdminEmail())
msg.headers.append('Errors-To: %s\n' % self.GetAdminEmail())
msg.headers.append('X-BeenThere: %s\n' % self.GetListEmail())
msg.headers.append('Newsgroups: %s\n' % self.linked_newsgroup)
Looks like a new Sender: line is getting added, but the original one is not removed. I commented out this line and then things started working.
As for news to mail:
I got the following error for that:
Received: (from root@localhost) by hodag.buzzsaw.net (8.8.8/8.8.8/Debian/GNU) id PAA13832 for mailman; Wed, 23 Dec 1998 15:30:05 -0600 Date: Wed, 23 Dec 1998 15:30:05 -0600 Message-Id: <199812232130.PAA13832@hodag.buzzsaw.net> From: root (Cron Daemon) To: mailman Subject: Cron <mailman@hodag> /usr/bin/python /home/m/mailman/cron/gate_news X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/m/mailman> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=mailman>
sh: /home/m/mailman/scripts/post: Permission denied
Installed permisions on "post" were:
-rw-r--r-- 1 root mailman 2832 Dec 23 14:14 post
I did chmod 755 on post and then things started working correctly.

Thanks Steve. Actually both this bugs have already been fixed for the next release. You can get the new GatewayManager.py file from the CVS tree (or if it's urgent I can send it to you).
-Barry
participants (2)
-
Barry A. Warsaw
-
Steve Phillips