Re: [Mailman-Users] How to export googlegroup mail to mailman

2008-12-12 Thread Mark Sapiro
haha wrote:

>On Sat, Dec 13, 2008 at 2:24 AM, haha  wrote:
>
>> Thanks !!
>>
>> I find a script in http://libgmail.sourceforge.net/, it cat download mail
>> of my gmail, but it alway appear error :
>>   """
>> 11e2d6c674f24487 5 crypto(9) choose another driver if we cannot open a
>> session on it
>> Traceback (most recent call last):
>>   File "archive.py", line 79, in 
>> for msg in thread:
>>   File "/home/minix/software/libgmail-0.1.11/libgmail.py", line 1368, in
>> __iter__
>> self._messages = self._getMessages(self)
>>   File "/home/minix/software/libgmail-0.1.11/libgmail.py", line 1406, in
>> _getMessages
>> result += [GmailMessage(thread, msg, isDraft = isDraft)]
>>   File "/home/minix/software/libgmail-0.1.11/libgmail.py", line 1445, in
>> __init__
>> self.author_fullname = msgData[MI_AUTHORNAME].decode('utf-8')
>>   File "/usr/local/lib/python2.5/encodings/utf_8.py", line 16, in decode
>> return codecs.utf_8_decode(input, errors, True)
>> UnicodeEncodeError: 'ascii' codec can't encode characters in position
>> 15-16: ordinal not in range(128)
>> """
>> I think this ASCII error!!


This error says there is something wrong with your Python installation
since it is complaining that the 'ascii' codec can't decode characters
outside the 0 to 127 range, yet decode has been invoked with a
character set of 'utf-8' so there should be no 'ascii' codec involved.

-- 
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] How to export googlegroup mail to mailman

2008-12-12 Thread haha
On Fri, Dec 12, 2008 at 9:27 PM, Mark Sapiro  wrote:

> haha wrote:
> >
> >I have a trouble:
> >   How to export googlegroup mail to mailman ???
>
>
> Do you mean archives?
>
> If so, Archives need to be in *nix mbox format to be imported to
> Mailman (using Mailman's bin/arch).


I've another mail-list and now I need to migrate from Google Group to the
new mail-list. I've found a script which can export the archives(
http://libgmail.sourceforge.net) but it failed. It seems that the script
can't handle Unicode every well.


>
> How to export Google Groups archives as a mbox is a Google Groups
> question.
>
> --
> 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] How to export googlegroup mail to mailman

2008-12-12 Thread haha
On Sat, Dec 13, 2008 at 2:24 AM, haha  wrote:

> Thanks !!
>
> I find a script in http://libgmail.sourceforge.net/, it cat download mail
> of my gmail, but it alway appear error :
>   """
> 11e2d6c674f24487 5 crypto(9) choose another driver if we cannot open a
> session on it
> Traceback (most recent call last):
>   File "archive.py", line 79, in 
> for msg in thread:
>   File "/home/minix/software/libgmail-0.1.11/libgmail.py", line 1368, in
> __iter__
> self._messages = self._getMessages(self)
>   File "/home/minix/software/libgmail-0.1.11/libgmail.py", line 1406, in
> _getMessages
> result += [GmailMessage(thread, msg, isDraft = isDraft)]
>   File "/home/minix/software/libgmail-0.1.11/libgmail.py", line 1445, in
> __init__
> self.author_fullname = msgData[MI_AUTHORNAME].decode('utf-8')
>   File "/usr/local/lib/python2.5/encodings/utf_8.py", line 16, in decode
> return codecs.utf_8_decode(input, errors, True)
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 15-16: ordinal not in range(128)
> """
> I think this ASCII error!!
>
> i only find the method! but it not to achieve my hope!!
>
>
> On Fri, Dec 12, 2008 at 9:10 PM, Grant Taylor 
> wrote:
>
>> On 12/12/2008 02:15 AM, haha wrote:
>>
>>> How to export googlegroup mail to mailman ???
>>>
>>
>> Are you wanting to export a true Google Group (Google's mailing lists) or
>> a Google Group interface to a newsgroup?
>>
>> If it is the true Google Group, I'd think you could subscribe your mailing
>> list to said group(s) and utilize your own mailing list as a gateway.
>>  Though I'm not sure how advisable doing this is.
>>
>>
>>
>> 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/mgtuiw%40gmail.com
>>
>> Security Policy: http://wiki.list.org/x/QIA9
>>
>
>
--
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] Enabling SSL

2008-12-12 Thread Mark Sapiro
Rich Winkel wrote:

>On Fri, Dec 12, 2008 at 01:24:44PM -0800, Mark Sapiro wrote:
>> Rich Winkel wrote:
>> >Does anyone have a recipe for redirecting http: connections to https?
>> 
>> If you're talking about for Mailman, see the FAQ at
>> .
>
>Yes, thanks, that's part of what I was looking for.  Unfortunately
>this page doesn't address the apache rewrite issue, but here's
>something that works for me with apache 2.2.  Edit httpd.conf and:
>
>
>RewriteEngine on
>Options FollowSymLinks ExecCGI
>AllowOverride None
>Order allow,deny
>Allow from 128.206.184.195
>RewriteCond %{SERVER_PORT} !^443$
>RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
>


I added a Mailman specific example to the FAQ

RewriteEngine on
RewriteCond %{HTTPS}   off [NC]
RewriteRule ^/mailman(/.*) https://%{HTTP_HOST}/mailman$1
[L,R=permanent]

-- 
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] Enabling SSL

2008-12-12 Thread Rich Winkel
On Fri, Dec 12, 2008 at 01:24:44PM -0800, Mark Sapiro wrote:
> Rich Winkel wrote:
> >Does anyone have a recipe for redirecting http: connections to https?
> 
> If you're talking about for Mailman, see the FAQ at
> .

Yes, thanks, that's part of what I was looking for.  Unfortunately
this page doesn't address the apache rewrite issue, but here's
something that works for me with apache 2.2.  Edit httpd.conf and:


RewriteEngine on
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from 128.206.184.195
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]


I found this at the bottom of:
http://www.whoopis.com/howtos/apache-rewrite.html

Rich

--
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] Impact of hostname change?

2008-12-12 Thread Mark Sapiro
Rich Winkel wrote:

>I currently have mailman set up on a test server but will be going
>to production, when the hostname will change, so all the list
>addresses will change too.  Will mailman handle this cleanly or do I 
>need to reconfigure something?  I'm using postfix.


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] automatically remove uncaught bounces

2008-12-12 Thread Mark Sapiro
Grant Taylor wrote:

>On 12/12/2008 03:00 AM, faisal anif wrote:
>> is there a way to let mailman unsubscribe the addresses of uncaught 
>> spams automatically from my lists instead of sending it to me?
>
>Slightly off topic, but still related.
>
>I'm trying to think (and not having much luck at the moment) what SMTP 
>envelope address Mailman sends messages from.  I believe the address is 
>different than the address for the list (or -request type) but I'm not 
>sure.  /If/ (and that's a kicker) the address *is* different, you might 
>be able to do something like Sendmail's "Protected Recipients" tweak. 
>In short P.R. only allows inbound messages to the ""protected recipient 
>if the sender is on a allowed list.  The idea being that if Mailman is 
>the only one that would be sending to the address that it's messages are 
>sent from, you could restrict what message could come in to it if they 
>were not sent by Mailman its self.


Mailman sends mail from listname-boun...@...

DSNs are returned by foreign (in some cases) MTAs to that address. Spam
is also sent to that address. Since a valid DSN can come from
anywhere, your suggestion doesn't seem viable.

Note however, that a valid DSN should have a null envelope sender and
possibly only delivering mail to listname-boun...@... if the envelope
sender is null might help, but the OP's issue was that some
unrecognized bounces were legitimate bounces, and since to be
unrecognized, they must be non-compliant in the first place, there's
no guarantee they would have a null envelope sender.

-- 
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] How to export googlegroup mail to mailman

2008-12-12 Thread Mark Sapiro
haha wrote:
>
>I have a trouble:
>   How to export googlegroup mail to mailman ???


Do you mean archives?

If so, Archives need to be in *nix mbox format to be imported to
Mailman (using Mailman's bin/arch).

How to export Google Groups archives as a mbox is a Google Groups
question.

-- 
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] Enabling SSL

2008-12-12 Thread Mark Sapiro
Rich Winkel wrote:

>Does anyone have a recipe for redirecting http: connections to https?


If you're talking about for Mailman, 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] automatically remove uncaught bounces

2008-12-12 Thread Grant Taylor

On 12/12/2008 03:00 AM, faisal anif wrote:
is there a way to let mailman unsubscribe the addresses of uncaught 
spams automatically from my lists instead of sending it to me?


Slightly off topic, but still related.

I'm trying to think (and not having much luck at the moment) what SMTP 
envelope address Mailman sends messages from.  I believe the address is 
different than the address for the list (or -request type) but I'm not 
sure.  /If/ (and that's a kicker) the address *is* different, you might 
be able to do something like Sendmail's "Protected Recipients" tweak. 
In short P.R. only allows inbound messages to the ""protected recipient 
if the sender is on a allowed list.  The idea being that if Mailman is 
the only one that would be sending to the address that it's messages are 
sent from, you could restrict what message could come in to it if they 
were not sent by Mailman its self.


Just a thought.



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 export googlegroup mail to mailman

2008-12-12 Thread Grant Taylor

On 12/12/2008 02:15 AM, haha wrote:

How to export googlegroup mail to mailman ???


Are you wanting to export a true Google Group (Google's mailing lists) 
or a Google Group interface to a newsgroup?


If it is the true Google Group, I'd think you could subscribe your 
mailing list to said group(s) and utilize your own mailing list as a 
gateway.  Though I'm not sure how advisable doing this is.




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] Enabling SSL

2008-12-12 Thread Grant Taylor

On 12/11/2008 05:18 PM, Rich Winkel wrote:

Does anyone have a recipe for redirecting http: connections to https?


This is out side the scope of Mailman as it its self is not a web server.

What web server are you using?  If you are using Apache (with 
mod_rewite), it is trivial to do the redirect(s).




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] Duplicate Subscription Confirmations

2008-12-12 Thread James Weingarten
Thank you, Mark. I think you're right. I don't see the problem often enough to 
merit implementing a fix. 

I do have one additional pair of questions, if you please. 

I had a problem with permissions that prevented the Mailman GUI from
successfully creating list. The GUI returned the following error:

Bug in Mailman version 2.1.9
We're sorry, we hit a bug!
Please inform the webmaster for this site of this
problem.  Printing of traceback and other system information has been
explicitly inhibited, but the webmaster can find this information in the
Mailman error logs. 


and the error log shows:

Dec 12 11:35:27 2008 (3669) command failed: /usr/sbin/postalias 
/etc/mailman/aliases (status: 1, Operation not permitted)
Dec 12 11:35:27 2008 admin(3669): 
admin(3669): [- Mailman Version: 2.1.9 -]
admin(3669): [- Traceback --]
admin(3669): Traceback (most recent call last):
admin(3669):   File "/usr/lib/mailman/scripts/driver", line 101, in run_main
admin(3669): main()
admin(3669):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in main
admin(3669): process_request(doc, cgidata)
admin(3669):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238, in 
process_request
admin(3669): sys.modules[modname].create(mlist, cgi=1)
admin(3669):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232, in 
create
admin(3669): _update_maps()
admin(3669):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53, in 
_update_maps
admin(3669): raise RuntimeError, msg % (acmd, status, errstr)
admin(3669): RuntimeError: command failed: /usr/sbin/postalias 
/etc/mailman/aliases (status: 1, Operation not permitted)
admin(3669): [- Python Information -]
admin(3669): sys.version =   2.4.3 (#1, May 24 2008, 13:47:28)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
admin(3669): sys.executable  =   /usr/bin/python
admin(3669): sys.prefix  =   /usr
admin(3669): sys.exec_prefix =   /usr
admin(3669): sys.path=   /usr
admin(3669): sys.platform=   linux2
admin(3669): [- Environment Variables -]
admin(3669):HTTP_COOKIE: 
campaignions+admin=28020069b64b414973280030666530653230363239653337353438316264303639656238333931376436376433323766386362
admin(3669):SERVER_SOFTWARE: Apache/2.2.3 (CentOS)
admin(3669):SCRIPT_NAME: /mailman/create
admin(3669):SERVER_SIGNATURE: Apache/2.2.3 (CentOS) Server at 
hostname.com Port 80
admin(3669):
admin(3669):REQUEST_METHOD: POST
admin(3669):HTTP_KEEP_ALIVE: 300
admin(3669):SERVER_PROTOCOL: HTTP/1.1
admin(3669):QUERY_STRING:
admin(3669):CONTENT_LENGTH: 153
admin(3669):HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
admin(3669):HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.2; 
en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
admin(3669):HTTP_CONNECTION: keep-alive
admin(3669):HTTP_REFERER: http://hostname.com/mailman/create
admin(3669):SERVER_NAME: hostname.com
admin(3669):REMOTE_ADDR: X.X.X.X
admin(3669):SERVER_PORT: 80
admin(3669):SERVER_ADDR: X.X.X.X
admin(3669):DOCUMENT_ROOT: /var/www/html
admin(3669):PYTHONPATH: /usr/lib/mailman
admin(3669):SCRIPT_FILENAME: /usr/lib/mailman/cgi-bin/create
admin(3669):SERVER_ADMIN: r...@localhost
admin(3669):HTTP_HOST: hostname.com
admin(3669):REQUEST_URI: /mailman/create
admin(3669):HTTP_ACCEPT: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
admin(3669):GATEWAY_INTERFACE: CGI/1.1
admin(3669):REMOTE_PORT: 3314
admin(3669):HTTP_ACCEPT_LANGUAGE: en-us,en;q=0.5
admin(3669):CONTENT_TYPE: application/x-www-form-urlencoded
admin(3669):HTTP_ACCEPT_ENCODING: gzip,deflate

The problem was alleged to be caused by thefact that the web server process 
owner "apache" was calling this process. Apparently, this user did not have 
permissions to execute the command. After fiddling with ownerships and 
permissions, I was never able to resolve the problem and had to resort to 
command line "newlist" to create all lists. Do you have any idea what is 
causing this problem? 

Also, (and this may be related), I am seeing the following error in the Mailman 
error log:

Dec 11 15:51:24 2008 (2107) SHUNTING: 
1229039483.4080291+18102d31f7e1d52f9d4ca593ddb48d23f9e7d00e
Dec 11 15:51:24 2008 (2104) Archive file access failure:
/var/lib/mailman/archives/private/listname.mbox/listname.mbox [Errno 
13] Permission denied: 
'/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
Dec 11 15:51:24 2008 (2104) Uncaught runner exception: [Errno 13] Permission 
denied: '/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
Dec 11 15:51:24 2008 (2104) Traceback (most recent call last):
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
self._onefile(msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File 

[Mailman-Users] Impact of hostname change?

2008-12-12 Thread Rich Winkel
I currently have mailman set up on a test server but will be going
to production, when the hostname will change, so all the list
addresses will change too.  Will mailman handle this cleanly or do I 
need to reconfigure something?  I'm using postfix.

This is a very very nice package btw, kudos to the developers!!!

Thanks!!
Rich


--
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] Enabling SSL

2008-12-12 Thread Rich Winkel
Does anyone have a recipe for redirecting http: connections to https?

Thanks,
Rich

--
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] How to export googlegroup mail to mailman

2008-12-12 Thread haha
Hi

I have a trouble:
   How to export googlegroup mail to mailman ???

thanks!!!
--
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] Moving mailman to a new directory (same server)

2008-12-12 Thread Adam McGreggor
On Thu, Dec 11, 2008 at 01:17:19PM -0500, Lynn, Michael (GWM-CAI) wrote:
> I ran out of disk on the partition where mailman (/var) resides - I've
> gotten more disk assigned and I'm planning to move mailman to a new file
> system (/apps).

I'd tend to be lazy, and would hope that symlinking would do the job.
YMMV, tho'.
--
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] Permission issues - was: Duplicate Subscription Confirmations

2008-12-12 Thread Mark Sapiro
James Weingarten wrote:
>
>I had a problem with permissions that prevented the Mailman GUI from
>successfully creating list. The GUI returned the following error:
>
>Bug in Mailman version 2.1.9
>We're sorry, we hit a bug!
>Please inform the webmaster for this site of this
>problem.  Printing of traceback and other system information has been
>explicitly inhibited, but the webmaster can find this information in the
>Mailman error logs. 
>
>
>and the error log shows:
>
>Dec 12 11:35:27 2008 (3669) command failed: /usr/sbin/postalias 
>/etc/mailman/aliases (status: 1, Operation not permitted)
>Dec 12 11:35:27 2008 admin(3669): 
>admin(3669): [- Mailman Version: 2.1.9 -]
>admin(3669): [- Traceback --]
>admin(3669): Traceback (most recent call last):
>admin(3669):   File "/usr/lib/mailman/scripts/driver", line 101, in run_main
>admin(3669): main()
>admin(3669):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in main
>admin(3669): process_request(doc, cgidata)
>admin(3669):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238, in 
>process_request
>admin(3669): sys.modules[modname].create(mlist, cgi=1)
>admin(3669):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232, in 
>create
>admin(3669): _update_maps()
>admin(3669):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53, in 
>_update_maps
>admin(3669): raise RuntimeError, msg % (acmd, status, errstr)
>admin(3669): RuntimeError: command failed: /usr/sbin/postalias 
>/etc/mailman/aliases (status: 1, Operation not permitted)

>
>The problem was alleged to be caused by thefact that the web server process 
>owner "apache" was calling this process. Apparently, this user did not have 
>permissions to execute the command. After fiddling with ownerships and 
>permissions, I was never able to resolve the problem and had to resort to 
>command line "newlist" to create all lists. Do you have any idea what is 
>causing this problem? 


Yes, it is permissions. Actually, in the above case, the list was
created and its aliases were added to /etc/mailman/aliases and only
the the execution of /usr/sbin/postalias to update the aliases.db file
failed.

I suspect since the aliases are in /etc/mailman, that this is a RedHat
package. I'm not 100% certain how to translate what I know into this
RedHat structure, but

1) All the files (wrappers) in /usr/lib/mailman/cgi-bin/ (in particular
for this, /usr/lib/mailman/cgi-bin/create) should be group 'mailman'
and SETGID. Typically they are like

-rwxr-sr-x 1 root mailman 15993 Jun 30 11:23 create

although the owner isn't important.

2) The files /etc/mailman/aliases and /etc/mailman/aliases.db need to
be group writable and group 'mailman'. E.g.

-rw-rw 1 rootmailman  7193 Dec  3 13:08 aliases
-rw-rw 1 mailman mailman 12288 Dec  3 13:08 aliases.db

If that doesn't resolve the problem, it may be a SELinux issue.


>Also, (and this may be related), I am seeing the following error in the 
>Mailman error log:
>
>Dec 11 15:51:24 2008 (2107) SHUNTING: 
>1229039483.4080291+18102d31f7e1d52f9d4ca593ddb48d23f9e7d00e
>Dec 11 15:51:24 2008 (2104) Archive file access failure:
>/var/lib/mailman/archives/private/listname.mbox/listname.mbox [Errno 
> 13] Permission denied: 
> '/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
>Dec 11 15:51:24 2008 (2104) Uncaught runner exception: [Errno 13] Permission 
>denied: '/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
>Dec 11 15:51:24 2008 (2104) Traceback (most recent call last):
>  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 112, in _oneloop
>self._onefile(msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 170, in _onefile
>keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Queue/ArchRunner.py", line 73, in _dispose
>mlist.ArchiveMail(msg)
>  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 200, in 
> ArchiveMail
>self.__archive_to_mbox(msg)
>  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 169, in 
> __archive_to_mbox
>mbox = self.__archive_file(afn)
>  File "/usr/lib/mailman/Mailman/Archiver/Archiver.py", line 157, in 
> __archive_file
>return Mailbox.Mailbox(open(afn, 'a+'))
>IOError: [Errno 13] Permission denied: 
>'/var/lib/mailman/archives/private/listname.mbox/listname.mbox'
>
>The "check_perms" command reports no problems. What should the owner be for 
>the archive directories and files? What should the permissions be? 


There are some known problems with check_perms and archives.

the directories /var/lib/mailman/, /var/lib/mailman/archives/ and all
subordinate directories except for /var/lib/mailman/archives/private/
itself and the /var/lib/mailman/archives/private/LISTNAME/database
directories should be

drwxrwsr-x 5 owner mailman

(owner doesn't matter)

/var/lib/mailman/archives/private/ should be either

drwxrws--x 5 owner mailman

or

Re: [Mailman-Users] automatically remove uncaught bounces

2008-12-12 Thread Mark Sapiro
faisal anif wrote:
> 
>I recieve hundreds of messages everyday as uncaught bounce notifications and 
>most of them are spam ADs of pills and stuff sent to my list.. and some of 
>them are actually uncaught bounces by mailman. I can't keep opening the 
>messages everyday to filter them, on the other hand I can't afford to ignore 
>the actual uncaught spams in order not to be blocked by their corresponding 
>mail servers!
> 
>is there a way to let mailman unsubscribe the addresses of uncaught spams 
>automatically from my lists instead of sending it to me?


If Mailman could recognize the DSN as such and extract the address from
it, it wouldn't be "uncaught"; it would be handled be bounce
processing.

If you collect the legitimate bounces that are unrecognized and send
them to me off list, I can try to update the recognizers to recognize
them. However, please don't do this unless you are running a recent
Mailman, at least 2.1.9 or preferably 2.1.11, since otherwise you will
probably be sending me ones that are already recognized in later
Mailman. Also, don't send me non-English language DSNs unless they
have an RFC3464 compliant message/delivery-status part.

Also note, that if you enable VERP in Mailman (or in your MTA),
legitimate bounces will never be unrecognized. Set

VERP_CONFIRMATIONS = Yes
VERP_PASSWORD_REMINDERS = Yes
VERP_PERSONALIZED_DELIVERIES = Yes
VERP_DELIVERY_INTERVAL = 1

in mm_cfg.py to enable it in Mailman.

Finally, it would help greatly if you would install some effective spam
filtering ahead of 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


[Mailman-Users] automatically remove uncaught bounces

2008-12-12 Thread faisal anif

Hi,
 
I recieve hundreds of messages everyday as uncaught bounce notifications and 
most of them are spam ADs of pills and stuff sent to my list.. and some of them 
are actually uncaught bounces by mailman. I can't keep opening the messages 
everyday to filter them, on the other hand I can't afford to ignore the actual 
uncaught spams in order not to be blocked by their corresponding mail servers!
 
is there a way to let mailman unsubscribe the addresses of uncaught spams 
automatically from my lists instead of sending it to me?
 
Thanks..
 
 
_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
--
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