From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075325006495.tru64-unix-managers.marc@archive.invalid> From: Erik Sundermann Date: Mon, 06 Nov 1995 17:08:26 +0000 To: tru64-unix-managers Subject: Summary: Group aliases for sendmail X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075325006495 A few days ago, I asked the following question: > I'm trying to configure sendmail to work with group aliases. > When I add the line > > > our_group: user1,user2,user3 > > to /usr/var/adm/sendmail/aliases, everything works fine. > > However, when I create a file /usr/var/adm/sendmail/our_group.list > (containing user1, user2 & user3 on separate lines) and add the > following line to /usr/var/adm/sendmail/aliases, > > > our_group: ":include:/usr/var/adm/sendmail/our_group.list" > > I get the following error from our mail-daemon (mserv.rug.ac.be) > > > ----- Transcript of session follows ----- > > While talking to mserv.rug.ac.be: > > >>> RCPT To:<":include:/usr/var/adm/sendmail/our_group.list"> > > <<< 550 <":include:/usr/var/adm/sendmail/our_group.list">... User unknown > > 550 ":include:/usr/var/adm/sendmail/our_group.list"... User unknown > > Sendmail obviously doesn't know how to correctly interpret a line > starting with ':include'. > > The sendmail man-pages say ... > > > Aliases can also have the syntax :include:filename to ask sendmail to > > read the named file for a list of recipients. For example, an alias > > such as: > > > > poets: ":include:/usr/local/lib/poets.list" > > > > reads /usr/local/lib/poets.list for the list of addresses making up the > > group. > > which seems to be exactly what I have done. > > Before you ask: yes, I have run 'newaliases' afterwards, and I have > even restarted the whole sendmail. > > We are running OSF/1 3.0 on a DEC 3000-600. 1) A number of people suggested removing the quotes. When I change the line in the aliases file to > our_group: :include:/usr/var/adm/sendmail/our_group.list the error from the mail-daemon looked like ... > ----- Transcript of session follows ----- > While talking to mserv.rug.ac.be: > >>> RCPT To:<:include:/usr/var/adm/sendmail/our_group.list> > <<< 554 <:include:/usr/var/adm/sendmail/our_group.list>... Cannot mail > directly to :include:s > 554 :include:/usr/var/adm/sendmail/groepje.list... Service unavailable 2) Someone else suggested removing the blank, so that the line looks like... > our_group::include:/usr/var/adm/sendmail/our_group.list but that makes no difference. 3) At one time, I suspected that there was an error because of an empty aliases.dir file ... > # ls -l /var/adm/sendmail/aliases.* > -rw-r--r-- 1 root system 0 Nov 6 13:08 aliases.dir > -rw-r--r-- 1 root system 1024 Nov 6 13:08 aliases.pag but that seems to be normal. Anyway, I reconfigured sendmail from scratch (the configuration file dated from a previous OSF/1 release), and found out that a piece of code concerning the alias-translation has been changed. Since then, everything works fine. Thanks to : Michael Matthews Sheila Hollenbaugh Brad Davis Craig Morgan Patrick O'Brien Hugh Messenger George R. Rumney II Bob Berrigan Jon Reeves Jim Neeland Paul Bushen ,,, Erik Sundermann (0 0) MEDISIP Group - University of Ghent +-----oOO----(_)------------+ Sint-Pietersnieuwstraat 41 | You know how Einstein got | B-9000 Ghent - Belgium | bad grades as a kid ? | | Well, mine are even worse | tel : +32-9-264.66.19 | (Calvin) | fax : +32-9-264.35.94 +-------------------oOO-----+ |__|__| email: Erik.Sundermann@rug.ac.be || || WWW : http://petaxp.rug.ac.be/~erik ooO Ooo