Re: [Mailman-Users] subscribing by email

2009-02-16 Thread Alan Rubin
Mark,

I applied the patch, used the request address, and my message still gets
shunted.

Feb 17 14:59:32 2009 (1046) Uncaught runner exception: 'NoneType' object
has no attribute 'lower'
Feb 17 14:59:32 2009 (1046) Traceback (most recent call last):
  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
_oneloop
self._onefile(msg, msgdata)
  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 239,
in _dispose
res.process()
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 112,
in process
stop = self.do_command(cmd, args)
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
in do_command
return handler.process(self, args)
  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
74, in process
if (digest is None
AttributeError: 'NoneType' object has no attribute 'lower'

Feb 17 14:59:32 2009 (1046) SHUNTING:
1234848571.543715+462ea839ccdd63f659aab843129562980c886d3c


Diff on the cmd_subscribe.py new and old:

# diff Mailman/Commands/cmd_subscribe.py Mailman/Commands/cmd_sub>
74,75c74
< if (digest is None
< and password and password.lower() in ('digest',
'nodigest')):
---
> if digest is None and password.lower() in ('digest', 'nodigest'):


The web form that you pointed me at should work regardless of this error
with the cmd_subscribe.py utility?

Regards,

Alan Rubin   
Technician Unix
DCS Midrange Services
Phone: +61 (08) 8999 5111
Fax:  +61 (08) 8999 7493
e-Mail: alan.ru...@nt.gov.au

-Original Message-
From: Mark Sapiro [mailto:m...@msapiro.net] 
Sent: Tuesday, 17 February 2009 2:22 PM
To: Alan Rubin; Mailman User List
Subject: Re: [Mailman-Users] subscribing by email

Alan Rubin wrote:
>
>We have a customer who would like to use a form on a website to
>subscribe people to a mailing list.  In theory, the form would email
the
>details the list-join address of the list.


Unduly complicated. See the FAQ at .

But, since you ask, read on...


>I have tried following the
>instructions from the members' manual:
>
>subscribe [] [digest-nodigest] [address=]
>Subscribe to this mailing list. Your password must be given to
>unsubscribe or change your options, but
>if you omit the password, one will be generated for you. You may be
>periodically reminded of your
>password.
>The next argument may be either: 'nodigest' or 'digest' (no quotes!).
If
>you wish to subscribe an address
>other than the address you sent this request from, you may specify
>'address=' (no brackets
>around the email address, and no quotes!)
>
>I am testing this process with a test list using the following email:
>
>-Original Message-
>From: Alan Rubin 
>Sent: Tuesday, 17 February 2009 1:46 PM
>To: 'test-j...@lists.nt.gov.au'
>Subject: 
>
>subscribe nodigest address=adam.sm...@nt.gov.au


You can't send a generic subscribe command to to the -join or
-subscribe address. The subject/body of mail to those addresses are
ignored and they just request subscription of the From: address with
generated password and default digest/nodigest.

If you want to send a subscribe command as above in the subject or body
of the mail, you have to send it to the -request address.

But that isn't the reason for the following.


>but my attempts keep getting shunted (tried twice, first without a
>digest option):
>
>
>Feb 17 13:46:20 2009 (1046) Traceback (most recent call last):
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
>_oneloop
>self._onefile(msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
>_onefile
>keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 241,
>in _dispose
>res.do_command('join')
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
>in do_command
>return handler.process(self, args)
>  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
>74, in process
>if digest is None and password.lower() in ('digest', 'nodigest'):
>AttributeError: 'NoneType' object has no attribute 'lower'
>
>Feb 17 13:46:20 2009 (1046) SHUNTING:
>1234844179.158844+4d54d8a83f98a957ccff205953e10afbc0a9eecd
>
>
>Any help?  Am I missing a step?  This is somewhat urgent, if anyone is
>still awake in the West.


This was a bug in the 2.1.10 release. See

for a patch, but the irony here is if you had sent the mail to
test-requ...@lists.nt.gov.au, it would have worked and not triggered
the bug.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mai

Re: [Mailman-Users] subscribing by email

2009-02-16 Thread Mihamina Rakotomandimby

Alan Rubin wrote:


if digest is None and password.lower() in ('digest', 'nodigest'):
AttributeError: 'NoneType' object has no attribute 'lower'


In Python, this means mailman is trying to lowercase the password but 
there is nothing to lowercase.


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] subscribing by email

2009-02-16 Thread Mark Sapiro
Alan Rubin wrote:
>
>We have a customer who would like to use a form on a website to
>subscribe people to a mailing list.  In theory, the form would email the
>details the list-join address of the list.


Unduly complicated. See the FAQ at .

But, since you ask, read on...


>I have tried following the
>instructions from the members' manual:
>
>subscribe [] [digest-nodigest] [address=]
>Subscribe to this mailing list. Your password must be given to
>unsubscribe or change your options, but
>if you omit the password, one will be generated for you. You may be
>periodically reminded of your
>password.
>The next argument may be either: 'nodigest' or 'digest' (no quotes!). If
>you wish to subscribe an address
>other than the address you sent this request from, you may specify
>'address=' (no brackets
>around the email address, and no quotes!)
>
>I am testing this process with a test list using the following email:
>
>-Original Message-
>From: Alan Rubin 
>Sent: Tuesday, 17 February 2009 1:46 PM
>To: 'test-j...@lists.nt.gov.au'
>Subject: 
>
>subscribe nodigest address=adam.sm...@nt.gov.au


You can't send a generic subscribe command to to the -join or
-subscribe address. The subject/body of mail to those addresses are
ignored and they just request subscription of the From: address with
generated password and default digest/nodigest.

If you want to send a subscribe command as above in the subject or body
of the mail, you have to send it to the -request address.

But that isn't the reason for the following.


>but my attempts keep getting shunted (tried twice, first without a
>digest option):
>
>
>Feb 17 13:46:20 2009 (1046) Traceback (most recent call last):
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
>_oneloop
>self._onefile(msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
>_onefile
>keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 241,
>in _dispose
>res.do_command('join')
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
>in do_command
>return handler.process(self, args)
>  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
>74, in process
>if digest is None and password.lower() in ('digest', 'nodigest'):
>AttributeError: 'NoneType' object has no attribute 'lower'
>
>Feb 17 13:46:20 2009 (1046) SHUNTING:
>1234844179.158844+4d54d8a83f98a957ccff205953e10afbc0a9eecd
>
>
>Any help?  Am I missing a step?  This is somewhat urgent, if anyone is
>still awake in the West.


This was a bug in the 2.1.10 release. See

for a patch, but the irony here is if you had sent the mail to
test-requ...@lists.nt.gov.au, it would have worked and not triggered
the bug.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] subscribing by email

2009-02-16 Thread Alan Rubin
Hello,


We are running mailman 2.1.10 on Solaris 9 with postfix.  

We have a customer who would like to use a form on a website to
subscribe people to a mailing list.  In theory, the form would email the
details the list-join address of the list.  I have tried following the
instructions from the members' manual:

subscribe [] [digest-nodigest] [address=]
Subscribe to this mailing list. Your password must be given to
unsubscribe or change your options, but
if you omit the password, one will be generated for you. You may be
periodically reminded of your
password.
The next argument may be either: 'nodigest' or 'digest' (no quotes!). If
you wish to subscribe an address
other than the address you sent this request from, you may specify
'address=' (no brackets
around the email address, and no quotes!)

I am testing this process with a test list using the following email:

-Original Message-
From: Alan Rubin 
Sent: Tuesday, 17 February 2009 1:46 PM
To: 'test-j...@lists.nt.gov.au'
Subject: 

subscribe nodigest address=adam.sm...@nt.gov.au


but my attempts keep getting shunted (tried twice, first without a
digest option):


Feb 17 13:46:20 2009 (1046) Traceback (most recent call last):
  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
_oneloop
self._onefile(msg, msgdata)
  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 241,
in _dispose
res.do_command('join')
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
in do_command
return handler.process(self, args)
  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
74, in process
if digest is None and password.lower() in ('digest', 'nodigest'):
AttributeError: 'NoneType' object has no attribute 'lower'

Feb 17 13:46:20 2009 (1046) SHUNTING:
1234844179.158844+4d54d8a83f98a957ccff205953e10afbc0a9eecd


Any help?  Am I missing a step?  This is somewhat urgent, if anyone is
still awake in the West.


Regards,

Alan Rubin   
Technician Unix
DCS Midrange Services
Phone: +61 (08) 8999 5111
Fax:  +61 (08) 8999 7493
e-Mail: alan.ru...@nt.gov.au
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] How to config sendmail on FC5

2009-02-16 Thread Mark Sapiro
Daniel.Li wrote:

>I have tried method below, still can't solve the issue.My steps, see
>below, on FC5.
>


All your steps seem correct.


>Is there anything that I lost? I'm confused.


It would help if you told us in detail exactly what the issue is.

Also see the FAQ at .

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Pesky, Persistent error messages

2009-02-16 Thread Mark Sapiro
Adam Roberts wrote:
>
>I have recently installed and configured (or so it would appear) Mailman
>2.1.9 on top of Postfix 2.5 and Ubuntu 8.04.  I am up and running with my
>first mailing list but I'm getting an error in my log file that continues to
>baffle me.  Granted, it may be something simple, but I'm rather confused and
>am turning to the collective wisdom of the Interwebs for answers.
>
>A `tail` from my log file (/var/log/mail.log):
>
>Feb 15 21:18:52 PyHost01 postfix/qmgr[15994]: 7C4586E0B8: from=<
>mail...@mydomain.com>, size=628, nrcpt=1 (queue active)
>Feb 15 21:18:52 PyHost01 postfix/local[27805]: 7EC056DF47: to=<
>mail...@mydomain.com>, orig_to=, relay=local, delay=1130,
>delays=1130/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure.
>Command output: local: fatal: execvp /var/lib/mailman/mail: Permission
>denied )
> Feb 15 21:18:52 PyHost01 local[27831]: fatal: execvp /var/lib/mailman/mail:
>Permission denied
>Feb 15 21:18:52 PyHost01 postfix/qmgr[15994]: 756866E0E2: from=<
>mail...@mydomain.com>, size=628, nrcpt=1 (queue active)
>Feb 15 21:18:52 PyHost01 local[27832]: fatal: execvp /var/lib/mailman/mail:
>Permission denied
>Feb 15 21:18:52 PyHost01 postfix/local[27812]: 7C4586E0B8: to=<
>mail...@mydomain.com>, orig_to=, relay=local, delay=10131,
>delays=10131/0.02/0/0.04, dsn=4.3.0, status=deferred
>(temporary failure. Command output: local: fatal: execvp
>/var/lib/mailman/mail: Permission denied )
>Feb 15 21:20:01 PyHost01 postfix/pickup[24405]: 58EE46E0E9: uid=1002
>from= Feb 15 21:20:01 PyHost01 postfix/cleanup[27841]: 58EE46E0E9:
>message-id=<20090216022001.58ee46e...@mydomain.com>
>Feb 15 21:20:01 PyHost01 postfix/qmgr[15994]: 58EE46E0E9: from=<
>mail...@mydomain.com>, size=628, nrcpt=1 (queue active)
>Feb 15 21:20:01 PyHost01 local[27844]: fatal: execvp /var/lib/mailman/mail:
>Permission denied
>
>
>and from my error log (/var/log/mail.err):
>
>Feb 15 21:18:52 PyHost01 local[27831]: fatal: execvp /var/lib/mailman/mail:
>Permission denied
>Feb 15 21:18:52 PyHost01 local[27832]: fatal: execvp /var/lib/mailman/mail:
>Permission denied
>Feb 15 21:18:52 PyHost01 local[27833]: fatal: execvp/var/lib/mailman/mail:
>Permission denied
>Feb 15 21:20:01 PyHost01 local[27844]: fatal: execvp/var/lib/mailman/mail:
>Permission denied
>
>
>The above error messages repeat themselves with great frequency.  They don't
>appear to be having an affect on operations as I can send and receive mail
>and my mailing lists are working.


Where are your Mailman aliases? They may be in Mailman's data/
directory if you have Mailman-Postfix integration or they may have
been manually added in /etc/aliases.

Either way, what is the ownership of the corresponding aliases.db file,
and what is the ownership and permissions on /var/lib/mailman/,
/var/lib/mailman/mail and /var/lib/mailman/mail/mailman (they should
all be group mailman, SETGID and owner, group and world readable and
executable/searchable).

Also note that if you have Mailman aliases in both places (data/aliases
and /etc/aliases), this is wrong. If Mailman-Postfix integration is
putting aliases in data/aliases, there should be no Mailman aliases in
/etc/aliases.

Also, do these errors affect only mail to mail...@mydomain.com, or are
other lists affected too? If it's only mail...@mydomain.com, perhaps
you have aliases for the mailman list only in /etc/aliases and/or they
are wrong. E.g.

mailman:  "|/var/lib/mailman/mail post mailman"

etc. instead of

mailman:  "|/var/lib/mailman/mail/mailman post mailman"

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Pesky, Persistent error messages

2009-02-16 Thread Grant Taylor

On 02/15/09 20:37, Adam Roberts wrote:
The above error messages repeat themselves with great frequency. 
 They don't appear to be having an affect on operations as I can send 
and receive mail and my mailing lists are working.


Any help or suggestions are welcomed and most appreciated.


I can't say for sure (as I'm a Sendmail user) but I think that the user 
that Postfix is running as (if that is proper Postfix terminology) does 
not have access to or permission to execute your "/var/lib/mailman/mail" 
file.




Grant. . . .
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] How to config sendmail on FC5

2009-02-16 Thread Grant Taylor

On 02/15/09 07:00, Daniel.Li wrote:

Can u please simply give me some steps or tips to config sendmail.


Both Mark and Hank are correct in what is probably the most common 
method of hooking Mailman to Sendmail.  However there is another option.


I have created a new sub-domain for my mailing lists and have Sendmail 
passing all messages for it off to Mailman via a "mailer" which calls 
the mm-handler script.


Using the mailer method is (in my opinion) quite a bit easier (if you 
can dedicate a (sub)domain to Mailman) in such as you don't have to 
rebuild your aliases when you add / remove mailing lists.




Grant. . . .
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] How to config sendmail on FC5

2009-02-16 Thread Grant Taylor

On 02/15/09 16:36, Brad Knowles wrote:
I would suggest first using the resources provided by the people who 
develop your distribution, because they'll be able to give you 
specific instructions that may be unique to the configuration they 
provide.


After that, try the website at www.sendmail.org.  They have a lot of 
documentation and other resources that may be helpful to you.


I'll also add that the comp.mail.sendmail news group is a wonderful 
place to ask Sendmail specific (and sometimes related) questions.  Pick 
your preferred Usenet server and connect your preferred NNTP client.  Or 
if need be, drop me a line and I'll add you to my personal 
comp.mail.sendmail NNTP <-> SMTP gateway.




Grant. . . .
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] How to config sendmail on FC5

2009-02-16 Thread Hank van Cleef
The esteemed Daniel.Li has said:
> 
> Well, actually, I mean how to configure mailman to send mails by
> sendmail.
> And my sendmail works find.
> 
I run Mailman on Solaris 10 with sendmail 8.13.4, so will comment as a
Mailman-sendmail admin.

The setup is quite simple.  Make sure that your sendmail will work
properly with a simple MUA (such as elm or mutt) installed on the same
box as Mailman.  

The one major difference between a simple MUA and Mailman is the need
to set up the aliases to pipe incoming mail to Mailman.  These look
like:

mailman:  "|/usr/local/mailman/mail/mailman post mailman"
mailman-admin:"|/usr/local/mailman/mail/mailman admin mailman"
mailman-bounces:  "|/usr/local/mailman/mail/mailman bounces mailman"
mailman-confirm:  "|/usr/local/mailman/mail/mailman confirm mailman"
mailman-join: "|/usr/local/mailman/mail/mailman join mailman"
mailman-leave:"|/usr/local/mailman/mail/mailman leave mailman"
mailman-owner:"|/usr/local/mailman/mail/mailman owner mailman"
mailman-request:  "|/usr/local/mailman/mail/mailman request mailman"
mailman-subscribe:"|/usr/local/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/usr/local/mailman/mail/mailman unsubscribe mailman"

I believe Mark has already covered this.  You'll need a set of these
for each list you create.  

If you running your Mailman as a virtual host for another domain,
you'll need to add that domain name into local-host-names.

Also set up sendmail to masquerade sender headers properly.  The only
lines in my sendmail .mc files to handle Mailman for a virtual host
are:

MASQUERADE_AS(`mainname.net')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`limited_masquerade')dnl
LOCAL_DOMAIN(`mainname.net virtualname.com')dnl
MASQUERADE_DOMAIN(`mainname.net')dnl

If you want to use smrsh (recommended), follow the instructions in the
Mailman installation guide.  You'll have to enable smrsh in sendmail
with a line in main.mc.

FEATURE(smrsh, /usr/lib/smrsh)dnl

Except for the need for the alias pipes, Mailman looks like "just
another MUA" to sendmail.  I've included the above sendmail items for
your convenience, but all of them are covered in the sendmail
documentation and/or the O'Reilly "Sendmail" book, often called the
"Bat Book."  

I'll reiterate that, for the most part, if your sendmail installation
works properly with a simple user MUA installed on the same machine,
Mailman should work properly.  Use the simple MUA to debug any
sendmail problems.  

Hank
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9