home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!uniol!proximus!gemoe
- From: gemoe@proximus.north.de (Gerhard Moeller)
- Subject: Re: Netinfo aliasing & scripts
- Message-ID: <1992Dec16.073612.10369@proximus.north.de>
- Sender: gemoe@proximus.north.de
- Organization: Gerhard Moeller, German NeXT User Group, Oldenburg.
- References: <1992Dec15.195116.22956@magnus.acs.ohio-state.edu>
- Date: Wed, 16 Dec 1992 07:36:12 GMT
- Lines: 58
-
- 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 <-+
-