[Mailman-Users] Help with aliases
Lynn, Michael (A&E)
michael_lynn at ml.com
Tue May 13 22:05:20 CEST 2008
Melinda,
Maybe instead of manually editing aliases - you can simply regenerate
your aliases on a periodic basis. You can use mailman/bin/genaliases to
do that... If you place a delimiter in your aliases file, you can use
something like the attached script to regenerate your entire
/etc/aliases file.
--->8---
#!/bin/perl
# quick and very dirty alias regenerator
#
#!/bin/perl
$DELIM="#%STARTMMALIASES%";
$GENALIASES='/var/mailman/bin/genaliases -q';
@OUT=`$GENALIASES`;
@IN=`cat /etc/aliases`;
for (@IN){
chomp;
print "$_\n";
last if $_=~/($DELIM)/msg;
}
for (@OUT) {
print "$_";
}
$out=`$NEWLIASES`;
---8<---
And simply insert "#%STARTMMALIASES%" into your /etc/aliases just before
your mailman aliases. You'll probably want to wrap some error checking
around it so you don't clobber your aliases file.
Granted... If you've got volumes of lists - it may not make sense to
regenerate very often but at least it will be automated.
Best,
Mike
-----Original Message-----
From: Melinda Gilmore [mailto:gilmore.126 at osu.edu]
Sent: Tuesday, May 13, 2008 3:05 PM
To: Lynn, Michael (A&E)
Subject: RE: [Mailman-Users] Help with aliases
Thanks for trying, but that is my problem. The instructions I am
finding
to set it up automatically are not working for me.
-----Original Message-----
From: Lynn, Michael (A&E) [mailto:michael_lynn at ml.com]
Sent: Tuesday, May 13, 2008 3:02 PM
To: Melinda Gilmore; mailman-users at python.org
Subject: RE: [Mailman-Users] Help with aliases
Woops - stock newlist doesn't add to /etc/aliases automatically... The
alias
command I suggested won't help.
-----Original Message-----
From: Lynn, Michael (A&E)
Sent: Tuesday, May 13, 2008 2:59 PM
To: 'Melinda Gilmore'; mailman-users at python.org
Subject: RE: [Mailman-Users] Help with aliases
Maybe I missed something but - Isn't it just a "/usr/bin/newaliases"?
Unless you have some other automation wrapped around the call to newlist
- you could easily create an alias:
alias newlist='<your path to mailman>/bin/newlist;/usr/bin/newaliases'
This limits your command line options - but will save you a couple
keystrokes.
You could also schedule a call to newaliases via cron - but that seems
like overkill.
Mike
-----Original Message-----
From: mailman-users-bounces+michael_lynn=ml.com at python.org
[mailto:mailman-users-bounces+michael_lynn=ml.com at python.org] On Behalf
Of Melinda Gilmore
Sent: Tuesday, May 13, 2008 2:49 PM
To: mailman-users at python.org
Subject: [Mailman-Users] Help with aliases
I have been a good girl and have been looking in the archives. But I am
missing something here. I cannot get my mailman to update the aliases
database. I check the setting in the manual. I am running mailman
with
postifx. I have looked at the newlist --help and I just cannot get my
alias
db to update. I hate to have to do this manually.
Any guidance would be great.
Melinda Gilmore
Systems Engineer
The Ohio State University
Enterprise Messaging/OIT
614-292-4953
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users at 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/michael_lynn%40ml.c
om
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
--------------------------------------------------------
This message w/attachments (message) may be privileged, confidential or
proprietary, and if you are not an intended recipient, please notify the
sender, do not use or share it and delete it. Unless specifically
indicated,
this message is not an offer to sell or a solicitation of any investment
products or other financial product or service, an official confirmation
of
any transaction, or an official statement of Merrill Lynch. Subject to
applicable law, Merrill Lynch may monitor, review and retain
e-communications (EC) traveling through its networks/systems. The laws
of
the country of each sender/recipient may impact the handling of EC, and
EC
may be archived, supervised and produced in countries other than the
country
in which you are located. This message cannot be guaranteed to be secure
or
error-free. This message is subject to terms available at the following
link: http://www.ml.com/e-communications_terms/. By messaging with
Merrill
Lynch you consent to the foregoing.
--------------------------------------------------------
More information about the Mailman-Users
mailing list