Great Circle Associates Majordomo-Users
(September 1993)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Cool sendmail /etc/aliases hack for Majordomo
From: Brent Chapman <brent @ GreatCircle . COM>
Date: Sat, 11 Sep 93 19:38:50 -0700
To: majordomo-users @ GreatCircle . COM

I was having a problem with the "resend" aliases getting too long in my
/etc/aliases file.  I think "sendmail" has a 254 character limit, and the
"resend" aliases for some of my lists were passing that because of all the
options to "resend".

What I discovered is that you can use backquote expansion in an alias, and
put all the arguments to "resend" in another file.  For instance, instead of

sample-list-name: "|/usr/local/mail/majordomo/wrapper resend
	-p bulk -M 10000
	-l Sample-List-Name -f Sample-Owner -h GreatCircle.COM
	-a /usr/local/mail/lists/sample-list-name.passwd
	-R -r Sample-List-Name -s sample-list-name-outgoing"

You could use

sample-list-name: "|/usr/local/mail/majordomo/wrapper resend
	`/bin/cat /usr/local/mail/lists/sample-list-name.resend`
	sample-list-name-outgoing"

And then put all the arguments in a file named
/usr/local/mail/lists/sample-list-name.resend:

	-p bulk
	-M 10000
	-l Sample-List-Name
	-f Sample-Owner
	-h GreatCircle.COM
	-a /usr/local/mail/lists/sample-list-name.passwd
	-R
	-r Sample-List-Name
	-s sample-list-name-outgoing"

This has the added advantage that you can change the "resend" arguments
for a list without having to change the /etc/aliases entry; I imagine
that would appeal to those of you running Majordomo at sites where you
don't have the "root" password, and want to bother your sysadmins as
seldom as possible for list-related stuff.


-Brent
--
Brent Chapman                                   Great Circle Associates
Brent@GreatCircle.COM                           1057 West Dana Street
+1 415 962 0841                                 Mountain View, CA  94041


Indexed By Date Previous: Re: Patch for user-defined pre- and post-sub/unsub routines
From: "John P. Rouillard" <rouilj@cs.umb.edu>
Next: How do you configure the bounces mailing list
From: "John P. Rouillard" <rouilj@cs.umb.edu>
Indexed By Thread Previous: util to verify addresses?
From: Kasuga Jingoro <jingoro@tcp.com>
Next: How do you configure the bounces mailing list
From: "John P. Rouillard" <rouilj@cs.umb.edu>

Google
 
Search Internet Search www.greatcircle.com