From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653649622156.tru64-unix-managers.marc@archive.invalid> From: "Wayne M. Johnson" Date: Fri, 29 Jun 2001 16:07:08 +0000 To: tru64-unix-managers Subject: SUMMARY: what version of sendmail to install + instructions X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653649622156 >Greetings: > >I thank the following individuals for their replies: > >A. Shinn, Sheila Hollenbaug, Stan Horwitz, Dr. T. Blinn and a special >thanks to J. Bacher for the detailed installation instructions. Hope >I did not omit anyone else who replied. > >Anyway, I had a typo in my original message. I am running DUNIX 4.0E. >I wanted to know what was the best version of sendmail to install > >The consensus was to install Sendmail v. 8.11.4. > >Additionally, I needed some serious help configuring sendmail. The >following is an adaptation of J Bacher's instructions that worked for >our machine. > >We have only 5 users on our system. Relaying and virtual mail >hosting were not >needed by our users. So our config. of sendmail was fairly bare bones. > >1. Download sendmail from sendmail.org >2. #gzip -d sendmail-filename.gz >move sendmail-filename.tar to the directory you wish to use to >extract all of the source >cd to the directory that you moved the tar file to >3.tar xvfs sendmail-filename.tar >change to the top sendmail directory created (it may read sendmail-8.11.4) > >4. Back up all send mail related files. >our sendmail file were in: > >/usr/var/adm/sendmail --.cf and other config. files >/usr/sbin/sendmail-- sendmail binary >/usr/share/lib/sendmail.hf-- some header file for sendmail > > > >NOTE*** >On Tru64 4.0D using DEC's cc, I had to do step 5.A. Step 5.A was >not necessary in Tru64 5.1 using DEC's c++. I'm not sure whether >you'll need to do this for 4.0E. You might try to compile it first >without step 1 to see if you can compile clean. > >5.A) modify /usr/include/stdio.h extern in vsnprintf to match >sendmail's definition of vsnsprintf. > > >** I did not have the above problem with our machine (DUNIX 4.0E). I >included it for completeness only. > >5.B. Go into ./sendmail-8.11.4/ dir >#sh Build > >NOTE that the first time I tried this I received the message: >> >> # sh Build >> Configuration: pfx=, os=OSF1, rel=V4.0, rbase=V4, rroot=V4.0, >> arch=alpha, sfx=, variant=optimized >> ERROR: Using M4=/usr/bin/m4: This version of m4 is broken: trailing >> zero problem >> /usr/bin/m4::6 can't open file >Turns out m4 is broken on DUNIX as documented in the >./sendmail-8.11.4 /cf/README > >So I installed GNU m4 from ftp://ftp.gnu.org/pub/gnu/m4/m4-1.4.tar.gz >(check for the latest version). > >6. I copied the following into a file named config.mc >-------start here---------- >divert(-1) ># ># Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers. ># All rights reserved. ># Copyright (c) 1983 Eric P. Allman. All rights reserved. ># Copyright (c) 1988, 1993 ># The Regents of the University of California. All rights reserved. ># ># By using this file, you agree to the terms and conditions set ># forth in the LICENSE file which can be found at the top level of ># the sendmail distribution. ># ># > ># ># This is a generic configuration file for OSF/1. ># It has support for local and SMTP mail only. If you want to ># customize it, copy it to a name appropriate for your environment ># and do the modifications there. ># > >divert(0)dnl >VERSIONID(`$Id: generic-osf1.mc,v 8.11 1999/02/07 07:26:02 gshapiro Exp $') >OSTYPE(osf1)dnl >DOMAIN(generic)dnl >FEATURE(access_db)dnl >FEATURE(blacklist_recipients)dnl >FEATURE(rbl)dnl >FEATURE(dnsbl)dnl >MAILER(local)dnl >MAILER(smtp)dnl > >------end here---------- >(note that any MAILER definitions need to go after the FEATURES) >This is your configuration file for sendmail. I did not know what >most of these >entries meant initially. But they are documented on the sendmail.org website. >Put the file (config.mc) in the ./sendmail-8.11.4/cf/cf dir. >And from ./sendmail-8.11.4/cf/cf type >#sh Build config.cf > >This will create your configuration file. >I copied this file to /etc/mail/sendmail.cf manually.(sendmail 8.11.4 >looks for its config files in /etc/mail) > > > >7. From the ./sendmail-8.11.4/ dir >#sh Build install --this put the new sendmail binary in /usr/sbin/ >and installed other utilities > >8. Go to the utility dir. in ./sendmail-8.11.4/ that you want to install and >#sh Build install ( I only used mailstats and praliases)-- Actually, >I think you can build all the utilities by running sh Build from the >sendmail-8.11.4/ dir. >But if you only build sendmail in step 5.B. then you will need to do >this step. > >9. I copied our old /usr/var/adm/sendmail/aliases file to >/etc/mail/aliases --I could not figure out how to create a new one.But >I don't think a new one was necessary anyway. > >10. I created the following files in /etc/mail > >access --see sendmail.org about format for file >local-host-names --put your domain name in this file > >11. create access.db (database file) >#makemap hash access < access > >11. intialize alias database ># sendmail -v -bi > >12. chmod 640 all files in /etc/mail > >13. set /usr/bin/newaliases >#rm -f /usr/bin/newaliases >#ln -s /usr/sbin/sendmail /usr/bin/newaliases > > >14 Set up mail statisics file (sendmail.st) >#cp /dev/null /usr/var/adm/sendmail/sendmail.st >#chmod 666 /usr/var/adm/sendmail/sendmail.st > >15. restart sendmail daemon >#/sbin/init.d/sendmail restart > > >Again thanks to all those who replied and hope this will help someone. >Ciao. >Wayne > > >--