Document Information 
Preface 
Part I Network Services Topics 
1.  Network Service (Overview) 
2.  Managing Web Cache Servers 
3.  Time-Related Services 
Part II Accessing Network File Systems Topics 
4.  Managing Network File Systems (Overview) 
5.  Network File System Administration (Tasks) 
6.  Accessing Network File Systems (Reference) 
Part III SLP Topics 
7.  SLP (Overview) 
8.  Planning and Enabling SLP (Tasks) 
9.  Administering SLP (Tasks) 
10.  Incorporating Legacy Services 
11.  SLP (Reference) 
Part IV Mail Services Topics 
12.  Mail Services (Overview) 
13.  Mail Services (Tasks) 
Task Map for Mail Services 
Planning Your Mail System 
Setting Up Mail Services (Task Map) 
Setting Up Mail Services 
How to Set Up a Mail Server 
How to Set Up a Mail Client 
How to Set Up a Mail Host 
How to Set Up a Mail Gateway 
How to Use DNS With sendmail 
Setting SMTP to Use TLS 
How to Set SMTP to Use TLS 
Managing Mail Delivery by Using an Alternate Configuration 
How to Manage Mail Delivery by Using an Alternate Configuration of sendmail.cf 
Administering Mail Alias Files (Task Map) 
Administering Mail Alias Files 
How to Initiate an NIS+ mail_aliases Table 
How to List the Contents of the NIS+ mail_aliases Table 
How to Add Aliases to the NIS+ mail_aliases Table From the Command Line 
How to Add Entries by Editing an NIS+ mail_aliases Table 
How to Edit Entries in an NIS+ mail_aliases Table 
How to Set Up an NIS mail.aliases Map 
How to Set Up a Local Mail Alias File 
How to Create a Keyed Map File 
Administering the Queue Directories (Task Map) 
Administering the Queue Directories 
How to Display the Contents of the Mail Queue, /var/spool/mqueue 
How to Force Mail Queue Processing in the Mail Queue, /var/spool/mqueue 
How to Run a Subset of the Mail Queue, /var/spool/mqueue 
How to Move the Mail Queue, /var/spool/mqueue 
How to Run the Old Mail Queue, /var/spool/omqueue 
Administering .forward Files (Task Map) 
Administering .forward Files 
How to Disable .forward Files 
How to Change the .forward-File Search Path 
How to Create and Populate /etc/shells 
Troubleshooting Procedures and Tips for Mail Services (Task Map) 
Troubleshooting Procedures and Tips for Mail Services 
How to Test the Mail Configuration 
How to Test the sendmail Rule Sets 
Resolving Error Messages 
14.  Mail Services (Reference) 
Part V Serial Networking Topics 
15.  Solaris PPP 4.0 (Overview) 
16.  Planning for the PPP Link (Tasks) 
17.  Setting Up a Dial-up PPP Link (Tasks) 
18.  Setting Up a Leased-Line PPP Link (Tasks) 
19.  Setting Up PPP Authentication (Tasks) 
20.  Setting Up a PPPoE Tunnel (Tasks) 
21.  Fixing Common PPP Problems (Tasks) 
22.  Solaris PPP 4.0 (Reference) 
23.  Migrating From Asynchronous Solaris PPP to Solaris PPP 4.0 (Tasks) 
24.  UUCP (Overview) 
25.  Administering UUCP (Tasks) 
26.  UUCP (Reference) 
Part VI Working With Remote Systems Topics 
27.  Working With Remote Systems (Overview) 
28.  Administering the FTP Server (Tasks) 
29.  Accessing Remote Systems (Tasks) 
Part VII Monitoring Network Services Topics 
30.  Monitoring Network Performance (Tasks) 
Glossary 
Index 
 | 
      
	       	 
             
Building the sendmail.cf Configuration File
How to Build a New sendmail.cf File shows you how to build the configuration file. Although you can still use
older versions of sendmail.cf files, the best practice is to use the new format. For more details, refer to the following. 
How to Build a New sendmail.cf FileThe following procedure shows you how to build a new configuration file. 
 Note - /usr/lib/mail/cf/main-v7sun.mc is now /etc/mail/cf/cf/main.mc. 
 
- Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.  
- Stop sendmail.
# svcadm -t disable network/smtp:sendmail  
- Make a copy of the configuration files that you are changing.
# cd /etc/mail/cf/cf
# cp sendmail.mc myhost.mc - myhost
 
Select a new name for your .mc file.  
 
 
- Edit the new configuration files (for example, myhost.mc), as necessary. 
For example, add the following command line to enable domain masquerading. # cat myhost.mc
..
MASQUERADE_AS(`host.domain') - host.domain
 
Use the desired host name and domain name.  
 
In this example, MASQUERADE_AS causes sent mail to be labeled as originating from
host.domain, rather than $j.  
- Build the configuration file by using m4.
# /usr/ccs/bin/make myhost.cf  
- Test the new configuration file by using the -C option to specify the new file.
# /usr/lib/sendmail -C myhost.cf -v testaddr </dev/null While this command displays messages, it sends a message to testaddr. Only outgoing mail
can be tested without restarting the sendmail service on the system. For systems that
are not handling mail yet, use the full testing procedure in How to Test the Mail Configuration.  
- Install the new configuration file after making a copy of the original.
# cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.save
# cp myhost.cf /etc/mail/sendmail.cf  
- Restart the sendmail service.
# svcadm enable network/smtp:sendmail   
          
       |