Re: [Mailman-Users] Using Mailman with Apache Tomcat

2007-05-04 Thread Mark Sapiro
D G Teed wrote:
>
>If you are running Tomcat and no apache, then I'd say
>don't bother.  Get the plain apache and install it,
>it will be up and running in minutes rather than days
>to figure out how to make tomcat run plain old HTML
>with a handful of CGIs.  Use the right tool for the job.
>Tomcat is designed to run Java web applications.


Probably good advice, but see below.


>On 5/4/07, Meenal Pant <[EMAIL PROTECTED]> wrote:
>>
>> I have a server running Liferay using apache tomcat. I access the portal
>> as:
>> https://abc.xyz.org/web/guest/home
>>
>> Can I still install mailman and use it with apache as described in the
>> Mailman
>> Documentation.(
>> http://www.gnu.org/software/mailman/mailman-install/front.html)
>> ?
>>
>> Basically I want to access mailman webserver as :
>> https://abc.xyz.org/mailman/listinfo
>>
>> Will this work or do I have to integrate mailman with Tomcat ? If yes,
>> then how to do so?


There is problem with the above. If you install Apache for Mailman, you
can't access Apache at https://abc.xyz.org/ because Tomcat is
listening on that https port (443). You will have to

- use a port other than 443 or http (not https) scheme for Mailman or

- use a different domain name/IP address for Mailman or

- if possible arrange for Tomcat to pass https://abc.xyz.org/mailman/
requests to Apache.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   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://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Using Mailman with Apache Tomcat

2007-05-04 Thread D G Teed
Hi,

If you are running Tomcat and no apache, then I'd say
don't bother.  Get the plain apache and install it,
it will be up and running in minutes rather than days
to figure out how to make tomcat run plain old HTML
with a handful of CGIs.  Use the right tool for the job.
Tomcat is designed to run Java web applications.

--Donald

On 5/4/07, Meenal Pant <[EMAIL PROTECTED]> wrote:
>
> I have a server running Liferay using apache tomcat. I access the portal
> as:
> https://abc.xyz.org/web/guest/home
>
> Can I still install mailman and use it with apache as described in the
> Mailman
> Documentation.(
> http://www.gnu.org/software/mailman/mailman-install/front.html)
> ?
>
> Basically I want to access mailman webserver as :
> https://abc.xyz.org/mailman/listinfo
>
> Will this work or do I have to integrate mailman with Tomcat ? If yes,
> then how to do so?
> Thanks
> Meenal
> --
> Mailman-Users mailing list
> Mailman-Users@python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe:
> http://mail.python.org/mailman/options/mailman-users/donald.teed%40gmail.com
>
> Security Policy:
> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
>
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Duplicate Emails - but only if first email has HTMLor stationary

2007-05-04 Thread Mark Sapiro
Lisa Phillips wrote:
>
>Thank you for responding.  I can provide the messages sent to the list, but
>not the one as sent to the list.  I am also going to see if the first one
>caused some bounces from some of the members (they usually always do), and
>I'll send that in a separate email.  Please let me know if you have any
>suggestions.


I see from the messages, that this is a cPanel Mailman (2.1.9-cp1). I
don't think this duplication is a cPanel issue per se (see below).
Also see
.

There was a somewhat different cPanel issue I worked on a while back
that caused duplication of images within an email as opposed to
duplicate messages, and that cPanel bug was triggered by the addition
of msg_footer to the message. See
 (requires
registration) for my (unanswered) report of this, but I don't think
that that is this issue.

Thank you for including the two messages. That is very helpful.

The MIME structure of the first message is

multipart/mixed
multipart/alternative
text/plain
text/html
image/gif
image/jpeg
text/plain

This structure is not really correct, but it may have been munged by
Mailman's content filtering in some way. Given what this actually is
with the gif and jpeg images referenced by the html via Content-ID:, I
think the actual message structure should be

multipart/mixed
multipart/alternative
text/plain
multipart/related
text/html
image/gif
image/jpeg
text/plain

I don't think this is related to the duplication however.

The second message appears to be a newly created message based on the
first message. While many of the headers of the first message are
copied verbatim in the second message, and the content of most of the
elemental parts is the same, several things stand out.

The Message-ID: is different. The From: header has had the real name
removed from the email address as you noted originally. The MIME
boundary is different. Parts are added. The MIME structure is
different. It is

multipart/mixed
text/plain
text/html
image/gif
image/jpeg
application/octet-stream
text/plain
text/plain

The application/octet-stream part appears to be the msg_footer from the
first message, then there is an added text/plain part with
filename="GWAVADAT.TXT" and contents

AdmID:71370CBC7758B07A9A4CF8C0F77AE198

followed by the new msg_footer.

The message contains an

X-Mailer: GWAVA Archive Mailer

header. The Received: headers indicate it came back to the list via

Received: from [199.227.27.194] (port=47532
 helo=FSBMAIL.FIRSTSOUTHERNBANK.COM)
 by enzo.elinuxservers.com with esmtp (Exim 4.63)
 (envelope-from <[EMAIL PROTECTED]>) id 1Hiwns-0008Aw-Ij
 for [EMAIL PROTECTED]; Tue, 01 May 2007 11:10:21 -0700
Received: from D9YTRC51 ([10.85.56.72])
 by FSBMAIL.FIRSTSOUTHERNBANK.COM with ESMTP;
 Tue, 01 May 2007 14:09:57 -0400

GWAVA is GroupWise anti-virus, anti-spam, archiving, etc.

Thus, I think what's happening is that one of the list members
addresses goes to GroupWise at FIRSTSOUTHERNBANK.COM and this
GroupWise is munging the message a bit and resending it back to the
list where it is resent to the members. Why this only seems to happen
with some list mail, I don't know.


>It seems like there should be some setting that would prevent users from
>receiving html formatted emails, which I think is what happening for the
>first email.  Let me know what you think, and thanks a million for your
>help.


There is no list member setting to prevent receiving HTML email. The
list has content filtering options that can be used to remove HTML and
images from all posts so no one receives any HTML.

For example, if you set filter_content On and put

multipart
message/rfc822
text/plain

in pass_mime_types, only text/plain parts will be passed through to the
list.


>Oh, one more question.. should I just reply to you on this, or the
>entire list?


Replying to the list or copying the list in a reply-all is normally the
way to reply.

The exceptions to this (this might have been one of them) are when the
reply contains emails or whatever with personal or domain information
that you don't want in a public archive and when the detailed
information in the reply (such as copies of emails) is very large.

In this case, your copy to the list was held I think because it
exceeded the maximum post size. It may yet be approved unless you
delete it first (instructions were in the 'held' notice you should
have received).

-- 
Mark Sapiro <[EMAIL PROTECTED]>   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://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http:/

Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread Brad Knowles
On 5/4/07, Mark Sapiro wrote:

>  This is really a question for Postfix resources. If Mailman says it
>  delivers to 577 recips, and you can only find 571 of them in Postfix's
>  logs, I think this has to be a Postfix issue.

Or a problem with the tool you're using to look through the log 
files, or a problem with the syslog program that postfix is sending 
the log data to, etc

-- 
Brad Knowles <[EMAIL PROTECTED]>, Consultant & Author
LinkedIn Profile: 
Slides from Invited Talks: 

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread D G Teed
On 5/4/07, Mark Sapiro <[EMAIL PROTECTED]> wrote:
>
>
> And it should, but it seems that it may not be in this case, BUT are
> you sure Postfix dropped these addresses. Maybe you just didn't see
> them in the logs because you were looking for the lower-cased address
> and what was logged was the mixed-case address.
>

I'm terribly sorry.  This isn't the first time I've forgotten to do my -i in
grep
when looking at mail logs.

I've checked the mail logs again against the -p version of the list_members
output and now I see there are no missing cases in either of our tests!
Great.

Mailman is great!  And so are you guys for helping me track down
my own blind spot.

Regards,

--Donald
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Restoring missing messages due to wrong permissionsin mbox archive file

2007-05-04 Thread Mark Sapiro
Ricardo Pereira wrote:
>
>I have corrected the permissions but now the messages sent during 
>that period weren't added to the list archives. How can I add the 
>missing messages to the archive?


The messages should have been shunted and should be in the qfiles/shunt
directory. If so, running bin/unshunt should remove them from
qfiles/shunt and add them to the archives.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   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://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Restoring missing messages due to wrong permissions in mbox archive file

2007-05-04 Thread Ricardo Pereira
Hi all,

I've moved a list from one server to another a while ago but left 
the list archive .mbox file with the wrong permissions. After a week I 
noticed several permission denied errors in Mailman logs.

I have corrected the permissions but now the messages sent during 
that period weren't added to the list archives. How can I add the 
missing messages to the archive?

Thanks in advance for any help.

Cheers,

Ricardo

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread Mark Sapiro
D G Teed wrote:
>
>I believe a pattern has emerged with the failure cases.
>
>I grep'ed for each of the 6 who failed in the output
>from dumpdb for the list.
>
>~mailman/bin/dumpdb /var/lib/mailman/lists/mylist/config.pck | grep
>[EMAIL PROTECTED]
>
>Each one of them had a mixed case letter in the username
>before the domain part of the email address.
>
>If my hunch is right, this would be a mailman bug.


Why do you think it is a bug? Mixed case is allowed and may be
significant in the local part of email addresses. If you subscribe an
address with a mixed case local part to a Mailman list, Mailman stores
two addresses - a lower-cased address which is used as the key to
identify the member throught Mailman, and a case-preserved address
which is used as the delivery address. It would be wrong for Mailman
to deliver to the lower-cased address.


>I've seen Postfix deliver email with mixed case
>in the user name no problem.


And it should, but it seems that it may not be in this case, BUT are
you sure Postfix dropped these addresses. Maybe you just didn't see
them in the logs because you were looking for the lower-cased address
and what was logged was the mixed-case address.

If you go back to your original bin/list_members and add a '-p' option
to it, you will get the list of case-preserved addresses that Mailman
actually delivered to and you might find them all in Postfix.


>Mailman does store
>the original version inside the config.pck file,
>as well as the mapped to lower case version.


Yes, as I note above.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   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://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread Mark Sapiro
D G Teed wrote:
>
>Oh dear, that could be difficult to "prove" to Postfix peoples.
>Is there a way to get more verbose logging of what mailman
>is delivering other than what the mail server reports?
>That way I could compare the two and see
>which is dropping the ball.


Yes, and no.

Go to

and see the part at the end about adding

self.__conn.set_debuglevel(1)

to the code in Mailman/Handlers/SMTPDirect.py. This addition (and
restarting Mailman) will log the entire SMTP transaction between
Mailman and Postfix.

BUT, in your case (RedHat with Mailman 2.1.5, you probably have Python
2.3.3 (or some 2.3.x) version. Prior to Python 2.4, this debug output
was written to stdout rather than stderr and that will cause other
problems, so if you are going to do this you need to first apply the
attached patch to your python Lib/smtplib.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--- Python/Lib/smtplib.py   2002-10-06 19:55:08.0 -0700
+++ Python24/Lib/smtplib.py 2004-07-27 16:37:52.0 -0700
@@ -47,6 +47,7 @@
 import base64
 import hmac
 from email.base64MIME import encode as encode_base64
+from sys import stderr
 
 __all__ = ["SMTPException","SMTPServerDisconnected","SMTPResponseException",
"SMTPSenderRefused","SMTPRecipientsRefused","SMTPDataError",
@@ -282,17 +283,17 @@
 except ValueError:
 raise socket.error, "nonnumeric port"
 if not port: port = SMTP_PORT
-if self.debuglevel > 0: print 'connect:', (host, port)
+if self.debuglevel > 0: print>>stderr, 'connect:', (host, port)
 msg = "getaddrinfo returns an empty list"
 self.sock = None
 for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
 af, socktype, proto, canonname, sa = res
 try:
 self.sock = socket.socket(af, socktype, proto)
-if self.debuglevel > 0: print 'connect:', (host, port)
+if self.debuglevel > 0: print>>stderr, 'connect:', (host, port)
 self.sock.connect(sa)
 except socket.error, msg:
-if self.debuglevel > 0: print 'connect fail:', (host, port)
+if self.debuglevel > 0: print>>stderr, 'connect fail:', (host, 
port)
 if self.sock:
 self.sock.close()
 self.sock = None
@@ -301,12 +302,12 @@
 if not self.sock:
 raise socket.error, msg
 (code, msg) = self.getreply()
-if self.debuglevel > 0: print "connect:", msg
+if self.debuglevel > 0: print>>stderr, "connect:", msg
 return (code, msg)
 
 def send(self, str):
 """Send `str' to the server."""
-if self.debuglevel > 0: print 'send:', `str`
+if self.debuglevel > 0: print>>stderr, 'send:', repr(str)
 if self.sock:
 try:
 self.sock.sendall(str)
@@ -345,7 +346,7 @@
 if line == '':
 self.close()
 raise SMTPServerDisconnected("Connection unexpectedly closed")
-if self.debuglevel > 0: print 'reply:', `line`
+if self.debuglevel > 0: print>>stderr, 'reply:', repr(line)
 resp.append(line[4:].strip())
 code=line[:3]
 # Check that the error code is syntactically correct.
@@ -361,7 +362,7 @@
 
 errmsg = "\n".join(resp)
 if self.debuglevel > 0:
-print 'reply: retcode (%s); Msg: %s' % (errcode,errmsg)
+print>>stderr, 'reply: retcode (%s); Msg: %s' % (errcode,errmsg)
 return errcode, errmsg
 
 def docmd(self, cmd, args=""):
@@ -474,7 +475,7 @@
 """
 self.putcmd("data")
 (code,repl)=self.getreply()
-if self.debuglevel >0 : print "data:", (code,repl)
+if self.debuglevel >0 : print>>stderr, "data:", (code,repl)
 if code != 354:
 raise SMTPDataError(code,repl)
 else:
@@ -484,7 +485,7 @@
 q = q + "." + CRLF
 self.send(q)
 (code,msg)=self.getreply()
-if self.debuglevel >0 : print "data:", (code,msg)
+if self.debuglevel >0 : print>>stderr, "data:", (code,msg)
 return (code,msg)
 
 def verify(self, address):
@@ -666,7 +667,7 @@
 # Hmmm? what's this? -ddm
 # self.esmtp_features['7bit']=""
 if self.has_extn('size'):
-esmtp_opts.append("size=" + `len(msg)`)
+esmtp_opts.append("size=%d" % len(msg))
 for option in mail_options:
 esmtp_opts.append(option)
 
@@ -727,7 +728,7 @@
 if not line:
 break
 msg = msg + line
-print "Message length is " + `len(msg)`
+print "Message length is %d" % len(msg)
 
 server = S

Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread D G Teed
On 5/4/07, Mark Sapiro <[EMAIL PROTECTED]> wrote:
>
> Instead of the above, do
>
> ~mailman/bin/list_members -r -n enabled mylistname | sort > /tmp/ott2
>
> This will list only non-digest members with delivery enabled.
>
> Or perhaps this is not an issue. Is the number of lines in of /tmp/ott2
> equal to the number of recips in Mailman's smtp log entry? If so, then
> Mailman is delivering to all of them.


Ya, this isn't an issue.  No one can control their membership
in the list.  I subscribe people from database report of email addresses
just before the message goes out.  I tried your suggestion
anyway and the count is still 577.

This is really a question for Postfix resources. If Mailman says it
> delivers to 577 recips, and you can only find 571 of them in Postfix's
> logs, I think this has to be a Postfix issue.


Oh dear, that could be difficult to "prove" to Postfix peoples.
Is there a way to get more verbose logging of what mailman
is delivering other than what the mail server reports?
That way I could compare the two and see
which is dropping the ball.

--Donald
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread D G Teed
Hi,

I believe a pattern has emerged with the failure cases.

I grep'ed for each of the 6 who failed in the output
from dumpdb for the list.

~mailman/bin/dumpdb /var/lib/mailman/lists/mylist/config.pck | grep
[EMAIL PROTECTED]

Each one of them had a mixed case letter in the username
before the domain part of the email address.

If my hunch is right, this would be a mailman bug.
I've seen Postfix deliver email with mixed case
in the user name no problem.  Mailman does store
the original version inside the config.pck file,
as well as the mapped to lower case version.

There are exactly 6 emails matching grep [A-Z]
on the list file I was given.

Regards,

--Donald
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] moderation bit off on explicitly selected users

2007-05-04 Thread Mark Sapiro
Tomas Macek wrote:

>we are using mailman 2.1.5 with Postfix. On our announce-only list we have 
>subscribed all of our employees. This list is fully moderated, so when someone 
>posts, the message waits for approving. That's fine. Now I need to have some 
>users (3 mail addresses) of the subscribes, that can post to the list without 
>moderation and waiting for approving from the moderator. Where can I specify 
>these adresses? I do not use the mailman's web interface.
>
>According to the posts I have found on google, this should be done by 
>modifying the moderation bit on each user, but I cannot find where it could be 
>done in the config file?


It can be done, but it is tricky. You have to call the list method to
do it.


>The config file is the one obtained from the ./config_list -o list.conf MyList.
>When I specify this in
>
> owner = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
> moderator = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL 
> PROTECTED]']
>
>it does not help, the message from [EMAIL PROTECTED] waits for approving.


You made these addresses both owner and moderator which is redundant
and only means that they will receive notices for the owner/moderator.
It has nothing to do with posting. Go to the FAQ wizard
 and see FAQ's 3.27, 3.45
and 3,60 for more on this.


>I set up this further settings:
>default_member_moderation = True
>member_moderation_action = 0
>generic_nonmember_action = 3
>
>I tried to setup the config like here 
>http://www.modwest.com/help/kb13-195.html, but I think this is the case I have 
>now - any message that came to the list is moderated, without exceptions. But 
>I want these exceptions - some people can post without moderation.


See FAQ 3.11 for our advice on this.


>Can anyone help me? If you want to know any other options I have in the 
>config, let me know please.


Why can't you use the web interface? If you can't use the web
interface, you must be approving posts by email which means you know
how to use the Approved: header. The best way to post to an announce
list is to use the Approved: header with the list password in the
post. If you do this, the post will not be held.

If you allow certain, unmoderated members to post, anyone can post by
spoofing their address. See FAQ 3.11 and 3.34 for more on this.

If you still want to unmoderate a specific user, and you can't use the
web, you can put the following 3 lines in input to config_list.

from Mailman import mm_cfg
mlist.setMemberOption('[EMAIL PROTECTED]', mm_cfg.Moderate, 0)
del mm_cfg

You can put additional mlist.setMemberOption() lines between the first
one and the "del mm_cfg" line.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   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://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread Mark Sapiro
D G Teed wrote:
>
>Another list, with 577 subscribers was sent out today.  I validated
>the email addresses, removed one before subscribing with
>an underscore in the domain name.  This time there are 6 addresses
>which do not appear in /var/log/maillog (did a log rotate
>just prior to the send to keep this easy to check).
>
>For the check, I'm using this perl script findsender.pl:
>
>http://archives.neohapsis.com/archives/postfix/2002-08/att-0287/02-findsender.pl
>
>I dump the subscribers reported by mailman to a temp file:
>
>~mailman/bin/list_members mylistname | sort > /tmp/ott2


Instead of the above, do

~mailman/bin/list_members -r -n enabled mylistname | sort > /tmp/ott2

This will list only non-digest members with delivery enabled.

Or perhaps this is not an issue. Is the number of lines in of /tmp/ott2
equal to the number of recips in Mailman's smtp log entry? If so, then
Mailman is delivering to all of them.


>I check to see if each can be found in any sort of mention in maillog:
>
>for person in `cat /tmp/ott2 `; do  ./findsender.pl $person /var/log/maillog
>| grep 'Found 0' | cut -d' ' -f5 ; done
>
>In case findsender.pl is flawed, I grep each of the ones it reports.


This is really a question for Postfix resources. If Mailman says it
delivers to 577 recips, and you can only find 571 of them in Postfix's
logs, I think this has to be a Postfix issue.


>I guess my next step will be to try 2.1.9.  Are there any suggestions on how
>to
>safely do the upgrade on top of Redhat's 2.1.5 Mailman?


I certainly don't want to discourage you from upgrading, but the only
change in the SMTPDirect.py delivery module since 2.1.5 had to do with
the address logged in the post log as the sender of the post. I doubt
an upgrade would make any difference.

That said, upgrading should be straightforward. Download to a new
directory, unpack and run configure. Here you need a few options, and
you may need some trial and error. You need to specify
--prefix=~mailman (For RedHat 2.1.5, I think that's
--prefix=/var/mailman). You also need the groups under which Postfix
and Apache invoke the wrappers. If you have Mailman generating Postfix
aliases automatically in ~mailman/data/aliases* with MTA='Postfix' in
mm_cfg.py, you would want --with-mail-gid=mailman, but you didn't
indicate that you had MTA='Postfix' in a prior post, so you may need
--with-mail-gid=nobody or possibly --with-mail-gid=postfix depending
on your postfix configuration. You also probably need
--with-cgi-gid=apache.

Then you just run 'make install' or if you want two steps, make
followed by make install and that should do it unless you start
getting group mismatch errors from the mail and/or cgi-bin wrappers in
which case, you rerun configure with the proper --with-*-gid options
(reported in the group mismatch error messages) and 'make install'.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   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://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Using Mailman with Apache Tomcat

2007-05-04 Thread Steve Burling
--On May 4, 2007 10:42:03 AM -0500 Meenal Pant <[EMAIL PROTECTED]> wrote:

> I have a server running Liferay using apache tomcat. I access the portal
> as: https://abc.xyz.org/web/guest/home
>
> Can I still install mailman and use it with apache as described in the
> Mailman
> Documentation.(http://www.gnu.org/software/mailman/mailman-install/front.
> html) ?
>
> Basically I want to access mailman webserver as :
> https://abc.xyz.org/mailman/listinfo
>
> Will this work or do I have to integrate mailman with Tomcat ? If yes,
> then how to do so?

To which I reply:

I don't think you can do this, at least not easily.  It's possible to have 
Apache hand off stuff to Tomcat, but I don't know of a way to do the 
opposite.

To do the former, we use Apache 2's mod_proxy_ajp to hand off certain 
chunks of the URI space to Tomcat via a ProxyPass declaration in the Apache 
config.  You also have to configure Tomcat so that it doesn't listen on 
port 80, so that Apache can listen there.  This takes a little fiddling 
around with to get working, but not much.  Here's a chunk of our 
Tomcat-related part of the Apache config:

-- cut here --
## Set up mod_proxy_ajp for tomcat integration
ProxyRequests Off


  Order deny,allow
  Allow from all



ProxyPass ajp://localhost:8009/xxx

-- cut here --

You can have multiple  blocks, but for your purposes, it 
might be sufficient to just pass off /web.

-- 
Steve Burling
University of Michigan, ICPSRVoice: +1 734 615.3779
330 Packard Street   FAX:   +1 734 647.8700
Ann Arbor, MI 48104-2910
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Using Mailman with Apache Tomcat

2007-05-04 Thread Meenal Pant
I have a server running Liferay using apache tomcat. I access the portal as:
https://abc.xyz.org/web/guest/home

Can I still install mailman and use it with apache as described in the
Mailman
Documentation.(http://www.gnu.org/software/mailman/mailman-install/front.html)
?

Basically I want to access mailman webserver as :
https://abc.xyz.org/mailman/listinfo

Will this work or do I have to integrate mailman with Tomcat ? If yes,
then how to do so? 
Thanks
Meenal
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Counting messages that went to postfix queue

2007-05-04 Thread D G Teed
Hello again,

Another list, with 577 subscribers was sent out today.  I validated
the email addresses, removed one before subscribing with
an underscore in the domain name.  This time there are 6 addresses
which do not appear in /var/log/maillog (did a log rotate
just prior to the send to keep this easy to check).

For the check, I'm using this perl script findsender.pl:

http://archives.neohapsis.com/archives/postfix/2002-08/att-0287/02-findsender.pl

I dump the subscribers reported by mailman to a temp file:

~mailman/bin/list_members mylistname | sort > /tmp/ott2

I check to see if each can be found in any sort of mention in maillog:

for person in `cat /tmp/ott2 `; do  ./findsender.pl $person /var/log/maillog
| grep 'Found 0' | cut -d' ' -f5 ; done

In case findsender.pl is flawed, I grep each of the ones it reports.

I guess my next step will be to try 2.1.9.  Are there any suggestions on how
to
safely do the upgrade on top of Redhat's 2.1.5 Mailman?  It is currently
a pilot with a few real lists, but I could always flip them back to
majordomo2 for awhile if needed.

Regards,

--Donald
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Attachments - archives and encoding problems

2007-05-04 Thread John Papapanos

--- Tokio Kikuchi <[EMAIL PROTECTED]> wrote:

> 
> Your site use Mailman-2.1.5 which is way too old. 
> Upgrade to the 
> current version (2.1.9) and try again.
> 
> -- 
> Tokio Kikuchi, [EMAIL PROTECTED]
> http://weather.is.kochi-u.ac.jp/
> 

ok that was it. Mailman 2.1.9 solves this problem.
My initial choice of mailman-2.1.5 was because it was
provided as a package from my linux dist (ubuntu
server).

After I built and configured mailman-2.1.9 from
scratch 
everything worked as expected. Also the URLs for the
attachments in the archives pages are not broken 
anymore.

Many thanks.




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] moderation bit off on explicitly selected users

2007-05-04 Thread Tomas Macek
Hi,
we are using mailman 2.1.5 with Postfix. On our announce-only list we have 
subscribed all of our employees. This list is fully moderated, so when someone 
posts, the message waits for approving. That's fine. Now I need to have some 
users (3 mail addresses) of the subscribes, that can post to the list without 
moderation and waiting for approving from the moderator. Where can I specify 
these adresses? I do not use the mailman's web interface.

According to the posts I have found on google, this should be done by modifying 
the moderation bit on each user, but I cannot find where it could be done in 
the config file? The config file is the one obtained from the ./config_list -o 
list.conf MyList.
When I specify this in

 owner = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
 moderator = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']

it does not help, the message from [EMAIL PROTECTED] waits for approving.

I set up this further settings:
default_member_moderation = True
member_moderation_action = 0
generic_nonmember_action = 3

I tried to setup the config like here 
http://www.modwest.com/help/kb13-195.html, but I think this is the case I have 
now - any message that came to the list is moderated, without exceptions. But I 
want these exceptions - some people can post without moderation.

Can anyone help me? If you want to know any other options I have in the config, 
let me know please.

Many thanks, Tomas

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
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://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp