Re: [Mailman-Users] old messages sent to list on reboot

2015-08-30 Thread Eric Smith

Thank Mark

Mark Sapiro wrote on Sun-30-Aug 15  3:54AM
 On 08/27/2015 10:53 PM, Eric Smith wrote:
 There was a bug in Mailman 2.1.9 that would not unlink the
 qfiles/QUEUE/*.bak files used for recovery processing under some
 conditions. These files would then be 'recovered' when Mailman is restarted.

% dpkg -l|grep mailman.
ii  mailman 1:2.1.18-1ubuntu1

 It the above is not the reason, We'd need more information to diagnose
 how this happened.
 
 Perhaps id you examine your 'qrunner' log leading up to the reboot,
 you'll find that some runner or runners had died and not restarted, and
 then started and processed their queues after the reboot.

I started reboot on 27 August at 16:14;
# zcat  qrunner.3.gz
Aug 27 16:15:25 2015 (3092) CommandRunner qrunner started.
Aug 27 16:15:25 2015 (3094) NewsRunner qrunner started.
Aug 27 16:15:25 2015 (3090) ArchRunner qrunner started.
Aug 27 16:15:25 2015 (3091) BounceRunner qrunner started.
Aug 27 16:15:25 2015 (3093) IncomingRunner qrunner started.
Aug 27 16:15:25 2015 (3097) RetryRunner qrunner started.
Aug 27 16:15:26 2015 (3096) VirginRunner qrunner started.
Aug 27 16:15:26 2015 (3095) OutgoingRunner qrunner started.
# zcat  qrunner.2.gz
Aug 28 08:04:29 2015 (3097) RetryRunner qrunner caught SIGHUP.  Reopening logs.
Aug 28 08:04:29 2015 (3089) Master watcher caught SIGHUP.  Re-opening log files.
Aug 28 08:04:29 2015 (3092) CommandRunner qrunner caught SIGHUP.  Reopening 
logs.
Aug 28 08:04:29 2015 (3096) VirginRunner qrunner caught SIGHUP.  Reopening logs.
Aug 28 08:04:29 2015 (3091) BounceRunner qrunner caught SIGHUP.  Reopening logs.
Aug 28 08:04:29 2015 (3095) OutgoingRunner qrunner caught SIGHUP.  Reopening 
logs.
Aug 28 08:04:29 2015 (3094) NewsRunner qrunner caught SIGHUP.  Reopening logs.
Aug 28 08:04:29 2015 (3093) IncomingRunner qrunner caught SIGHUP.  Reopening 
logs.
Aug 28 08:04:29 2015 (3090) ArchRunner qrunner caught SIGHUP.  Reopening logs.
# zcat  qrunner.1.gz
pepper:/var/log/mailman# cat  qrunner.1
Aug 29 07:53:39 2015 (3096) VirginRunner qrunner caught SIGHUP.  Reopening logs.
Aug 29 07:53:39 2015 (3095) OutgoingRunner qrunner caught SIGHUP.  Reopening 
logs.
Aug 29 07:53:40 2015 (3089) Master watcher caught SIGHUP.  Re-opening log files.
Aug 29 07:53:42 2015 (3091) BounceRunner qrunner caught SIGHUP.  Reopening logs.
Aug 29 07:53:42 2015 (3094) NewsRunner qrunner caught SIGHUP.  Reopening logs.
Aug 29 07:53:43 2015 (3092) CommandRunner qrunner caught SIGHUP.  Reopening 
logs.
Aug 29 07:53:43 2015 (3097) RetryRunner qrunner caught SIGHUP.  Reopening logs.
Aug 29 07:53:43 2015 (3093) IncomingRunner qrunner caught SIGHUP.  Reopening 
logs.
Aug 29 07:53:43 2015 (3090) ArchRunner qrunner caught SIGHUP.  Reopening logs.

huh?
# zcat  qrunner.4.gz
# zcat  qrunner.5.gz
# ls -lrt qr*
-rw-rw-r-- 1 list list  20 Aug 23 07:58 qrunner.7.gz
-rw-rw-r-- 1 list list  20 Aug 24 08:06 qrunner.6.gz
-rw-rw-r-- 1 list list  20 Aug 25 07:48 qrunner.5.gz
-rw-rw-r-- 1 list list  20 Aug 26 07:39 qrunner.4.gz
-rw-rw-r-- 1 list list 151 Aug 27 16:15 qrunner.3.gz
-rw-rw-r-- 1 list list 194 Aug 28 08:04 qrunner.2.gz
-rw-rw-r-- 1 list list 729 Aug 29 07:53 qrunner.1
-rw-rw-r-- 1 list list 729 Aug 30 07:37 qrunner

Eric
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] old messages sent to list on reboot

2015-08-28 Thread Eric Smith
Hi

After rebooting my server, several mails from some weeks ago were
resent to lists and also a bunch of moderator requests to me.

How may I prevent this from happening again?

Eric
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Multiple mailman domains

2013-02-20 Thread Eric Smith
I want to configure postfix and mailman so that I have multiple
mailman domains. That means for each (postfix virtual) domain, 
the same listname may be used.

Here is the description form the docs;
http://www.list.org/mailman-install/postfix-virtual.html

and here is a mailpost answered by Mark Sapiro
http://mail.python.org/pipermail/mailman-users/2008-November/063886.html.

Is there sufficient informationn here to guide me in this configuration?


-- 
Eric Smith
--
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] mult-site installation - virtual domains and postfix

2013-02-15 Thread Eric Smith
I could not find the documentation that I read previously on how
to install mailman so that each virtual domain has distinct lists.
For example they may have the same listname ad are distinct by
the fact that they are in another domain.

Would someone please point me to the instructions.

-- 
Eric Smith
--
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] Automating procmail processing for new lists

2013-01-10 Thread Eric Smith

The below suggestions to procmail before posting to the list requires
manual configuration each time you set up a new list.

Is there a simple automatic way to achieve this?

Eric Smith


Quoting: 
http://www.mail-archive.com/mailman-users@python.org/msg55981.html

Taylor, Marc wrote:

I have an Ubuntu server running Mailman 2.1.9, Postfix 2.5.1 and
procmail 3.22.  I have gotten mailman and postfix to work correctly
using the postfix-to-mailman.py file.

How does one integrate procmail into this mixture with the
postfix-to-mailman.py file?  Is it possible to do this or does one have
to configure postfix and mailman differently in order to have procmail
do some filtering?


I understand that postfix_to_mailman.py is packaged with the
Debian/Ubuntu Mailman package, but it is 3rd party software, not
supported (officially at least) by the GNU Mailman project.

That said, one possibility might be to modify the mailman transport in
/etc/postfix/master.cf to invoke procmail instead of
postfix_to_mailman.py and then have procmail invoke
postfix_to_mailman.py for the mail it wants to deliver.

Another possibility is to modify postfix_to_mailman.py to invoje
procmail instead of Mailman's mail wrapper and then have procmail
invoke Mailman's wrapper to post the mail.

-- 
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] Adding custom header

2012-11-06 Thread Eric Smith
I want to receive all mail relating to lists that I create and
manage into my inbox. Because there are arbitrary list names and
also numerous domains, I think that the best way is for all list
mail to carry an identifying mail header.

Having searched the archives, I understand I should 
edit the source.
I am thinking like appending a tag to an existing header like
List-Id:

Is this giving the corre t file to edit.
 $ find /usr/lib/mailman -type f -exec grep -l List-Id {} \;
/usr/lib/mailman/Mailman/Handlers/CookHeaders.py

Any caveats, guidelines, bearing in mind this:
http://mail.python.org/pipermail/mailman-users/2011-December/072595.html

-- 
Eric Smith
--
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 of members in msg_footer

2012-09-23 Thread Eric Smith
Is it possible to expand the list members in the msg_footer?

(Obviously this only intended for lists with a few members)

-- 
Eric Smith
--
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] Single password per user

2012-09-15 Thread Eric Smith
I have a number of mailing lists.
Many users subscribe to several of these lists.
Is there a concept in a mailman instance of a user, such that
this user may have a single password? 

Or does the user need to create the password each time that
they subscribe?

PS. Are there any screenshots of Postorius?

-- 
Eric Smith
--
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] configure lists with text file or programatically.

2012-08-30 Thread Eric Smith
I have created a dozen or so lists and I want to change the
settings of all of them in a similar way.

This file seems to hold the config data;
/var/lib/mailman/lists/listname/config.pck.last

But it is not friendly. Is there a way to programatically or 
with a text editor apply settings?

Thanks for any advice.

-- 
Best regards,
Eric Smith
Mobile: 00 31 6 455 09313 - Tel Wageningen: +31 317 72
--
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] configure lists with text file or programatically - in a stream

2012-08-30 Thread Eric Smith
This seems to be a nice solution;

$ sudo config_list -o /dev/stdout listname |sed 's/advertised = .*/advertised 
= False/' -e 's/foo/bar/  |sudo config_list -i /dev/stdin listname



Eric Smith wrote on Thu-30-Aug 12  8:23PM
 I have created a dozen or so lists and I want to change the
 settings of all of them in a similar way.
 
 This file seems to hold the config data;
 /var/lib/mailman/lists/listname/config.pck.last
 
 But it is not friendly. Is there a way to programatically or 
 with a text editor apply settings?
 
 Thanks for any advice.
 
--
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] add_members with password

2012-08-28 Thread Eric Smith
How do I add_members and allocate a password?

For members who do not wish to subscribe through the web
interface, what is the way to subscribe them so that they
have a password for subsequent login?

Thanks
Eric Smith
--
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] configuration of mailman with postfix - SOLVED

2012-07-30 Thread Eric Smith
The issue was that as of 12.04 ubuntu upgraded to ipv6 support.
My mailman install required relaying of mails by postfix but
because the system was now ipv6 enabled, this 
was not possible until add following to mynetworks
 [::1]/128
Thanks to Mark Sapiro on the mailman list for persisting
and finding the answer. 

Maybe this will save someone else the time that it cost me.

Is the cause of this type of issue my ignorance alone?
Why (else) do these things happen?

-- 
Best regards,
Eric Smith

Scott Kitterman wrote on Wed-25-Jul 12  9:07PM
 On Wednesday, July 25, 2012 08:55:52 PM Eric Smith wrote:
  Thanks Robert (Scott)
  
  I have upgraded, checked and followed the Ubuntu docs.
  transport in master.cf corrected (I had a typo that gave the
  error with the user expansion), now it is like this;
  
  [root@pepper ~] $ grep -A1 mailman  /etc/postfix/master.cf
  mailman   unix  -   n   n   -   -   pipe
   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
   ${nexthop} ${user}
  
  $ mutt fres...@fresher2.nl -stest/dev/null;sleep 2;\
  sudo sh -c find /var/log/ -mmin -1; grep fresher  /var/log/mail.log|tail
  -1 /var/log/syslog
  /var/log/mail.log
  /var/log/auth.log
  Jul 25 20:45:53 localhost postfix/local[10429]: 70E4329020F: \
  to=|/var/lib/mailman/mail/mailman post fres...@fruitcom.com, \
  orig_to=fres...@fresher2.nl, relay=local, delay=0.17, \
  delays=0.11/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: \
  |/var/lib/mailman/mail/mailman post fresher)
  
  FWIW:
  [eric@pepper ~] $ echo $HOSTNAME
  pepper.fruitcom.com
  
  (Tooth enamel wearing a bit thin)
  
  Any ideas where I could look?
 
 I've never used mailman, so I don't know for sure about this, but I note 
 you're using user=list in the flags for the mailman service, but I see 
 /var/lib/mailman/mail/mailman post fresher in the logs.  Is fresher a valid 
 address in your domain?
 
 Scott K
--
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] configuration of mailman with postfix

2012-07-25 Thread Eric Smith
Hi

I have the following versions mailman 1:2.1.14-3 on postfix 2.9.1-5 and Ubuntu 
12.04 LTS

When I configure post install with the following instructionsi such as this one:
http://free-electrons.com/blog/mailman-howto-ubuntu-10-04/

My installation is for lists on virtual domains
NOT foobar.fruitcom.com
but complete virtual domains, in  this example
foobar.com

Postfix reports a warning:
warning: /etc/postfix/main.cf: unused parameter: 
mailman_destination_recipient_limit=1

Mails sent to one of the list commit...@foobar.com give the following error:
|/var/lib/mailman/mail/mailman post committee@fruitcom.com
(expanded from
commit...@foobar.com): unknown user: |/var/lib/mailman/mail/mailman post 
committee

Is there a suggestion to address this particular issue which I
think is the expansion to `committee@fruitcom.com' ,
alternatively, are there other instructions 

Thanks.

-- 
Best regards,
Eric Smith
Mobile: 00 31 6 455 09313 - Tel Wageningen: +31 317 72
--
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] reject oversize messages rather than hold for moderation?

2007-11-24 Thread Eric Smith
Is there any easy way to get Mailman to reject oversize messages,
rather than holding them for moderation, or does anyone have a patch?
I'm really getting sick of dealing with those.

I spent a few minutes looking at whether I could hack it in myself.
I quickly found the code that makes the hold decision for oversized
messages, in Mailman/Handlers/Hold.py, but it wasn't obvious how to change
it to do a rejection rather than a hold.

The structure of Mailman seems confusing to me.  It appears that it is
organized in terms of making all of the hold decisions in one place,
and the reject decisions in another.  I'd have expected it to identify
the possible problems with a message, and allow list-admin-configurable
policy decisions to be made for each of those problems.  But perhaps the
current structure makes sense to those who have better knowledge of
Mailman internals.

Eric

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] reject oversize messages rather than hold formoderation?

2007-11-24 Thread Eric Smith
Mark Sapiro wrote:
 All you have to do is change it to
 if bodylen/1024.0  mlist.max_message_size:
 rej_msg = 'Message too big: limit = %d KB' %
 mlist.max_message_size
 raise Errors.RejectMessage, rej_msg

That's great, tanks!!!

 Descisions are distributed through various handlers because we want to
 modularize the various functions like spam detection, membership tests

Still, I'd have expected the decisions for what to hold (policy) to be
separate from the code that actually implements the hold (mechanism).
For example, I might have expected to see a handler for message size.
Instead, it appears that the Hold handler has to think about all of
the reasons that a message might be held.

But like I said, this probably makes sense to all of you Mailman
maintainers, so I probably am just spouting BS.

Thanks for the help!
Eric

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp