Re: [Mailman-Users] mailman python-2.4 using 96% cpu

2009-02-09 Thread Goodman, William
I apologize Mark...

This is the output of:

# ls -aR /opt/software/mailman/qfiles/
/opt/software/mailman/qfiles/:
.  ..  archive  bounces  commands  in  news  out  retry  shunt  virgin

/opt/software/mailman/qfiles/archive:
.  ..

/opt/software/mailman/qfiles/bounces:
.
..
1234190987.539598+fd6c983022fae575bb19abe36c1eb9c9e4d7a896.pck
1234190987.546752+fe6f1ad1df8e2079ccb23fc3cfeeff4fd5441082.pck
1234190987.7204871+3a2c234edd8b221eaca05854a5dfd5162c58f6da.pck
1234190987.960499+c00b2d2522ee0d1246583d41a3323958520da746.pck
1234190988.063931+b4b96d43770f9f37a42f57ad50055c8837b21874.pck
1234190988.3409979+4f2d8e7a9fc7810110611d42fd82f57c167dbc1c.pck
1234190988.366761+dab73d1f6982797f201613fd4b60237b4e01bab3.pck
1234190988.669873+d4e730813b15eb5a7a3c427183808d07fb0b7ca4.pck
1234190988.7999749+9e225d8f549d8f35a9a4255c572ac88f6bd5c845.pck
1234190988.961921+417ad154e340bd2947ed5df80c530ab697d7a17a.pck.tmp

/opt/software/mailman/qfiles/commands:
.  ..

/opt/software/mailman/qfiles/in:
.
..
1234190978.5258429+b87a7a844ad37ebb49d0724f57432f96a184db71.bak
1234190978.5667651+ed691242dad999eb51ccc8fab3343b6619856592.pck
1234190978.6760139+e4f48d142e1cb482489bebd1027e9b550915dc55.pck
1234190988.577697+6801e46df1e6c7432b7f9e458ef424bf28792659.pck

/opt/software/mailman/qfiles/news:
.  ..

/opt/software/mailman/qfiles/out:
.   1234190978.3703849+eed96b821c17c2186fc25541469e5ef0c0af6a47.pck
..  1234190978.738651+91bcf5af1bdaac8c799b378c3b1301b10a53252c.bak

/opt/software/mailman/qfiles/retry:
.  ..

/opt/software/mailman/qfiles/shunt:
.  ..

/opt/software/mailman/qfiles/virgin:
.  .. 

-Original Message-
From: Mark Sapiro [mailto:m...@msapiro.net] 
Sent: Friday, February 06, 2009 8:05 PM
To: Goodman, William; mailman-users@python.org
Subject: RE: [Mailman-Users] mailman python-2.4 using 96% cpu

Goodman, William wrote:

Cool Mike that helped a lot...


It's Mark ...


I was so frustrated I set it to:

QRUNNER_SLEEP_TIME = seconds(10)

That seem to calm it down a bit.

top - 18:38:02 up 56 min,  2 users,  load average: 1.25, 1.20, 1.83
Tasks: 109 total,   1 running, 108 sleeping,   0 stopped,   0 zombie
Cpu(s): 20.3%us,  0.3%sy,  0.0%ni, 79.2%id,  0.2%wa,  0.0%hi,  0.0%si, 
0.0%st
Mem:   3866604k total,   494800k used,  3371804k free,   175632k
buffers
Swap:  4194296k total,0k used,  4194296k free,   172108k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
19021 mailman   25   0  150m  12m 2752 S   41  0.3   1:59.92 python2.4
8 root  10  -5 000 S0  0.0   0:03.72 events/0
19797 root  16   0 12584 1068  800 S0  0.0   0:00.30 top
1 root  15   0 10324  692  580 S0  0.0   0:00.40 init

But I still see 99% spikes from time to time. Is there a BOUNCERUNNER 
and INCOMINGRUNNER parameter?


QRUNNER_SLEEP_TIME applies to all the runners.


I suppose it's possible you are just being bombarded with mail. Perhaps
there is some kind of mail loop.

What's in Mailman's vette log?

What do you see if you stop Mailman and while it is stopped do

ls -aR qfiles/

Do you see any entries? If so, and you do the ls again are there more
entries or the same ones? If there are entries, what's in them (use
bin/show_qfiles to list them)?

Also, as root do

strace -p xxx -o filename

where xxx is the pid of incoming runner. Let it run for 10 or 20 seconds
and then stop it with control-C and see what's in the output (filename).

-- 
Mark Sapiro m...@msapiro.netThe 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] Remove web ref from Help File

2009-02-09 Thread Jeff Grossman
Is it possible to remove the web reference from the e-mail help file?  I
have changed the help.txt template, but the one line about your options
after the results line is not in that file.  Is that in the source
somewhere?  Here is an example of the file:

 

The results of your email command are provided below. Attached is your

original message.

 

- Results:

Ignoring non-text/plain MIME parts

You can access your personal options via the following url:

http://xxx/mailman/options/huntads/xxx
http://lists.turners.com/mailman/options/huntads/jeffg%40turners.com 



help

Help for Huntads mailing list:

 

This is email command help for the e-mail list server.

The following describes commands you can send to get information about
and

control your subscription to the e-mail lists.  A command can be in the

subject line or in the body of the message.

 

List specific commands (subscribe, who, etc) should be sent to the

*-request address for the particular list, e.g. for the 'mailman'

list, use 'mailman-requ...@...'.

 

About the descriptions - words in s signify REQUIRED items and

words in [] denote OPTIONAL items.  Do not include the s or

[]s when you use the commands.

 

--
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] Bounce Management

2009-02-09 Thread Jeff Grossman
When a user reaches the threshold for bouncing, does the e-mail address
get removed from all lists on the server or just the list for which they
were bouncing?

 

Jeff

--
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] Content filtering

2009-02-09 Thread Rob
Is there any way of having mailman scan message content (not headers)  
and holding a message for review if there is a match in the body of  
the message? We have multiple lists, some of which are specifically  
set up to discuss a particular subject, and users frequently post to  
the wrong list, leading to much confusion and occasional flame-wars. I  
would love to be able to hold those messages and contact the authors  
directly or resend it to the correct list.


Thanks,

-Rob


--
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] mailman python-2.4 using 96% cpu

2009-02-09 Thread Mark Sapiro
Goodman, William wrote:

I apologize Mark...


Thanks. No problem.


This is the output of:

# ls -aR /opt/software/mailman/qfiles/
/opt/software/mailman/qfiles/:
.  ..  archive  bounces  commands  in  news  out  retry  shunt  virgin

/opt/software/mailman/qfiles/archive:
.  ..

/opt/software/mailman/qfiles/bounces:
.
..
1234190987.539598+fd6c983022fae575bb19abe36c1eb9c9e4d7a896.pck
1234190987.546752+fe6f1ad1df8e2079ccb23fc3cfeeff4fd5441082.pck
1234190987.7204871+3a2c234edd8b221eaca05854a5dfd5162c58f6da.pck
1234190987.960499+c00b2d2522ee0d1246583d41a3323958520da746.pck
1234190988.063931+b4b96d43770f9f37a42f57ad50055c8837b21874.pck
1234190988.3409979+4f2d8e7a9fc7810110611d42fd82f57c167dbc1c.pck
1234190988.366761+dab73d1f6982797f201613fd4b60237b4e01bab3.pck
1234190988.669873+d4e730813b15eb5a7a3c427183808d07fb0b7ca4.pck
1234190988.7999749+9e225d8f549d8f35a9a4255c572ac88f6bd5c845.pck
1234190988.961921+417ad154e340bd2947ed5df80c530ab697d7a17a.pck.tmp


You are in the process of queueing one bounce, and 9 other bounces have
arrived in the last 1.4 seconds.


/opt/software/mailman/qfiles/commands:
.  ..

/opt/software/mailman/qfiles/in:
.
..
1234190978.5258429+b87a7a844ad37ebb49d0724f57432f96a184db71.bak
1234190978.5667651+ed691242dad999eb51ccc8fab3343b6619856592.pck
1234190978.6760139+e4f48d142e1cb482489bebd1027e9b550915dc55.pck
1234190988.577697+6801e46df1e6c7432b7f9e458ef424bf28792659.pck


You are processing one incoming message and 3 other messages have
arrived within 1 second of that one.


/opt/software/mailman/qfiles/news:
.  ..

/opt/software/mailman/qfiles/out:
.   1234190978.3703849+eed96b821c17c2186fc25541469e5ef0c0af6a47.pck
..  1234190978.738651+91bcf5af1bdaac8c799b378c3b1301b10a53252c.bak


You are processing one outgoing message and another is waiting which
from within a fraction of a second.


/opt/software/mailman/qfiles/retry:
.  ..

/opt/software/mailman/qfiles/shunt:
.  ..

/opt/software/mailman/qfiles/virgin:
.  .. 


It looks to me like you are being hit with massive amounts of spam to
the list's post and bounces address or you have some kind of mail loop
going on which is generating all this mail.

Your high CPU utilization is a result of Mailman doing real work to
handle all this mail.



Mark Sapiro wrote:

Goodman, William wrote:

I suppose it's possible you are just being bombarded with mail. Perhaps
there is some kind of mail loop.


See above?


What's in Mailman's vette log?


??


What do you see if you stop Mailman and while it is stopped do


Stop Mailman. (bin/mailmanctl stop)


ls -aR qfiles/

Do you see any entries? If so, and you do the ls again are there more
entries or the same ones? If there are entries, what's in them (use
bin/show_qfiles to list them)?


Look at the queue entries with bin/show_qfiles. What kinds of messages
do they contain?


Also, as root do

strace -p xxx -o filename

where xxx is the pid of incoming runner. Let it run for 10 or 20 seconds
and then stop it with control-C and see what's in the output (filename).


It's not necessary to do the above since I think I know that there is
not actually a problem with Mailman's relinquishing when it doesn't
have anything to do. The problem is it always has something to do.

-- 
Mark Sapiro m...@msapiro.netThe 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] Bounce Management

2009-02-09 Thread Fil
 When a user reaches the threshold for bouncing, does the e-mail address
 get removed from all lists on the server or just the list for which they
 were bouncing?

It is on a list-per-list basis. Hopefully MM3 will be able to offer a
choice with its database backend, but with the file-based MM2 global
removal would certainly be clumsy to implement

-- Fil
--
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] Bounce Management

2009-02-09 Thread Barry Warsaw

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Feb 9, 2009, at 12:10 PM, Fil wrote:

When a user reaches the threshold for bouncing, does the e-mail  
address
get removed from all lists on the server or just the list for which  
they

were bouncing?


It is on a list-per-list basis. Hopefully MM3 will be able to offer a
choice with its database backend, but with the file-based MM2 global
removal would certainly be clumsy to implement


Yes, definitely MM3 will have global disables.

Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkmQZdAACgkQ2YZpQepbvXHrfwCePVPiCwZ8uAYwN+KE7xOxGA1d
N1MAn2OdjAKol08GQefjsVLXexv8QWOk
=R+os
-END PGP SIGNATURE-
--
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] Remove web ref from Help File

2009-02-09 Thread Mark Sapiro
Jeff Grossman wrote:

Is it possible to remove the web reference from the e-mail help file?  I
have changed the help.txt template, but the one line about your options
after the results line is not in that file.  Is that in the source
somewhere?  Here is an example of the file:


If the sender of the 'help' command is a list member, reference to the
member's options page is added by Mailman/Commands/cmd_help.py via the
following code:

for sender in  msg.get_senders():
if mlist.isMember(sender):
memberurl = mlist.GetOptionsURL(sender, absolute=1)
urlhelp = _(
'You can access your personal options via the following
url:')
res.results.append(urlhelp)
res.results.append(memberurl)
# Get a blank line in the output.
res.results.append('')
break


You could remove that code, comment it out or replace

if mlist.isMember(sender):

with

if False:

-- 
Mark Sapiro m...@msapiro.netThe 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] Content filtering

2009-02-09 Thread Mark Sapiro
Rob wrote:

Is there any way of having mailman scan message content (not headers)  
and holding a message for review if there is a match in the body of  
the message? We have multiple lists, some of which are specifically  
set up to discuss a particular subject, and users frequently post to  
the wrong list, leading to much confusion and occasional flame-wars. I  
would love to be able to hold those messages and contact the authors  
directly or resend it to the correct list.


There is no configuration facility in Mailman to do this. You would
have to implement a custom handler or equivalent to do this. See the
FAQ at http://wiki.list.org/x/l4A9 for information on implementing
custom handlers.

A proper implementation would be complex since you would probably want
to implement a new list attribute to specify regexps or the like to
match against the body to hold the message.

-- 
Mark Sapiro m...@msapiro.netThe 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] Auto-response for moderated new subscribes?

2009-02-09 Thread Cyndi Norwitz

I looked in the FAQ but could not find anything.

One of the lists I run is advertised to the public but subscriptions  
are moderated (need approval).  The other moderator and I would like  
a way to send out a form letter automatically to people when their  
subscription is pending that lists the basic info we want from them  
and where to send it.


I looked through the list admin commands.  The General page has a  
place for an auto-reply to new subscribers (appended to the regular  
welcome) but nothing for those who are pending.  Then there is the  
Auto-Reply page which has places for auto-responses to anyone mailing  
to -owner or -request.


Using a less busy list with moderated subscriptions, I edited those 2  
sections to send an auto-response (different wording so I could tell  
them apart), saved the page, then I subscribed myself at a previous  
unused address.  I got the moderator request immediately at my  
regular address but have not received an auto-response at the new  
address.  It's been over half an hour.


Am I missing something or does this feature not exist?

I use Mailman through an ISP that does not give root access.  They  
make a few changes to the code, mostly minor.  We use version 2.1.11.


Thanks,
Cyndi

--
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] Auto-response for moderated new subscribes?

2009-02-09 Thread Mark Sapiro
Cyndi Norwitz wrote:

I looked through the list admin commands.  The General page has a  
place for an auto-reply to new subscribers (appended to the regular  
welcome) but nothing for those who are pending.  Then there is the  
Auto-Reply page which has places for auto-responses to anyone mailing  
to -owner or -request.

Using a less busy list with moderated subscriptions, I edited those 2  
sections to send an auto-response (different wording so I could tell  
them apart), saved the page, then I subscribed myself at a previous  
unused address.  I got the moderator request immediately at my  
regular address but have not received an auto-response at the new  
address.  It's been over half an hour.

Am I missing something or does this feature not exist?


How did you request subscription? If you requested via the web, the
autoresponder doesn't apply. Also, you will get at most 1 autoresponse
from -request within autoresponse_graceperiod, so if you got one to
this address while testing, you won't get another until the original
graceperiod expires or you set autoresponse_graceperiod to 0.

In short, you can set autorespond_requests to respond once per
graceperiod to the sender of a messsage to the -request (or -subscribe
or -join) address (which may or may not be a subscribe request), but
you can't set a message to be sent to anyone requesting a subscription.

-- 
Mark Sapiro m...@msapiro.netThe 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] Auto-response for moderated new subscribes?

2009-02-09 Thread Cyndi Norwitz


On Feb 9, 2009, at 1:03 PM, Mark Sapiro wrote:


Cyndi Norwitz wrote:

I looked through the list admin commands.  The General page has a
place for an auto-reply to new subscribers (appended to the regular
welcome) but nothing for those who are pending.  Then there is the
Auto-Reply page which has places for auto-responses to anyone mailing
to -owner or -request.

Using a less busy list with moderated subscriptions, I edited those 2
sections to send an auto-response (different wording so I could tell
them apart), saved the page, then I subscribed myself at a previous
unused address.  I got the moderator request immediately at my
regular address but have not received an auto-response at the new
address.  It's been over half an hour.

Am I missing something or does this feature not exist?


How did you request subscription? If you requested via the web, the
autoresponder doesn't apply.


I used the web.  But so will 99.99% of our subscribers.


Also, you will get at most 1 autoresponse
from -request within autoresponse_graceperiod, so if you got one to
this address while testing, you won't get another until the original
graceperiod expires or you set autoresponse_graceperiod to 0.


I set it to 0 when I set it up.


In short, you can set autorespond_requests to respond once per
graceperiod to the sender of a messsage to the -request (or -subscribe
or -join) address (which may or may not be a subscribe request), but
you can't set a message to be sent to anyone requesting a  
subscription.


Bummer.  Thanks for the quick response.

Might this be added to a wish list?  I'm sure a lot of listowners  
with moderation set for subscriptions would love that feature.


Thanks,
Cyndi


--
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] Perplexing HTML formatting issue

2009-02-09 Thread Brian Carpenter
Hi List:

I have a client who is using us to host his mailman list but he has his main
web site hosted with another provider. He uses a php script to post html
formatted messages to the list from this web site. Last week he moved his
web site to a new hosting provider and now when his script sends messages to
the list, the html formatting is not coming through. He tested the script to
post to one of his e-mail addresses and the formatting came through fine but
when he posts to the list via this php script, the html formatting is lost.
He says he did not change any of his list settings and I looked at them and
they look fine. He has content filtering set to no. Here is what the post
looks like when you view it in an e-mail client:

 From: Client ad...@.com
 Date: February 9, 2009 2:36:39 PM EST
 To: -n...@list..com
 Subject: [-News] Weekly Newsletter (Feb 09, 2009)
 Reply-To: no-re...@.com

 Content-Type: text/html; charset = utf-8

 Content-Transfer-Encoding: 8bit



 body

 style

 body {

   font-family : serif;

   font-size: 10pt;

   margin: 10px;

   color: #00;

   BACKGROUND: #cedae7 URL(/images/blue_background_color.gif);

   background-repeat:repeat-x;

 }

 #page {

   width: 700px;

   background-color: #fff;

   border-style : solid;

   border-width : 1px 2px 3px 1px;

   border-color: #423322;

   padding:2px 2px 20px 2px;   

   margin-left: auto;

   margin-right: auto;

 }

I can't tell at this moment whether this is a MUA issue or a problem with
his list configuration or an issue with his php script. Any assistance would
be appreciated. Thanks.

Regards,
Brian
--
EMWD.com -  'Powered by Techies'
Blog.emwd.com - Curious comments from a web hosting techie



--
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] Subscription requests with no -subscribe alias

2009-02-09 Thread Bernie Cosell
I've removed the -subscribe alias for one of my lists.  So there's just 
no way to get a message to mailman with 'subscribe LIST' on the command 
line.  But nonetheless, I just got a message from mailman:

Your authorization is required for a mailing list subscription
request approval:  ...

How does that happen?  Is there some way to make a subscription request 
happen that doesn't involve using a -subscribe alias?  [obviously yes, 
but I don't know what it is..:o)]

  /Bernie\

-- 
Bernie Cosell Fantasy Farm Fibers
mailto:ber...@fantasyfarm.com Pearisburg, VA
--  Too many people, too few sheep  --   



--
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] Perplexing HTML formatting issue

2009-02-09 Thread Mark Sapiro
Brian Carpenter wrote:

I have a client who is using us to host his mailman list but he has his main
web site hosted with another provider. He uses a php script to post html
formatted messages to the list from this web site. Last week he moved his
web site to a new hosting provider and now when his script sends messages to
the list, the html formatting is not coming through. He tested the script to
post to one of his e-mail addresses and the formatting came through fine but
when he posts to the list via this php script, the html formatting is lost.
He says he did not change any of his list settings and I looked at them and
they look fine. He has content filtering set to no. Here is what the post
looks like when you view it in an e-mail client:

 From: Client ad...@.com
 Date: February 9, 2009 2:36:39 PM EST
 To: -n...@list..com
 Subject: [-News] Weekly Newsletter (Feb 09, 2009)
 Reply-To: no-re...@.com

 Content-Type: text/html; charset = utf-8

 Content-Transfer-Encoding: 8bit


He's using the php mail() function to create the mail, and he's adding
the Reply-To:, Content-Type: and Content-Transfer-Encoding: headers as
additional_headers, and he believes the documentation which says that
each header should be terminated with \r\n. This is causing blank
lines to be inserted because both \r and \n are taken as line
terminators. Thus, in the above, Reply-To: is taken as the last header
and Content-Type: and Content-Transfer-Encoding: become part of the
message.

See the note under additional_headers at
http://us3.php.net/manual/en/function.mail.php which says:

Note: If messages are not received, try using a LF (\n) only. Some poor
quality Unix mail transfer agents replace LF by CRLF automatically
(which leads to doubling CR if CRLF is used). This should be a last
resort, as it does not comply with ยป RFC 2822.

Aside from the fact that what this note says is totally bogus, at least
in so far as RFC 2822 compliance is concerned, it gives the solution.
Note that it is the php implemantation that is poor quality, not the
MTA. The MTA is doing it's job in converting local OS line endings
into CRLF for transmission over the wire as the RFCs say it should.

I'm convinced this is the problem, and the fix is to use only \n as a
line terminator for additional_headers, but if for some reason this
isn't it, please provide a raw message as sent by php.

Note also, that the pear Mail_Mime package is a much more robust way of
creating MIME messages.

-- 
Mark Sapiro m...@msapiro.netThe 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] Subscription requests with no -subscribe alias

2009-02-09 Thread Mark Sapiro
Bernie Cosell wrote:

I've removed the -subscribe alias for one of my lists.  So there's just 
no way to get a message to mailman with 'subscribe LIST' on the command 
line.  But nonetheless, I just got a message from mailman:

Your authorization is required for a mailing list subscription
request approval:  ...

How does that happen?  Is there some way to make a subscription request 
happen that doesn't involve using a -subscribe alias?  [obviously yes, 
but I don't know what it is..:o)]


Four ways:

1) send a subscribe command to the LIST-request address

2) send an email to the LIST-join address

3) fill out and submit the subscribe form on the listinfo page.

4) send the appropriate data from as would be posted by the web
subscribe form as indicated in the FAQ at
http://wiki.list.org/x/hIA9.

You may have blocked one or two of these, but have you blocked all four?

Note that unless you have VERP_CONFIRMATIONS = Yes in mm_cfg.py,
disabling the LIST-request address will severely limit your ability to
confirm things by email.

-- 
Mark Sapiro m...@msapiro.netThe 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] Tracing a disappearing 'post'

2009-02-09 Thread Bernie Cosell
A user on one of the lists here complained that her posts weren't getting 
through.  I looked at the sendmail log and I see her post making it to 
the | ...mailman  post LIST, but then the message disappeared.  I've 
looked and it is, indeed, not in the list archives.

I do get bounces and approvals [as both list admin and list moderator] 
and I've not gotten anything about this user's submissions, but still 
they appear to vanish.  The list is unmoderated [Action to take for 
postings from non-members.. is set to Accept].  I have one filter set to 
'hold', and I *have* gotten submissions that got caught by that filter, 
so I know it is working.

What places am I missing that could get a message just to vanish?  [and 
how can I try to make that not happen, or at least log what's happening 
or email me or something]?

Thanks!  /bernie\

-- 
Bernie Cosell Fantasy Farm Fibers
mailto:ber...@fantasyfarm.com Pearisburg, VA
--  Too many people, too few sheep  --   



--
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] Perplexing HTML formatting issue

2009-02-09 Thread Brian Carpenter
 I'm convinced this is the problem, and the fix is to use only \n as a
 line terminator for additional_headers, but if for some reason this
 isn't it, please provide a raw message as sent by php.
 
 Note also, that the pear Mail_Mime package is a much more robust way of
 creating MIME messages.
 
 --
 Mark Sapiro m...@msapiro.netThe highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan

Your awesome Mark. I will pass this information on to the client and I will
post the raw message output if it comes to that. Thanks!


Regards,
Brian
--
EMWD.com -  'Powered by Techies'
Blog.emwd.com - Curious comments from a web hosting techie

--
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] Tracing a disappearing 'post'

2009-02-09 Thread Mark Sapiro
Bernie Cosell wrote:

A user on one of the lists here complained that her posts weren't getting 
through.  I looked at the sendmail log and I see her post making it to 
the | ...mailman  post LIST, but then the message disappeared.  I've 
looked and it is, indeed, not in the list archives.

I do get bounces and approvals [as both list admin and list moderator] 
and I've not gotten anything about this user's submissions, but still 
they appear to vanish.  The list is unmoderated [Action to take for 
postings from non-members.. is set to Accept].  I have one filter set to 
'hold', and I *have* gotten submissions that got caught by that filter, 
so I know it is working.

What places am I missing that could get a message just to vanish?  [and 
how can I try to make that not happen, or at least log what's happening 
or email me or something]?


If the message was discarded by Mailman, that fact should be logged in
Mailman's vette log.

If it caused some processing exception and was shunted, that fact and a
traceback from the error should be logged in Mailman's error log.

The first step is to check those logs.

Note that given what you've said about the list configuration, I think
the most likely thing is Content filtering is on, text/html is
filtered (not in pass_mime_types) and filter_action is discard so her
text/html post is filtered to empty and discarded.

-- 
Mark Sapiro m...@msapiro.netThe 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] Two lists: same name, different domain -- the postfix way

2009-02-09 Thread Karl O. Pinc

Hello,

I've been wanting 2 different mailing lists with the same
name, each on a different domain.  This configuration
is not supported in the stock mailman (pre 3.0), but it occurs to
me that there is a workaround when the MTA is postfix.

It's a bit of a kludge, but I think it will work.
I'm interested in what the list thinks.

Note:  I have not tested this.  I've done a little
bit of testing on the outbound mail part, and it
seems to work.  It happens
that the mail architecture in use is forwarding list traffic
to the mailman server, so the inbound translations are
handled by the forwarder and I don't need the
inbound mail part.  I'm running Debian Etch.

First off, FWIW, in debian mailman comes integrated
out of the box with postfix so mailman automatically
maintains all it's aliases.  This is done via a transport map
and postfix-to-mailman.py; any mail sent to the
box's regular domain is run through mailman.

The idea is to use postifx's canonical mapping
to re-write the email addresses on all inbound
list traffic to secondary domains to add
a tag to the user part of the address.  And then
do the reverse to outbound list traffic.  This
is best illustrated by way of example.

Suppose you want 2 lists, f...@example.com and
f...@example.net.  The regular domain for the
box is example.com.  Make two lists:
foo and foo-examplenet.

In /etc/postfix/main.cf put the lines:

recipient_canonical_maps = pcre:/etc/postfix/recipient_canonical_domains
sender_canonical_maps = pcre:/etc/postfix/sender_canonical_domains

In /etc/postfix/recipient_canonical_domains put:

/^foo(-.+)?...@example.net$/ foo-examplenet$...@example.com

In /etc/postfix/sender_canonical_domains put:

/^(.*)-examplenet(-(.*))@example.com$/ ${1]$...@example.net

Mail that comes in as f...@example.net (or e.g.
foo-subscr...@example.net) is readdressed to foo-example...@example.com
(or foo-examplenet-subscr...@example.com).  It's then delivered to
mailman's foo-examplenet list just like normal.  Outbound mail sent
from the list comes from foo-example...@example.com but
all the addresses are rewritten so as to come from
f...@example.net.

I don't know whether rfc2369 headers are rewritten by
postfix's canonical mapping, I suppose it depends
on whether postfix is rfc2369 aware.  Anyway, that's
simple enough to take care of with header_checks, pcre patterns
like those above, and the REPLACE action.  I think this
would work on both inbound and outbound..., right?

The limitations are you can't have any email addresses
in @example.com that have '-examplenet' in the user
part, and you can't have any foo-.* user names in
@example.net (besides the mailing list.)

This seems a lot more straightforward to setup and
maintain than running multiple instances of mailman,
which is the only other solution I know of.  All
that's needed for maintenance is to add a line
for any new lists to recipient_canonical_domains
and sender_canonical_domains and otherwise everything
works as it should.  If the secondary domains
have no users, only mailing lists, you can construct
a pcre that rewrites all inbound/outbound mail to/from
the domains and there's no work involved when adding
a mailing list.

Regards,

Karl k...@meme.com
Free Software:  You don't pay back, you pay forward.
 -- Robert A. Heinlein
--
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