🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.sysadmin
4 messages
4 total messages Started by Shane M Zatezalo Tue, 15 Dec 1992 19:51
Netinfo aliasing & scripts
#2117
Author: Shane M Zatezalo
Date: Tue, 15 Dec 1992 19:51
13 lines
1137 bytes
Is there a way to define an alias in the NetInfoDB that would, upon
it receiving mail, run a script?

Or would it be better to create a user who's login is that script, and add
him to the membership list of the alias?

(I'm trying to figure out an easy way to do a mailing list)

 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
:   Shane M. Zatezalo         : i-net> szatezal@magnus.acs.ohio-state.edu :
:   CIS Eng Ohio State        : NeXTMail>  shane@kiwi.shws.ohio-state.edu :
:  ....call the Atomic Playground 614-297-7031 16.8k DS HST 425 MEGS .... :
:GS:::: Apple II forever!! ::::::GO BUCKS!::::::: Play Lacrosse! :::::::GS:
Re: Netinfo aliasing & scripts
#2130
Author: Gerhard Moeller
Date: Wed, 16 Dec 1992 07:36
58 lines
3127 bytes
In article <1992Dec15.195116.22956@magnus.acs.ohio-state.edu>  
szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo) writes:
> Is there a way to define an alias in the NetInfoDB that would, upon
> it receiving mail, run a script?
> 
> Or would it be better to create a user who's login is that script, and add
> him to the membership list of the alias?
> 
> (I'm trying to figure out an easy way to do a mailing list)

This is actually a sendmail property. (As I heard from the net, NeXT
Inc. seemd to have included the sendmail in NetInfo in 3.0. Is that
true? How does it affect things?) 

What you want to do (in 2.1 at least ;-) ) is to include a line like

mailprg: "|/usr1/gemoe/Apps/mailprg.filter"

in your /etc/sendmail/aliases file. (Remember to do a "newaliases"
in a shell!) Here, "mailprg" is a pseudonym (there is no user like
that) just for sendmail. All mail going to
mailprg@proximus.north.de gets actually piped to the program
/usr1/gemoe/Apps/mailprg.filter. Easy, hey? 

Also you might want (for a mailing list) a mechanism like 

mailing_list: :include:/usr/local/lib/sendmail/mailing.list

This includes a File (/usr/local/lib/sendmail/mailing.list).
Here it means that any mail to mailing_list@proximus.north.de gets
actually send to the names in a comma-seperated list in the file. (But
be aware that lists can only be 1000 chars long due an design fault.
This is no real problem, just include the next file at the end of the
previous one. (="chaining")) The enties in such a file could look
like: 

Name1 <foo@bar.edu>, \
Name2 <blupp@bla.de>, \
...

(This is how I do it. Though I use sendmail 5.65-ida, it should work for
all sendmails.)

The only remaining problem is the administration of the list. Adding
and removing users, sending help-files, etc. has to be done. As my
mailing list is small, this is no real problem, but I would like to have
good programs that do the job and no time to write them (scripts should
do the job) -- if anyone out in the net knows some decent mailing list
administration programs, I would be glad to know!!! 

	Bye, Gerhard.
--
+---------------------------< principiis obsta! >---------------------------+
N  Gerhard Moeller, Teichstrasse 12, 2900 Oldenburg (FRG) [*: 02/21/1968]   N
e  Private: gemoe@proximus.north.de          Phone (voice): +49-441-75520   e
X  Uni:     Gerhard.Moeller@arbi.Informatik.Uni-Oldenburg.DE      NeXTmail  X
T  Z-Net:   Gerhard.Moeller@uniol.zer                          encouraged!  T
+-> NoGeNUG - Northern German NeXT User Group:  NoGeNUG@proximus.north.DE <-+
Re: Netinfo aliasing & scripts
#2136
Author: Andrew Loewenstern
Date: Wed, 16 Dec 1992 21:16
16 lines
1111 bytes
In article <1992Dec15.195116.22956@magnus.acs.ohio-state.edu> szatezal@magnus.acs.ohio-state.edu (Shane M Zatezalo) writes:
>Is there a way to define an alias in the NetInfoDB that would, upon
>it receiving mail, run a script?
>
>Or would it be better to create a user who's login is that script, and add
>him to the membership list of the alias?

Create a user, but put the script in the .forward file...


andrew
-- 
andrew@cubetech.com      |  "C++'s runtime sucks shit!  Virtual functions
Andrew Loewenstern       |   can go straight to hell!"  - Ron Pomeroy
Cube Technologies, Inc.  |                   ForYourEyesOnly public key:
0000000701B61D1ADF0DFC9C16185CEA055200000007EB4A9FEB1922065D471A89E905B5
Re: Netinfo aliasing & scripts
#2154
Author: Jacob Gore
Date: Thu, 17 Dec 1992 19:17
30 lines
1587 bytes
Shane M Zatezalo:
> Is there a way to define an alias in the NetInfoDB that would, upon
> it receiving mail, run a script?

For mail from a local account, yes:

	echo 'alias_name: |/full/path/scriptname' | niload aliases /

If not a net-wide alias, the last "/" needs to be a "." (or some
mid-level NetInfo domain if you have more than two levels).  You can
also use NetInfoManager to achieve the same result, if you're into
pseudoconsistent graphical interfaces.

The script gets run under the uid/gid of the sender.

What if the mail comes from another machine, making it impossible to
use the sender's uid/gid?  It fails.  So if you want to send mail to
this alias from outside, you need to create an account named after
that alias, and put the "|/full/path/scriptname" string into
~alias_name/.forward .

> (I'm trying to figure out an easy way to do a mailing list)

I'd look for a list-server package... I bet there's one in
comp.sources.unix archives on ftp.uu.net.

Jacob
--
Jacob Gore, Eastern NM U.   Jacob@BlackBox.ENMU.Edu | Jacob@Gore.Com
Member of the League for Programming Freedom (LPF)--lpf@uunet.uu.net
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads