[Mailman-Developers] Mailman not delivering the mail
Michael McLay
mclay@nist.gov
Fri, 5 Jun 1998 14:50:02 -0400 (EDT)
The subscribe script execute and the Web page that is returned says
a message will be sent to the subscriber, but no message arrives.
I think something is wrong with gid or uid. By adding an intentional
bug in Mailman/mm_utils.py the attached trace was triggered just after
msg.GetSender() was called. Here's the bug that was added:
import smtplib
sender = msg.GetSender()
findbug
The debugging code that was added shows that the script is being
executed as nobody. Am I correct in assuming that the mailer won't
send out a message from nobody because nobody is not a trusted user?
uid 65534 (nobody)
euid 65534 (nobody)
gid 55 (mailman)
egid 50 (wwwcgi) - a group set up for cgi scripts.
I also was curious about the wwwcgi egid. This is the gid setting
used inside the httpd configuration, but when the subscribe cgi script
create the data/pending_subscriptions.db the group is set to mailman.
I'm confused about what the settings of all these things should be.
I also found the layers used to send out the mail messages to be
puzzling. Why the trip from maillist -> MailList -> mm_deliver ->
Deliverer - > DeliverToUser -> mm_utils -> DeliverToUser. Why so much
indirection?
Michael
###################### REPLY MESSAGE ###############################
We're sorry, we hit a bug!
If you would like to help us identify the problem, please email a copy of this page to
the webmaster for this site with a description of what happened. Thanks!
['/usr/local/mailman/scripts/subscribe']
Traceback (innermost last):
File "/usr/local/mailman/scripts/subscribe", line 26, in ?
from Mailman.subscribe import *
File "/usr/local/mailman/Mailman/subscribe.py", line 151, in ?
list.SendTextToUser(subject = "%s -- confirmation of subscription -- request %d" % \
File "/usr/local/mailman/Mailman/mm_deliver.py", line 105, in SendTextToUser
mm_utils.SendTextToUser(subject, text, recipient, sender,
File "/usr/local/mailman/Mailman/mm_utils.py", line 145, in SendTextToUser
DeliverToUser(msg, recipient, add_headers=add_headers)
File "/usr/local/mailman/Mailman/mm_utils.py", line 162, in DeliverToUser
findbug
NameError: findbug
Execution privilage on the Server
uid
65534
euid
65534
gid
55
egid
50
Environment Variable on the Server
DOCUMENT_ROOT
/usr/local/etc/httpd/htdocs
REMOTE_HOST
fermi
CONTENT_TYPE
application/x-www-form-urlencoded
PATH_TRANSLATED
/usr/local/etc/httpd/htdocs/test/
REMOTE_ADDR
129.6.185.13
GATEWAY_INTERFACE
CGI/1.1
HTTP_COOKIE
NVL_prefs=yvt0fss0000ss0s000000s000s00000000000000000000ss0s0000000000QQMichael%20McLay
SERVER_PROTOCOL
HTTP/1.0
HTTP_ACCEPT_LANGUAGE
en
REMOTE_PORT
25123
SERVER_PORT
80
HTTP_CONNECTION
Keep-Alive
HTTP_USER_AGENT
Mozilla/4.05 [en] (X11; I; Linux 2.0.31 i686)
HTTP_ACCEPT_CHARSET
iso-8859-1,*,utf-8
HTTP_ACCEPT
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
REQUEST_URI
/mailman/subscribe/test/
PATH
/usr/openwin/bin/xview:/usr/openwin/bin:/usr/local/bin:/etc:/usr/etc:/usr/lib:/usr/ucb:/bin:/usr/bin:/usr/etc/yp:/usr/plum:.:/usr/asap/bin:/usr/sbmt
QUERY_STRING
SCRIPT_FILENAME
/usr/local/mailman/cgi-bin/subscribe
CONTENT_LENGTH
71
HTTP_HOST
www.eeel.nist.gov
REQUEST_METHOD
POST
SCRIPT_NAME
/mailman/subscribe
SERVER_ADMIN
kbrady@eeel.nist.gov
SERVER_SOFTWARE
Apache/1.2.5
PYTHONPATH
/usr/local/mailman/Mailman
PATH_INFO
/test/
HTTP_REFERER
http://www.eeel.nist.gov/mailman/listinfo/test
SERVER_NAME
www.eeel.nist.gov
DEBUG Traceback (innermost last): File "/usr/local/mailman/scripts/subscribe",
line 35, in ? Mailman.debug.print_environ() File
"/usr/local/mailman/Mailman/debug.py", line 37, in print_environ print "DEBUG",
debug NameError: debug Content-type: text/html
Test Subscription results
Confirmation from your email address is required, to prevent anyone from covertly
subscribing you. Instructions are being sent to you at mclay@nist.gov.
List run by mclay@nist.gov
HTML generated by Mailman v 1.0b4