Re: [Mailman-Users] Trouble with "Reply-to:"

2017-06-15 Thread Robert Heller
At Thu, 15 Jun 2017 09:27:58 -0700 Mark Sapiro  wrote:

> 
> On 06/15/2017 04:36 AM, Frank Elsner wrote:
> > 
> > running mailman-2.1.12-26.el6.x86_64 under Red Hat Enterprise Linux Server 
> > release 6.9
> > we have trouble with the "Reply-To:" header settings.
> > 
> > The list config contains 
> > 
> > first_strip_reply_to = 1
> > reply_goes_to_list = 2
> > reply_to_address = 'redac...@mailbox.tu-berlin.de'
> > 
> > but mails going though the list have no "Reply-To:" line in header.
> 
> 
> Please see . Then contact RedHat about
> what appears to be a bug in their mailman-2.1.12-26.el6.x86_64 package.

You could try upgrading to mailman-2.1.16 (an el5 SRPM is available at 
ftp://ftp.deepsoft.com/pub/deepwoods-repo/el5/SRPMS/mailman-2.1.16-2_DWS.el5.src.rpm
 
and I am sure it builds under EL6, since I have done it).

> 
> 
> > What might be the cause? What overlooked? Where to look?
> 
> 
> I suppose it's possible that Mailman is adding the Reply-To: and the
> outgoing MTA is removing it, but in any of our Mailman 2.1 distributions
> since 2.1.1 the above settings will result in
> 
> Reply-To: redac...@mailbox.tu-berlin.de
> 
> being added to the outgoing message.
> 
> You could look at your Mailman/Handlers/CookHeaders.py in the section
> that begins with the comment
> 
> # Reply-To: munging. ...
> 
> to see it it looks correct. In particular, this
> 
> # List admin wants an explicit Reply-To: added
> if mlist.reply_goes_to_list == 2:
> add(parseaddr(mlist.reply_to_address))
> 
> is what puts reply_to_address in the Reply-To: header in the outgoing
> message.
> 

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services

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


Re: [Mailman-Users] Can a list owner address be allowed to post to their own list?

2017-06-15 Thread Mark Sapiro
On 06/15/2017 02:54 AM, Jayson Smith wrote:
> Hi,
> 
> 
> I'm in the design stages of creating a script for my own use. This
> script will send a predetermined Email to a predetermined mailing list.
> I want it to be set up so anyone receiving this message can just hit
> Reply and reach the list owner address, listname-owner@domain.


On the admin General Options page set reply_goes_to_list to Explicit
address and reply_to_address to listname-owner@domain. You may or may
not want to also set first_strip_reply_to to Yes to avoid replying to
the original poster's address.

I may not understand your desire. The above will cause 'reply' to any
post to go to listname-owner@domain. If you only want replies to this
specific script-generated post to go to listname-owner@domain, you have
other choices.


> Is there
> any problem with subscribing that address to the list in question, as
> long as it's set to Nomail?


No, there is no problem and you don't have to set it to nomail unless
you don't want it to receive list posts. In other words, it won't cause
any issue other than receiving possibly unwanted list posts if it is not
set to nomail.


> Or is there an easy way to tell a list to
> accept all mail from a certain address, even though it's not subscribed
> to the list?


Yes. Add the address to Privacy options ... -> Sender filters ->
accept_these_nonmembers.

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


Re: [Mailman-Users] Purging old archives over 7 years old

2017-06-15 Thread Mark Dale
Hi,

We've found this to be useful.

"Using Archivemail to pruning Mailman archives"

https://playingwithsid.blogspot.se/2014/03/using-archivemail-to-pruning-mailman.html


Best,
Mark

On 15/06/17 23:05, Julian H. Stacey wrote:
> Steven Jones wrote:
>> Hi,
>>
>>
>> I have a 12year old mailman server which is absorbing 650gb of expensive 
>> disk space. Is there any feature that would go through each list's archives 
>> and delete emails over say 7 years old?   (or maybe even only 3 as we do a 
>> yearly backup going back a decade).
> 
> I've no idea if mailman has own special tools for that,
> standard Unix tools can find tools that use the Unix find command, eg
>   echo "Learn find, dialects vary per Unix."
>   man find 
>   cd /usr/local/mailman/bin 
>   echo "Get an idea where to look:"
>   find . -type f | sort | xargs grep -l find | more
>   find . -type f | sort | xargs grep -l find \
>   | grep -v /archives/ \
>   | grep -v /lists/ \
>   | grep -v /logs/ \
>   | grep -v /messages/ \
>   | grep -v /templates/ \
>   | grep -v /tests/ \
>   | more
>   echo "Ignore ./cgi-bin/* binaries."
>   vi -c/find `find bin/* scripts/* -type f | xargs grep -l find`
>   echo "Also consider ./Mailman/*/*.py[c] files"
> 
> Or more simply:
> 
> cd /usr/local/mailman/archives
> find . -type f -name \*.html | more
>   ./private/pc532/index.html
>   ./private/pc532/2017q2/00.html
>   ./private/pc532/2017q2/date.html
>   ./private/pc532/2017q2/subject.html
>   ./private/pc532/2017q2/author.html
>   ./private/pc532/2017q2/thread.html
>   ./private/pc532/2017q2/01.html
>   ./private/pc532/2017q2/02.html
> 
> so eg
>   rm -rf ./private/pc532/2007*
> 
> find . -type f -name \*.html | xargs ls -l > ~/tmp/dates_to_browse
> find . -type f -name \[0-9\]\*.html
> find . -type d -name 2012q\* | more
> find . -type d -name 2012q\* | xargs rm -rf
> 
> Find is very powerful.  Read 
>   man find
> before you use find,
> use 
>   more
> before you use
>   rm
> Do a backup before anything. 
> 
> Cheers,
> Julian
> 
--
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


Re: [Mailman-Users] Purging old archives over 7 years old

2017-06-15 Thread Vincej, Dawn (GRC-VE00)[DB Consulting Group, Inc.]
We use a pruning script to remove older messages from archives located here:

https://www.msapiro.net/scripts/prune_arch



Dawn




On Jun 14, 2017, at 4:36 PM, Steven Jones 
> wrote:

Hi,


I have a 12year old mailman server which is absorbing 650gb of expensive disk 
space. Is there any feature that would go through each list's archives and 
delete emails over say 7 years old?   (or maybe even only 3 as we do a yearly 
backup going back a decade).



regards

Steven
--
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/dawn.vincej%40nasa.gov

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


Re: [Mailman-Users] Trouble with "Reply-to:"

2017-06-15 Thread Mark Sapiro
On 06/15/2017 04:36 AM, Frank Elsner wrote:
> 
> running mailman-2.1.12-26.el6.x86_64 under Red Hat Enterprise Linux Server 
> release 6.9
> we have trouble with the "Reply-To:" header settings.
> 
> The list config contains 
> 
> first_strip_reply_to = 1
> reply_goes_to_list = 2
> reply_to_address = 'redac...@mailbox.tu-berlin.de'
> 
> but mails going though the list have no "Reply-To:" line in header.


Please see . Then contact RedHat about
what appears to be a bug in their mailman-2.1.12-26.el6.x86_64 package.


> What might be the cause? What overlooked? Where to look?


I suppose it's possible that Mailman is adding the Reply-To: and the
outgoing MTA is removing it, but in any of our Mailman 2.1 distributions
since 2.1.1 the above settings will result in

Reply-To: redac...@mailbox.tu-berlin.de

being added to the outgoing message.

You could look at your Mailman/Handlers/CookHeaders.py in the section
that begins with the comment

# Reply-To: munging. ...

to see it it looks correct. In particular, this

# List admin wants an explicit Reply-To: added
if mlist.reply_goes_to_list == 2:
add(parseaddr(mlist.reply_to_address))

is what puts reply_to_address in the Reply-To: header in the outgoing
message.

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


Re: [Mailman-Users] Purging old archives over 7 years old

2017-06-15 Thread Julian H. Stacey
Steven Jones wrote:
> Hi,
> 
> 
> I have a 12year old mailman server which is absorbing 650gb of expensive disk 
> space. Is there any feature that would go through each list's archives and 
> delete emails over say 7 years old?   (or maybe even only 3 as we do a yearly 
> backup going back a decade).

I've no idea if mailman has own special tools for that,
standard Unix tools can find tools that use the Unix find command, eg
echo "Learn find, dialects vary per Unix."
man find 
cd /usr/local/mailman/bin 
echo "Get an idea where to look:"
find . -type f | sort | xargs grep -l find | more
find . -type f | sort | xargs grep -l find \
| grep -v /archives/ \
| grep -v /lists/ \
| grep -v /logs/ \
| grep -v /messages/ \
| grep -v /templates/ \
| grep -v /tests/ \
| more
echo "Ignore ./cgi-bin/* binaries."
vi -c/find `find bin/* scripts/* -type f | xargs grep -l find`
echo "Also consider ./Mailman/*/*.py[c] files"

Or more simply:

cd /usr/local/mailman/archives
find . -type f -name \*.html | more
./private/pc532/index.html
./private/pc532/2017q2/00.html
./private/pc532/2017q2/date.html
./private/pc532/2017q2/subject.html
./private/pc532/2017q2/author.html
./private/pc532/2017q2/thread.html
./private/pc532/2017q2/01.html
./private/pc532/2017q2/02.html

so eg
rm -rf ./private/pc532/2007*

find . -type f -name \*.html | xargs ls -l > ~/tmp/dates_to_browse
find . -type f -name \[0-9\]\*.html
find . -type d -name 2012q\* | more
find . -type d -name 2012q\* | xargs rm -rf

Find is very powerful.  Read 
man find
before you use find,
use 
more
before you use
rm
Do a backup before anything. 

Cheers,
Julian
-- 
Julian Stacey, Computer Consultant, BSD Linux Unix Systems Engineer
 Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable.
 http://berklix.eu/brexit/#stolen_votes  Starve a troll: Ignore Trump's tweets.
--
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] Trouble with "Reply-to:"

2017-06-15 Thread Frank Elsner

Hi, 

running mailman-2.1.12-26.el6.x86_64 under Red Hat Enterprise Linux Server 
release 6.9
we have trouble with the "Reply-To:" header settings.

The list config contains 

first_strip_reply_to = 1
reply_goes_to_list = 2
reply_to_address = 'redac...@mailbox.tu-berlin.de'

but mails going though the list have no "Reply-To:" line in header.

What might be the cause? What overlooked? Where to look?


Kind regards, Frank Elsner
--
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] Can a list owner address be allowed to post to their own list?

2017-06-15 Thread Jayson Smith

Hi,


I'm in the design stages of creating a script for my own use. This 
script will send a predetermined Email to a predetermined mailing list. 
I want it to be set up so anyone receiving this message can just hit 
Reply and reach the list owner address, listname-owner@domain. Is there 
any problem with subscribing that address to the list in question, as 
long as it's set to Nomail? Or is there an easy way to tell a list to 
accept all mail from a certain address, even though it's not subscribed 
to the list?



Thanks,


Jayson


--
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] Purging old archives over 7 years old

2017-06-15 Thread Steven Jones
Hi,


I have a 12year old mailman server which is absorbing 650gb of expensive disk 
space. Is there any feature that would go through each list's archives and 
delete emails over say 7 years old?   (or maybe even only 3 as we do a yearly 
backup going back a decade).



regards

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