Hi Barry, Thanks for your response on this.. I was able to get Sendmail to send me mail, but didn't receive anything with SMTPDirect
On Tue, 2002-01-15 at 18:14, Barry A. Warsaw wrote: > >>>>> "MG" == Mike Gifford <[EMAIL PROTECTED]> writes: > | That the RH7.2 rpm sets the default to: > | # DELIVERY_MODULE = 'Sendmail' > | DELIVERY_MODULE = 'SMTPDirect' > MG> So I just needed to switch this around and uncomment the > MG> Sendmail and I can now send messages without any difficulty.. > Except that you potentially open up security holes in your system. > 'Sendmail' is not secure because it uses the shell and the input > strings are not sanitized. Ok.. So I must have something else configured incorrectly.. This is the default RPM install: ##### # Delivery defaults ##### # Delivery module for the message pipeline. See # Mailman/Handlers/HandlerAPI.py for details. Unless overridden specifically # in that module, this handler is used for message delivery to the list, #and # to an individual user. This value must be a string naming a module in #the # Mailman.Handlers package. # # SECURITY WARNING: The Sendmail module is not secure! Please read the # comments in Mailman/Handlers/Sendmail.py for details. Use at your own # risk. # # DELIVERY_MODULE = 'Sendmail' DELIVERY_MODULE = 'SMTPDirect' # Ceiling on the number of recipients that can be specified in a single #SMTP # transaction. Set to 0 to submit the entire recipient list in one # transaction. Only used with the SMTPDirect DELIVERY_MODULE. SMTP_MAX_RCPTS = 500 # Maximum number of simulatenous subthreads that will be used for SMTP # delivery. After the recipients list is chunked according to #SMTP_MAX_RCPTS, # each chunk is handed off to the smptd by a separate such thread. If #your # Python interpreter was not built for threads, this feature is #disabled. You # can explicitly disable it in all cases by setting MAX_DELIVERY_THREADS #to # 0. This feature is only supported with the SMTPDirect #DELIVERY_MODULE. # # NOTE: This is an experimental feature and limited testing shows that #it may # in fact degrade performance, possibly due to Python's global #interpreter # lock. Use with caution. MAX_DELIVERY_THREADS = 0 # SMTP host and port, when DELIVERY_MODULE is 'SMTPDirect' SMTPHOST = 'localhost' SMTPPORT = 0 # default from smtplib # Command for direct command pipe delivery to sendmail compatible #program, # when DELIVERY_MODULE is 'Sendmail'. SENDMAIL_CMD = '/usr/lib/sendmail' # Allow for handling of MTA-specific features (i.e. aliases). Most MTAs #use # "sendmail" (including Sendmail, Postfix, and Exim). Qmail uses the #"qmail" # style. MTA_ALIASES_STYLE = 'sendmail' # Set these variables if you need to authenticate to your NNTP server #for # Usenet posting or reading. If no authentication is necessary, specify #None # for both variables. NNTP_USERNAME = None NNTP_PASSWORD = None # Set this if you have an NNTP server you prefer gatewayed lists to use. DEFAULT_NNTP_HOST = '' > MG> Jan 15 12:40:01 2002 gate_news(652): socket . error : (111, > MG> 'Connection refused') > This is a socket problem, and not specific to Mailman or Python. But why is it trying to access a news server? That's the best I can figure out here.. > MG> What is this supposed to do and how am I supposed to turn it > MG> off? > | Also, I still don't see why I'm getting this error: > | # ./check_perms > | Traceback (innermost last): > | File "./check_perms", line 50, in ? > | MAILMAN_GRPNAME = grp.getgrgid(MAILMAN_GID)[0] > | TypeError: illegal argument type for built-in operation > | # cat /etc/group > | <snip> > | mailman:*:501:mailman,james,mike,keb,rgoyal,apache > > Try this: > > % python > >>> import grp > >>> grp.getgrgid(501) > [what does this print?] [mike@learningpartnership mike]$ python Python 1.5.2 (#1, Jul 5 2001, 03:02:19) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import grp >>> grp.getgrgid(501)('mailman', '*', 501, ['mailman', 'apache']) >>> Hope this helps.. Mike -- Mike Gifford, OpenConcept Consulting, http://www.openconcept.ca Supporting progressive organizations in online campaigns and tools. Feature: Women's Learning Partnership http://learningpartnership.org Truth is that which confirms what we already believe. Northrop Frye ------------------------------------------------------ Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users