Re: [Mailman-Users] Debugging question

2009-04-02 Thread Whit Blauvelt
On Wed, Apr 01, 2009 at 07:54:33AM -0700, Mark Sapiro wrote:

>  See .

Thanks Mark. I hadn't found that page. That was plenty to fix it.

I'd looked at the wiki without finding that. Maybe it's because the "Site
Administrator Tasks" page it's linked from is an unordered hodge-podge.
Maybe I didn't find it because debugging an install seemed like something
that would be included in "Downloading and Installing," or "Integration
Issues."

Since "Downloading and Installing" and "Integration Issues" are also tasks
for the site administrator, would it make better sense to also break out
sections on "Debugging," "Site Upgrades," and perhaps "Mods"? Or maybe to
fold thse all under "Site Administrator Tasks" but have that all
subsectioned logically, rather than a mostly-random list?

I know - it's a wiki and presumably I could jump in and rearrange stuff. I'd
do that, if there's a sense that it's appropriate and no one with real
expertise on Mailman wants to take it on.

Best,
Whit
--
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] Moderator and Admin emails not being sent...

2009-04-02 Thread Todd Giles
I've been debugging this for some time now, multiple google searches, etc...
all to no avail.  I have a mailman list setup and working fine, with the
exception of moderator and admin emails not being sent (at least not
received).  I've narrowed down to one fairly simple test case, that is to
leave an unmoderated email in the list, and then to run the following
command on my server:
% /usr/local/bin/python -S checkdbs

After running this command, my expectation is to get an email sent out
notifying me of the unmoderated email in the list.  I never get this email,
but I do get the following entries in various logs directly after running
that above command:

/var/log/maillog:

Apr  2 18:22:02 gileszone.com sendmail[12438]: n330M2rP012438:
from=, size=990,
class=-60, nrcpts=1, msgid=,
proto=ESMTP, relay=gileszone.com [69.36.169.41]
Apr  2 18:22:02 gileszone.com sendmail[12438]: n330M2rP012438:
to="|/home/gileszone/mailman/mail/mailman post sandia", ctladdr=<
sandia-ow...@gileszone.com> (2058/0), delay=00:00:00, xdelay=00:00:00,
mailer=prog, pri=139180, dsn=2.0.0, stat=Sent

mailman/logs/smtp:

Apr 02 18:22:02 2009 (9073) 
smtp to sandia for 1 recips, completed in 0.104 second

mailman/logs/vette:

Apr 02 18:22:03 2009 (9071) Message discarded, msgid: <
mailman.0.1238718120.12361.san...@gileszone.com>

All other mailman logs have no new entries. I've verified many times that
the list owner email address is setup properly (which it is - with a single
entry of this email address).  I'm currently at a loss as to why I'm unable
to get admin and moderator emails sent out to me --- any help would be
greatly appreciated!

Thanks,

-Todd
--
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 updating

2009-04-02 Thread Steff Watkins
> Hi all,
> 
> I have a question about the mailman bounce procedure. Is it  possible
to 
> obtain a list of bounces that were removed from the list due  to a
high 
> "score"? Essentially what I want to do is create a list of  members
that 
> were removed from the list due to bounces and present that  list to
the 
> list owner. Is there a built in function that can do it, or  is there
a 
> way I can do it manually? If this question has already been  addressed
in 
> the FAQ, I apologize, I might have missed it (there were a lot of 
> topics). If you can just point me in the right direction in  that
case, I 
> would be very grateful.
> 
> Cheers,
> 
> Sam

Hello Sam (and others),

 I had a similar-ish scenario a few weeks back. Quick story: the Mailman
setup here had a short spate of auto-unsubscribing people from various
lists at 9am every day for about four days. One of the lists had about
100 people removed in one morning and the list owner queried whether I
could supply them with a list of those who were unsubscribed .

The easy solution I found was to grep the 'subscribe' logfile for the
listname and the phrase 'auto-unsubscribe' which returns lines like:

Mar 11 09:00:02 2009 (1577) somelist: ...@***.***.net
auto-unsubscribed [reason: BYBOUNCE]

Looking into it a bit further I found that the 'bounce' logfile records
some (minorly) useful info about what it is doing. Doing a grep on the
term 'disabled' returns lines such as:

Mar 10 09:00:02 2009 (3577) Notifying disabled member *...@***.org for
list: somelist

What may be of most use to you however is to modify this grep to match
the phrase "deleted after 
exhausting notices" which I believe is the error line given when an
email address goes over its bounce score. This returns lines such as:

Mar 12 09:00:02 2009 (3388) somelist: ***...@.com deleted after
exhausting notices

>From there it is a short hop to having a script running under cron
that'll grep through the bounce logfile, matching lines containing
"deleted after exhausting notices" within the cronjob cycle period which
would dump the output to stdio and so by default email back to you.

Regards,
Steff Watkins
===
--
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] Problems in Mailman

2009-04-02 Thread Mario Sergio
Hi list,

 

I'm having some problems with a Mailman. When I accept an email that was
received in a list, I get this in the error log:

 

Apr 01 14:57:01 2009 (2315) SHUNTING:
1238608621.3245921+6e71fad398d2eba77746fc941cf6b1123ed7ecd3

Apr 01 14:57:01 2009 (2315) Uncaught runner exception: invalid load key,
'7'.

Apr 01 14:57:01 2009 (2315) 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/IncomingRunner.py", line 130, in
_dispose

more = self._dopipeline(mlist, msg, msgdata, pipeline)

  File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
_dopipeline

sys.modules[modname].process(mlist, msg, msgdata)

  File "/usr/lib/mailman/Mailman/Handlers/Moderate.py", line 109, in
process

Hold.hold_for_approval(mlist, msg, msgdata, Hold.NonMemberPost)

  File "/usr/lib/mailman/Mailman/Handlers/Hold.py", line 243, in
hold_for_approval

cookie = mlist.pend_new(Pending.HELD_MESSAGE, id)

  File "/usr/lib/mailman/Mailman/Pending.py", line 65, in pend_new

db = self.__load()

  File "/usr/lib/mailman/Mailman/Pending.py", line 95, in __load

return cPickle.load(fp)

UnpicklingError: invalid load key, '7'.

 

And this:

 

Apr 01 15:09:57 2009 (2312) SHUNTING:
1238609343.8684261+bff1c62c38a18427c91c1a4bb7ca5f7dfe15a267

Apr 01 15:11:01 2009 (2312) Uncaught runner exception: bad marshal data

Apr 01 15:11:01 2009 (2312) 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 216, in
ArchiveMail

h.processUnixMailbox(f)

  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 583, in
processUnixMailbox

self.add_article(a)

  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 635, in
add_article

article.parentID = parentID = self.get_parent_info(arch, article)

  File "/usr/lib/mailman/Mailman/Archiver/pipermail.py", line 667, in
get_parent_info

article.subject)

  File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 311,
in getOldestArticle

self.__openIndices(archive)

  File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 251,
in __openIndices

t = DumbBTree(os.path.join(arcdir, archive + '-' + i))

  File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 65, in
__init__

self.load()

  File "/usr/lib/mailman/Mailman/Archiver/HyperDatabase.py", line 170,
in load

self.dict = marshal.load(fp)

ValueError: bad marshal data

 

 

The qfiles/shunt directory is empty:

 

[r...@andromeda01 mailman]# ls -la qfiles/shunt/

total 8

drwxrwsr-x  2 mailman mailman 4096 Mar 25 10:36 .

drwxrwsr-x 11 rootmailman 4096 Mar 25 10:36 ..

 

In the data directory I have some files .pck, like this:

 

[r...@andromeda01 mailman]# ls -la data/

total 69048

drwsrwsr-x 2 rootmailman   20480 Abr  1 15:46 .

drwxrwsr-x 9 rootmailman4096 Abr  1 14:37 ..

-rw-rw-r-- 1 mailman mailman 2295278 Abr  1 15:46
heldmsg-cobranca-23.pck

-rw-rw-r-- 1 mailman mailman  489013 Abr  1 15:46
heldmsg-cobranca-24.pck

-rw-rw-r-- 1 mailman mailman1463 Abr  1 15:46
heldmsg-cobranca-35.pck

-rw-rw-r-- 1 mailman mailman4431 Abr  1 15:45
heldmsg-informatica-10.pck

-rw-rw-r-- 1 mailman mailman5026 Abr  1 15:45
heldmsg-informatica-11.pck

-rw-rw-r-- 1 mailman mailman   98672 Abr  1 15:45
heldmsg-informatica-12.pck

-rw-rw-r-- 1 mailman mailman4431 Abr  1 15:45
heldmsg-informatica-13.pck

[snip]

 

I run the check_db command, and it's report this:

 

[r...@andromeda01 mailman]# check_db --all --verbose

Lista: direta

 /var/lib/mailman/lists/direta/config.pck: Ok

 /var/lib/mailman/lists/direta/config.pck.last: Ok

[Errno 2] No such file or directory:
'/var/lib/mailman/lists/direta/config.db'

[Errno 2] No such file or directory:
'/var/lib/mailman/lists/direta/config.db.last'

Lista: vendasf

 /var/lib/mailman/lists/vendasf/config.pck: Ok

 /var/lib/mailman/lists/vendasf/config.pck.last: Ok

[Errno 2] No such file or directory:
'/var/lib/mailman/lists/vendasf/config.db'

[Errno 2] No such file or directory:
'/var/lib/mailman/lists/vendasf/config.db.last'

Lista: marketing

 /var/lib/mailman/lists/marketing/config.pck: Ok

 /var/lib/mailman/lists/marketing/config.pck.last: Ok

[Errno 2] No such file or directory:
'/var/lib/mailman/lists/marketing/config.db'

[Errno 2] No such file or directory:
'/var/lib/mailman/lists/marketing/config.db.

[Mailman-Users] Can't change host name preference

2009-04-02 Thread Mike Flaherty
Hello,
 
I am trying to set up Mailman on a new domain.  I have done it in the past 
without issue, but now I have a really bizzare problem.
 
When I go to the "MYLIST mailing list administration General Options Section" 
page, I notice the following entry preloaded in the "Host name this list 
prefers for email" field...
 
syd.xobas.net
 
I have NO IDEA where this is coming from.  It is not my domain, so I replace it 
with my own.
 
However, when I click the "Submit your changes" button, it goes to an invalid 
page.  When I try again, I notice that when I hover over the button, the URL 
that it translates to incorporates that "syd.xobas.net" domain into the URL.
 
I looked all over my server (a vps running CentOS 5) for where that entry might 
be coming from.  I did find an occurance of it in 
 
/var/lib/mailman/archives/private/MYLIST/index.html
 
and
 
/var/lib/mailman/archives/private/mailman/index.html
 
But I don't know how it got there.  Where is the proper place to replace that 
domain with my own?
 
Thanks Much,
Mike


  
--
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] Soft bounces....

2009-04-02 Thread Charles Gregory

Hallo!

Running into a small bit of frustration.

Yahoo expects me to respond promptly to 5xx bounces, disabling any 
subscriptions, otherwise it starts generating 'greylist' 4xx bounces for 
my mail. Unfortunately, if I try to lower the bounce threshold, the 
now-daily occurence of 4xx bounces guarantees that all yahoo addresses 
will end up disabled. Is there any way, short of fiddling with and 
recompiling from source, to separate 'hard' bounce handling from 'soft' 
bounce handling, or to change the 'scores' that each accumulates?


Or any other trick to handle bounces properly when yahoo is tossing out 
greylist deferrals. At this point is just amounts to a nuisance with 
delayed deliveries for a lot of list mail. But it would be better to have 
our mailman properly disable when 5xx errors occur


- Charles, HWCN
--
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] Triggering password reminders from the Web UI?

2009-04-02 Thread Beau James
MailMan 2.1.11, on a shared-hosting ISP ...

Is there any way from the Web UI for the list administrator to trigger
mailman to send the password reminder to all list members?  (The
administrator can trigger it to a specific member.)

Is there any way to find out via the Web UI, the schedule on which
password reminders will be sent to the entire list when "send monthly
password reminders" is selected on the general list properties?

Thanks.

Beau
--
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 password reminders

2009-04-02 Thread Mark Sapiro
Chris Nulk wrote:
> 
>I know I can stop password reminders from going out to list members by turning 
>off the reminders in the list configuration.  I also know I can comment out 
>the cron entry for mailpasswd to stop it for all lists.  In addition, I know I 
>can send reminders using mailpasswd  to a specific list(s).  But, can I 
>exclude sending reminders to specifics lists with mailpasswd.  What I would 
>like to do is send the normal monthly reminders to most of our lists.  There 
>is a small group of lists that I want reminders to be sent to but on a 
>quarterly/yearly basis instead.
>
>Can I do this using mailpasswd or some other way?  Or should I pull out the 
>big hacking sword, close my eyes, and have a go at mailpasswd?  And, does 
>anyone really want to see the results if I do?


I don't recommend the hack away with eyes closed method, but it
shouldn't be too difficult to add a -x/--exclude option to mailpasswds.

On the other hand you could do something like

#!/bin/sh
excludes=`cat /path/to/lists/to/exclude`
for list in `/path/to/bin/list_lists --bare` ; do
  skip=0
  for xlist in $excludes ; do
if [ $list == $xlist ] ; then skip=1 ; fi
  done
  if [ $skip == 0 ] ; then
/path/to/cron/mailpasswds -l $list
  fi
done

-- 
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] Mailman password reminders

2009-04-02 Thread Chris Nulk
Hello all,
 
I know I can stop password reminders from going out to list members by turning 
off the reminders in the list configuration.  I also know I can comment out the 
cron entry for mailpasswd to stop it for all lists.  In addition, I know I can 
send reminders using mailpasswd  to a specific list(s).  But, can I exclude 
sending reminders to specifics lists with mailpasswd.  What I would like to do 
is send the normal monthly reminders to most of our lists.  There is a small 
group of lists that I want reminders to be sent to but on a quarterly/yearly 
basis instead.

Can I do this using mailpasswd or some other way?  Or should I pull out the big 
hacking sword, close my eyes, and have a go at mailpasswd?  And, does anyone 
really want to see the results if I do?

Thanks,
Chris

--
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] Wiki maintenance

2009-04-02 Thread Brad Knowles

Barry Warsaw wrote:

Please note that our hosting provider will be conducting some schedule 
maintenance on our wiki instance.  Thus wiki.list.org will be 
unavailable starting at 0900 UTC Saturday April 4, for "a few hours".


So says the FLUFL, so shall it be.

--
Brad Knowles 
Member of the Python.org Postmaster Team & Co-Moderator of the
mailman-users and mailman-developers mailing lists
--
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] Wiki maintenance

2009-04-02 Thread Barry Warsaw

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Please note that our hosting provider will be conducting some schedule  
maintenance on our wiki instance.  Thus wiki.list.org will be  
unavailable starting at 0900 UTC Saturday April 4, for "a few hours".


Barry

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

iEYEARECAAYFAknUzAgACgkQ2YZpQepbvXGKbgCfc9ZOQD4TzaZyr8sc6ygIic0G
tuYAn1B2m+B+Lh6NwIkTNDOetn814Piu
=7o8K
-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] mm_cfg.py in /usr : SELinux problem

2009-04-02 Thread Daniel Novotny

- "Mark Sapiro"  wrote:

> I understand your issue with mm_cfg. All I can suggest is symlinks
> might help. I thought the current RedHat package currently has a
> symlink /etc/mm_cfg.py -> /usr/lib/mailman/Mailman/mm_cfg.py (or vice
> versa). Does this help?
yes, the symlink is there, but nevertheless when mailman starts,
python tries to compile the file to /usr/lib/mailman/Mailman 
because this is where the entire package is

> 
> If the problem is strictly with mm_cfg.pyc, you may be able to make
> /usr/lib/mailman/Mailman/mm_cfg.pyc an empty file with mode  (or
> (0400) so python won't try to write it.
python will try to write it and fail and this triggers the SELinux AVC denial
nevertheless

> 
> If John Dennis is still at RedHat, he may be able to help as I think
> he's probably thought about this more than anyone.
thanks for the contact, I will look if he's still here


The solution I created is to create a new script called
"mailman-update-cfg"'which contains the following:

#!/usr/bin/python
import py_compile

py_compile.compile("/usr/lib/mailman/Mailman/mm_cfg.py")

in the mm_cfg.py there's a note, that if you use SELinux,
you have to run this script as root after you change
the configuration

what do you think about this? it's more of a work-around,
but it can be a part of the mailman init script in /etc/init.d

 regards,
   Daniel Novotny

> 
> -- 
> 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