Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Cedric Jeanneret
On Wed, 03 Mar 2010 10:04:31 -0800
Mark Sapiro m...@msapiro.net wrote:

 On 3/3/2010 9:20 AM, Cédric Jeanneret wrote:
  
  Maybe a python version? What is really strange is that it works inside
  the archiver I tried to NOT use email.message_from_file (so use
  directly StringIO on sys.stdin), and it worked fine. In fact, the
  error was that Message doesn't have tell() method...
 
 
 Which says you are passing a Message object, not a StringIO or file
 object. I considered at one point just passing sys.stdin directly, but
 that won't work because sys.stdin does not have seek() or tell() methods.
 
 
  Another error was really annoying : ALL worked. almost. I couldn't do
  my mlist.Save(), as there was an error for the lockfile.
  
  I did :
  mlist = MailList.MailList('toto', lock=False)
  # other code
  mlist.Save()
 
 
 Right. I overlooked the fact that you can't Save() an unlocked list.
 But, I don't think you need to. I don't think the archiver actually
 updates your list instance in it's processing, so you should be OK if
 you just remove the Save() from your code.
 
 
  - crashed. After poking into MailList code, I saw that it refreshes
  the lockfile. Commenting out this line made it work again more or
  less : message was in mbox, but wasn't in pipermail archives
 
 
 Don't do that. It won't work anyway because the locked list object in
 ArchRunner will be saved after you're done and will undo any changes you
 made to your list object. But, as I say, you shouldn't need to save your
 list object. It is only passed to the HyperArch.HyperArchive()
 constructor so the archiver knows where to find the archive. I don't
 think it is updated.
 
 
  Poking on the Net, I found this post
  http://www.mail-archive.com/mailman-users@python.org/msg47499.html you
  answered some months (well, years) ago. I tried this way :
  applying the patch, so that it uses mailman internal archiver, and it
  calls my indexer right after.
  That's not really clean, it's not really a portable way, but it works.
  The fact that I have to patch a file from mailman package annoy me a
  bit, but... I didn't have any success with the ways you showed me :(
  
  
  To be honnest, maybe I'll try to put a handler (like XapianIndexer.py)
  for this. As I saw how to debug my scripts (thank you for the tip), I
  guess it would be the best way, instead of patching a code (which will
  be overriden on the next update).
  
  Or maybe there's a variable in mm_config (or defaults) which tell
  mailman to call a script after archiving ? I didn't see such a thing,
  I guess that's the role a the GLOBAL_PIPELINE and its handlers
  chain...
 
 As I tried to point out in my initial reply
 http://mail.python.org/pipermail/mailman-users/2010-February/068900.html,
 that won't work.
 
 The pipeline includes ToArchive which only queues the message in the
 archive queue for ArchRunner. Then IncomingRunner continues processing
 the pipeline. When it gets to your handler, there's no guarantee that
 ArchRunner has yet archived the message so how do you index something
 that may not yet even be there.
 
 We were almost there with the external archiver method. Let's try to
 make that work.
 
 What do you have now in the external archiver code and in the
 PUBLIC_EXTERNAL_ARCHIVER and PRIVATE_EXTERNAL_ARCHIVER strings and what
 is the problem?
 

Hello again !

I think I found what's the problem is :
the script works now, but as I write my own archiver, it doesn't do the 
pipermail part (i.e. update mails in archive)... I thought that this code :

mlist = MailList.MailList(maillist, lock=False)
msg = email.message_from_file(sys.stdin, Message.Message)
f = StringIO(str(sys.stdin))
h = HyperArch.HyperArchive(mlist)
h.processUnixMailbox(f)
f.close()

did all, but after reading a bit of code, it doesn't exactly. It saves to .mbox 
file, right ?

I tried to find where it does the pipermail stuff, but it's a bit complicated 
[I'm not so at ease with Python].

Any clue ?

Thank you

-- 
Cédric Jeanneret |  System Administrator
021 619 10 32|  Camptocamp SA
cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL


signature.asc
Description: 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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Cedric Jeanneret
On Wed, 03 Mar 2010 10:04:31 -0800
Mark Sapiro m...@msapiro.net wrote:

 On 3/3/2010 9:20 AM, Cédric Jeanneret wrote:
  
  Maybe a python version? What is really strange is that it works inside
  the archiver I tried to NOT use email.message_from_file (so use
  directly StringIO on sys.stdin), and it worked fine. In fact, the
  error was that Message doesn't have tell() method...
 
 
 Which says you are passing a Message object, not a StringIO or file
 object. I considered at one point just passing sys.stdin directly, but
 that won't work because sys.stdin does not have seek() or tell() methods.
 
 
  Another error was really annoying : ALL worked. almost. I couldn't do
  my mlist.Save(), as there was an error for the lockfile.
  
  I did :
  mlist = MailList.MailList('toto', lock=False)
  # other code
  mlist.Save()
 
 
 Right. I overlooked the fact that you can't Save() an unlocked list.
 But, I don't think you need to. I don't think the archiver actually
 updates your list instance in it's processing, so you should be OK if
 you just remove the Save() from your code.
 
 
  - crashed. After poking into MailList code, I saw that it refreshes
  the lockfile. Commenting out this line made it work again more or
  less : message was in mbox, but wasn't in pipermail archives
 
 
 Don't do that. It won't work anyway because the locked list object in
 ArchRunner will be saved after you're done and will undo any changes you
 made to your list object. But, as I say, you shouldn't need to save your
 list object. It is only passed to the HyperArch.HyperArchive()
 constructor so the archiver knows where to find the archive. I don't
 think it is updated.
 
 
  Poking on the Net, I found this post
  http://www.mail-archive.com/mailman-users@python.org/msg47499.html you
  answered some months (well, years) ago. I tried this way :
  applying the patch, so that it uses mailman internal archiver, and it
  calls my indexer right after.
  That's not really clean, it's not really a portable way, but it works.
  The fact that I have to patch a file from mailman package annoy me a
  bit, but... I didn't have any success with the ways you showed me :(
  
  
  To be honnest, maybe I'll try to put a handler (like XapianIndexer.py)
  for this. As I saw how to debug my scripts (thank you for the tip), I
  guess it would be the best way, instead of patching a code (which will
  be overriden on the next update).
  
  Or maybe there's a variable in mm_config (or defaults) which tell
  mailman to call a script after archiving ? I didn't see such a thing,
  I guess that's the role a the GLOBAL_PIPELINE and its handlers
  chain...
 
 As I tried to point out in my initial reply
 http://mail.python.org/pipermail/mailman-users/2010-February/068900.html,
 that won't work.
 
 The pipeline includes ToArchive which only queues the message in the
 archive queue for ArchRunner. Then IncomingRunner continues processing
 the pipeline. When it gets to your handler, there's no guarantee that
 ArchRunner has yet archived the message so how do you index something
 that may not yet even be there.
 
 We were almost there with the external archiver method. Let's try to
 make that work.
 
 What do you have now in the external archiver code and in the
 PUBLIC_EXTERNAL_ARCHIVER and PRIVATE_EXTERNAL_ARCHIVER strings and what
 is the problem?
 

uho, found it !!
mailman/bin/arch toto

I guess that's all :))

-- 
Cédric Jeanneret |  System Administrator
021 619 10 32|  Camptocamp SA
cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL


signature.asc
Description: 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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Mark Sapiro
On 3/4/2010 4:23 AM, Cedric Jeanneret wrote:
 
 I think I found what's the problem is : the script works now, but as
 I write my own archiver, it doesn't do the pipermail part (i.e.
 update mails in archive)... I thought that this code :
 
 mlist = MailList.MailList(maillist, lock=False)
 msg = email.message_from_file(sys.stdin, Message.Message)
 f = StringIO(str(sys.stdin))
 h = HyperArch.HyperArchive(mlist) 
 h.processUnixMailbox(f)
 f.close()
 
 did all, but after reading a bit of code, it doesn't exactly. It
 saves to .mbox file, right ?


No. It doesn't save to the .mbox file. If you look at the ArchiveMail()
method in Mailman/Archivers/Archiver.py. it first saves to the .mbox by
doing

if mm_cfg.ARCHIVE_TO_MBOX in (1, 2):
self.__archive_to_mbox(msg)

Then it either calls the external archiver or executes essentially the
above to archive the mail in the pipermail archive.

What you are missing is

h.close()

and that's why it doesn't work.


 I tried to find where it does the pipermail stuff, but it's a bit
 complicated [I'm not so at ease with Python].


Yes, the archiver is very convoluted because classes are subclassed and
methods overridden all over. Don't feel bad. I've been looking at it for
years and still only barely understand it.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Mark Sapiro
On 3/4/2010 4:46 AM, Cedric Jeanneret wrote:
 
 uho, found it !!
 mailman/bin/arch toto
 
 I guess that's all :))


You may or may not be able to use bin/arch, but you can't use it in
conjunction with an external archiver because of list locking. If you
call bin/arch from your external archiver and wait for it to return, you
will have a deadlock, and if you don't wait, it won't run until after
your external archiver finishes.

I.e., an external archiver command like

'|/path/bin/arch $(listname)s;/path/myscript.py $(listname)s'

creates a deadlock, and one like

'|/path/bin/arch $(listname)s/path/myscript.py $(listname)s'

doesn't work because myscript.py has to complete before bin/arch can
obtain the list lock.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Cedric Jeanneret
On Thu, 04 Mar 2010 06:49:54 -0800
Mark Sapiro m...@msapiro.net wrote:

 On 3/4/2010 4:23 AM, Cedric Jeanneret wrote:
  
  I think I found what's the problem is : the script works now, but as
  I write my own archiver, it doesn't do the pipermail part (i.e.
  update mails in archive)... I thought that this code :
  
  mlist = MailList.MailList(maillist, lock=False)
  msg = email.message_from_file(sys.stdin, Message.Message)
  f = StringIO(str(sys.stdin))
  h = HyperArch.HyperArchive(mlist) 
  h.processUnixMailbox(f)
  f.close()
  
  did all, but after reading a bit of code, it doesn't exactly. It
  saves to .mbox file, right ?
 
 
 No. It doesn't save to the .mbox file. If you look at the ArchiveMail()
 method in Mailman/Archivers/Archiver.py. it first saves to the .mbox by
 doing
 
 if mm_cfg.ARCHIVE_TO_MBOX in (1, 2):
 self.__archive_to_mbox(msg)
 
 Then it either calls the external archiver or executes essentially the
 above to archive the mail in the pipermail archive.
 
 What you are missing is
 
 h.close()
 
 and that's why it doesn't work.
 
 
  I tried to find where it does the pipermail stuff, but it's a bit
  complicated [I'm not so at ease with Python].
 
 
 Yes, the archiver is very convoluted because classes are subclassed and
 methods overridden all over. Don't feel bad. I've been looking at it for
 years and still only barely understand it.
 

hmmm, I use the h.close() a bit after (I catche its latest ID so that I ca 
build the direct URL for my indexer). But for now, I guess I'm done.
I've opened a bug (didn't figure where I could put my stuff) on launchpad: 
https://bugs.launchpad.net/mailman/+bug/531942
It contains my scripts, and some informations on how to use them.

Indeed, arch script uses locks. I copied it, removed the lock stuff, and used 
this version. All work fine now.

I'm happy I could understand a bit (well... very little bit) how mailman works.

Thanks again !


-- 
Cédric Jeanneret |  System Administrator
021 619 10 32|  Camptocamp SA
cedric.jeanne...@camptocamp.com  |  PSE-A / EPFL


signature.asc
Description: 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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Indexing mail right after delivery

2010-03-04 Thread Mark Sapiro
On 3/4/2010 7:10 AM, Cedric Jeanneret wrote:
 
 hmmm, I use the h.close() a bit after (I catche its latest ID so that
 I ca build the direct URL for my indexer). But for now, I guess I'm
 done. I've opened a bug (didn't figure where I could put my stuff) on
 launchpad: https://bugs.launchpad.net/mailman/+bug/531942 It contains
 my scripts, and some informations on how to use them.


I've seen your bug in the tracker. It's too bad Launchpad calls
everything a bug, but that's the right place.


 Indeed, arch script uses locks. I copied it, removed the lock
 stuff, and used this version. All work fine now.


I will have some comments after I look at this more. I think there is
redundant stuff, but I'll comment further after I look in detail.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] List Limitations

2010-03-04 Thread Richard Berta
Hello,

Our Association currently uses your mailing list program (Mailman), and I'm not 
familiar with it's limitations ie how big of a mailing list we can have.

We're looking to start a new listserv with 3,000+ names, can the current system 
handle something of that size?  I could not locate this info on your website, 
so all apologies if it's up there...

I'd appreciate your help!

Thanks,

Richard Berta
Membership, Marketing  Communications Director
California Library Association
950 Glenn Drive, Suite 150
Folsom, CA 95630
916.233.3298 p
916.932.2209 f

Follow CLA on 
Facebookhttp://www.facebook.com/pages/Folsom-CA/California-Library-Association/87228833792
 and Twitterhttp://twitter.com/callibassoc!
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] List Limitations

2010-03-04 Thread Larry Stone

On Wed, 3 Mar 2010, Richard Berta wrote:


We're looking to start a new listserv


Listserv is not a synonym for mailing list. Rather, it is the trademarked 
name for a competing brand of mailing list management software. Please do 
not use listserv in connection with GNU Mailman.


with 3,000+ names, can the current 
system handle something of that size?


Mailman can easily handle a list of that size. If you are to have an 
issue, it will be with your computer's resources (memory, disk space, 
etc.) and/or Internet bandwidth.


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


[Mailman-Users] Problems regenerating archives from mbox files

2010-03-04 Thread Hank van Cleef
I'm trying to rebuild the Pipermail archives for a list.  The archive
base runs from 1998 to present, about 25,000 mails/year.  The mbox
files are segmented by year.  What documentation there is for the
bin/arch utility appears to be in its --help printout and in the
Python code.  

Thus far, it appears that we've gotten a complete build, but have
problems with year 2002.  About 250 posts have their headers archived
properly, but without the message text.  That text is archived as 
no subject on the date arch was run.  I've done a quick check, just
to idenfity the problem period, and so see what's in the mbox files
for the affected posts.  The posts themselves look correct, and I 
haven't spotted (yet) something in common such as one MUA being used
for the original posts.  Anyway, research proceeds.  I'm using the elm
mailreader as a check and diagnostic program on the assumption that if
elm will read the mail, arch should be able to.  Also using vi to
examine the files.

Qhuestion number one, of course, is why is arch behaving this way?
This is affectingn one year's mbox file's builds.  That mbox (year
2002) was generated under Mailman, and I think it was an early 2.x rev
that was replaced over New Year's 2003.  

Question: Does the --wipe option delete all the archives, or does it
see what period the selected mbox covers?  I've assumed it's all
archives, so doing an incremental rebuild will require storing
anything previously build elsewhere?

Question: Is there a way to do an incremental rebuild and have it
replace already-built archives for a given time period?  Or is that a
manual rm job?

Other things being equal, my plan of attack right now is to set up 
an empty archive directory, do incremental builds in it, then move
each increment to a backup directory, clean out the build directory,
and do the next increment.  When all increments are built clean, I
can then move the backup to production.  If there's a better way,
I'm all ears.

Hank

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


Re: [Mailman-Users] Problems regenerating archives from mbox files

2010-03-04 Thread Mark Sapiro
Hank van Cleef wrote:

Thus far, it appears that we've gotten a complete build, but have
problems with year 2002.  About 250 posts have their headers archived
properly, but without the message text.  That text is archived as 
no subject on the date arch was run.  I've done a quick check, just
to idenfity the problem period, and so see what's in the mbox files
for the affected posts.


This is a symptom of unescaped From_ lines in the bodies of the
messages. Run bin/cleanarch against this .mbox


Qhuestion number one, of course, is why is arch behaving this way?


See above


This is affectingn one year's mbox file's builds.  That mbox (year
2002) was generated under Mailman, and I think it was an early 2.x rev
that was replaced over New Year's 2003.  

Question: Does the --wipe option delete all the archives, or does it
see what period the selected mbox covers?  I've assumed it's all
archives, so doing an incremental rebuild will require storing
anything previously build elsewhere?


--wipe removes the entire archive. To do an incremental build, you
specify --wipe on only the first bin/arch command.


Question: Is there a way to do an incremental rebuild and have it
replace already-built archives for a given time period?  Or is that a
manual rm job?


It's a manual rm, but easy enough unless there are some to remove and
some to keep in the same volume (month).


Other things being equal, my plan of attack right now is to set up 
an empty archive directory, do incremental builds in it, then move
each increment to a backup directory, clean out the build directory,
and do the next increment.  When all increments are built clean, I
can then move the backup to production.  If there's a better way,
I'm all ears.


This is a bad idea. It will work, but if you have messages for the same
volume in two increments, there will be a conflict.

Just do bin/arch --wipe with the first increment and then bin/arch
without the --wipe for the succeeding increments. After each
increment, check and if the archive is OK, copy the entire archive to
the backup. If it's not OK, restore the previous backup and fix what's
wrong with that increment's .mbox.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Permission Denied errors

2010-03-04 Thread Beyer, Clay
Hello Everyone, 

 

I am getting some permission denied errors that is causing about 2000
messages to appear in my mailbox, not sure what is going on. My
check_perms seems to run fine and fix all permissions, so looking for
any additional help. The error:

 

IOErro: [Errno 13] Permission denied:
'/var/lib/mailman/locks/gate_news.lock.NKADDWEB.4363.0'

 

Some additional info...

/var/lib/mailman/locks is a symlink to /var/lock/mailman which has
uid:gid of root:lists

 

Thanks for any help!

 

ClayB

 

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


Re: [Mailman-Users] Permission Denied errors

2010-03-04 Thread Mark Sapiro
Beyer, Clay

IOErro: [Errno 13] Permission denied:
'/var/lib/mailman/locks/gate_news.lock.NKADDWEB.4363.0'


Presumably this is from the emailed output of cron/gate_news which runs
every 5 minutes and mails you this message.

Was there a traceback. It would say exactly what was being attempted
that there was not permission for.

The problem is the user the cron runs as does not have permission to
create the file or create a hard link to it.

This could be permissions or SELinux or some other security policy
manager.


Some additional info...

/var/lib/mailman/locks is a symlink to /var/lock/mailman which has
uid:gid of root:lists


and are the permissions on /var/lock/mailman drwxrwsr-w check_perms may
have trouble because it gets confused by symlinks, but presumably
they're OK or Mailman would be completely broken.

So I'm guessing it's the cron user or a security policy manager.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied errors

2010-03-04 Thread Beyer, Clay
Beyer, Clay

IOErro: [Errno 13] Permission denied:
'/var/lib/mailman/locks/gate_news.lock.NKADDWEB.4363.0'


Presumably this is from the emailed output of cron/gate_news which runs
every 5 minutes and mails you this message.

Was there a traceback. It would say exactly what was being attempted
that there was not permission for.

The problem is the user the cron runs as does not have permission to
create the file or create a hard link to it.

This could be permissions or SELinux or some other security policy
manager.

Traceback (most recent call last):
File /var/lib/mailman/cron/gate_news, line 284, in module main()
File /var/lib/mailman/cron/gate_news, line 259, in main
lock.lock(timeout=0.5)
File /usr/lib/mailman/Mailman/LockFile.py, line 243, in lock
self.__write()
File /usr/lib/mailman/Mailman/LockFile.py, line 422, in __write fp =
open(self.__tmpfname, 'w')

IOError: [Error 13] Permission denied:
'/var/lib/mailman/locks/gate_news.lock.NKADDWEB.4363.0'

That is the traceback.

Some additional info...

/var/lib/mailman/locks is a symlink to /var/lock/mailman which has
uid:gid of root:lists


and are the permissions on /var/lock/mailman drwxrwsr-w check_perms may
have trouble because it gets confused by symlinks, but presumably
they're OK or Mailman would be completely broken.

So I'm guessing it's the cron user or a security policy manager.

The permissions of /var/lock/mailman are as you stated.

How do I make the cron user (im too much of a newbie for this to be a
policy manager ;)) able to write to the directory, I'm not very fluent
messing with users, yet...

Thanks,
ClayB

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied errors

2010-03-04 Thread Mark Sapiro
Beyer, Clay wrote:

How do I make the cron user (im too much of a newbie for this to be a
policy manager ;)) able to write to the directory, I'm not very fluent
messing with users, yet...


Mailman's crontab should be installed so it either belongs to the
mailman user (which I think is 'list' in your case) or runs as the
mailman user. I.e. it should be in /var/spool/cron/list or if it is in
/etc/cron.d/ (e.g. /etc/cron.d/mailman), it should have a field in
between the 5 date/time fields and the command containing 'list'.

So where is Mailman's crontab?

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] List Limitations

2010-03-04 Thread Richard Berta
Thank you, Larry, for the helpful information as well as a quick response!

Richard Berta
Membership, Marketing  Communications Director
California Library Association
950 Glenn Drive, Suite 150
Folsom, CA 95630
916.233.3298 p
916.932.2209 f

Follow CLA on Facebook and Twitter!

From: Larry Stone [lston...@stonejongleux.com]
Sent: Thursday, March 04, 2010 8:36 AM
To: Richard Berta
Cc: mailman-users@python.org; hol...@cla-net.org
Subject: Re: [Mailman-Users] List Limitations

On Wed, 3 Mar 2010, Richard Berta wrote:

 We're looking to start a new listserv

Listserv is not a synonym for mailing list. Rather, it is the trademarked
name for a competing brand of mailing list management software. Please do
not use listserv in connection with GNU Mailman.

 with 3,000+ names, can the current
 system handle something of that size?

Mailman can easily handle a list of that size. If you are to have an
issue, it will be with your computer's resources (memory, disk space,
etc.) and/or Internet bandwidth.

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


[Mailman-Users] mailman admin question

2010-03-04 Thread rey art

Dear Sr.

I Have admin user of mine mailman list. I want to know if may be possible using 
web admin page, delete old post. I Want to delete or modify some old post bye 
web:

http://mylist.org/cgi-bin/mailman/admin/my-list-name/

may be possible?? the only way is command line? for me, now it is no possible.

Thak you

  
_
¿Te gustaría tener Hotmail en tu móvil Movistar? ¡Es gratis!
http://serviciosmoviles.es.msn.com/hotmail/movistar-particulares.aspx
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Problem with authorizing...

2010-03-04 Thread Mitch Braff
Every time someone from our listserv sends an email to the list we  
have to authorize the request. What is the setting to let ALL users on  
the list send email without getting authorization form the admin?  
Can't find it.


Thank you.

-Mitch


Mitch Braff
Executive Director
Jewish Partisan Educational Foundation
2107 Van Ness Avenue
Suite 302
San Francisco, CA 94109
(tel) 415.563.2244
(fax) 415.563.2442
mi...@jewishpartisans.org
http://www.jewishpartisans.org
Blog - http://www.jewishpartisans.org/blog
Facebook - http://www.jewishpartisans.org/facebook





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


[Mailman-Users] Waiting moderator requests not found

2010-03-04 Thread Rob Tanner
Hi,

I just upgraded from version 2.1.9 to 2.1.13 to hopefully solve a couple of
problems, and the upgrade solved all but one.  The moderator of one of the
lists gets email that tells him there are two requests pending, but when he
clicks on the link to go to the administrative database the message is
³There are no requests pending².   Since this issue was also in 2.1.9, I¹m
assuming it¹s not a software bug but rather a configuration error of some
kind, but I have no idea what that might be.

Can anyone offer me ome useful advice?

Thanks,
Rob



Rob Tanner
UNIX Services Manager
Linfield College, McMinnville Oregon



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


Re: [Mailman-Users] Permission Denied errors

2010-03-04 Thread Beyer, Clay
-rw--- 1 mailman crontab  /var/spool/cron/crontabs/mailman
-rw-r--r-- 1 root root /etc/cron.d/maiman

Those are the two places you mentioned.

Thanks,
ClayB


Beyer, Clay wrote:

How do I make the cron user (im too much of a newbie for this to be a
policy manager ;)) able to write to the directory, I'm not very fluent
messing with users, yet...


Mailman's crontab should be installed so it either belongs to the
mailman user (which I think is 'list' in your case) or runs as the
mailman user. I.e. it should be in /var/spool/cron/list or if it is in
/etc/cron.d/ (e.g. /etc/cron.d/mailman), it should have a field in
between the 5 date/time fields and the command containing 'list'.

So where is Mailman's crontab?

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailman admin question

2010-03-04 Thread Mark Sapiro
On 3/4/2010 1:08 PM, rey art wrote:
 
 I Have admin user of mine mailman list. I want to know if may be
 possible using web admin page, delete old post. I Want to delete or
 modify some old post bye web:


There is no web facility for modifying messages in Mailman's archive.

It has to be done as in the FAQ at http://wiki.list.org/x/2YA9 which
requires command line access to the server.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permission Denied errors

2010-03-04 Thread Mark Sapiro
Beyer, Claywrote:

-rw--- 1 mailman crontab  /var/spool/cron/crontabs/mailman
-rw-r--r-- 1 root root /etc/cron.d/maiman

Those are the two places you mentioned.


So I'm just guessing, but I suspect that the crontab in
/etc/cron.d/mailman (?) is correct and is running successfully and the
one in /var/spool/cron/crontabs/mailman is causing the problems
because it runs as user 'mailman' and not as user 'list'.

I think your problem will be solved if you just

 rm /var/spool/cron/crontabs/mailman

but I can't say for sure without seeing the contents of both files and
also knowing what groups the 'mailman' user is in.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Waiting moderator requests not found

2010-03-04 Thread Mark Sapiro
Rob Tanner wrote:

I just upgraded from version 2.1.9 to 2.1.13 to hopefully solve a couple of
problems, and the upgrade solved all but one.  The moderator of one of the
lists gets email that tells him there are two requests pending, but when he
clicks on the link to go to the administrative database the message is
There are no requests pending.   Since this issue was also in 2.1.9, =
I'm
assuming it's not a software bug but rather a configuration error of some
kind, but I have no idea what that might be.


The 2 moderator requests waiting message does not come from the mailman
installation you just upgraded. It comes from a different test, demo,
backup, whatever installation on the same or another server.

First look at the Received: headers of the message to see where it
originates. Then find the Mailman installation that's sending it and
remove the installation or the list or at least remove its crontab.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Problem with authorizing...

2010-03-04 Thread Mark Sapiro
Mitch Braff wrote:

Every time someone from our listserv sends an email to the list we  
have to authorize the request. What is the setting to let ALL users on  
the list send email without getting authorization form the admin?  
Can't find it.


If you really have a listserv[1], you've come to the wrong place.

If this is a Mailman list, what is the reason given for holding the
message?



[1] Please do not refer to Mailman lists as 'listservs'. Listserv(r) is
a registered trademark[2] owned by the developer of a particular email
list management product, and it shouldn't be used generically.

My personal interest in this is not to protect the Listserv(r)
trademark, but rather to avoid confusing Listserv(r) email list
management software with any other email list management software
including GNU Mailman of which I am a developer.

[2] http://www.lsoft.com/corporate/trademark.asp

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] owner in a list

2010-03-04 Thread Infokeep - Mario Sergio
Hi list,

I have a mailman installed and its work fine. I have a question about the owner 
list.

I created a t...@domain.com list and defined three owners:

us...@domain.com
us...@domain.com
otherl...@domain.com

This otherlist is in my mailman.

But, when I do some actions, like remove a member, or add a new member, the 
email is delivery only user1 and user2. The owner otherlist don't receive the 
email. This config is possible? Or I can't put a list like owner?

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


Re: [Mailman-Users] owner in a list

2010-03-04 Thread Mark Sapiro
Infokeep - Mario Sergio wrote:

I created a t...@domain.com list and defined three owners:

us...@domain.com
us...@domain.com
otherl...@domain.com

This otherlist is in my mailman.

But, when I do some actions, like remove a member, or add a new member, the 
email is delivery only user1 and user2. The owner otherlist don't receive 
the email. This config is possible? Or I can't put a list like owner?


It should work. There are several possible reasons why it isn't in your
case. The message could be held, rejected or discarded as a non-member
post by the 'otherlist'. The message could be held for 'implicit
destination' by 'otherlist'.

Check Mailman's vette log to see what's happening to the message to
'otherlist' and possibly adjust accept_these_nonmembers or
acceptable_aliases of 'otherlist' as needed.

Note that if you want anyone's mail to firstlist-owner to be delivered
to otherlist without being held, you will need to set
generic_nonmember_action to Accept for 'otherlist'.

-- 
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
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org