This is my experience setting up Sendmail 8.8.5. My setup is a full time connection to the internet and my mailserver is a NeXT3.3 box.

My goal out of all of this was one to upgrade to a newer version of sendmail and to remove the mailserver name from the return mail address. (ie... you@mailserver.verd.com) I wanted to get rid of the "mailserver" part of it so it read "you@verd.com"

And this is how I finally got it to work.



First a few things you will need:

After you uncompress these files you will need to install both of the packages:  senmail.pkg and m4.pkg as "root".

After you uncompress the above you will have a directory that contains the following files.

  • In this you will see the following files:
    • generic-nextstep3.3.mc
    • inst_sendmail*
    • mydomain.m4
    • next.mc
    • sendmail.cw

     

Be sure to modify the "sendmail.cw" and the "mydomain.m4" files by replacing verd.com with your domain name. Once you have done that run the "inst_sendmail" script and it will move the appropriate files around and create you new sendmail.cf. Don't worry the script moves all of the old files that it touches to "filename.pre". So you can always back out if neccessary.


We are nearly finished.

Create a /etc/service.switch file. This file governs how host and alias information is found. The first field is the map name (hosts, aliases, etc...) while all other fields are the places to look for that information.
 

  • Here is an example for standalone systems. Network systems may want to add "dns" and "nis" to the search path.
    • hosts dns netinfo files
    • aliases netinfo files

Create a FQDN (fully qualified domain name) in NetInfo's host directory. i.e. if you have a mailhost called nextstep and your domain name is company.com. Add a host alias for nextstep called nextstep.company.com.

You will need to change NetInfo's /locations/sendmail directory. Specifically the location of the sendmail.cf file which is no longer in /etc/sendmail but in /etc.

Reboot or restart sendmail and you are now done.

I hope this has helped in some way.