The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-01-2008
incredible incredible is offline Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,126
1)Make sure that the server has a Fully Qualified Domain Name (FQDN).
2)route ADD "network" MASK "subnet mask" "gateway ip"
3)make sure you have mailhost defined in your naming system (local files, NIS, NIS+, DNS, etc.).

Our change was to the sendmail.cf file as follows:

1. Peform the following on the subject systems.

# cd /etc/mail/cf/cf
# cp sendmail.mc `hostname`.mc
# cp submit.mc `hostname`.submit.mc

2. modify `hostname.mc as follows:

Change the current entry, listed below, to reflect the new entry listed
below:

Current entry:

define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl

New entry:
define(`SMART_HOST', `mailhost$?m.$m$.')dnl

3. After the change:
# make `hostname`.cf `hostname`.submit.cf

4. Make a backup of the existing sendmail files in /etc/mail.
# cd /etc/mail
# cp sendmail.cf sendmail.cf~
# cp submit.cf submit.cf~

5. Copy the newly edited files.
# cd /etc/mail/cf/cf
# cp `hostname`.cf /etc/mail/sendmail.cf
# cp `hostname`.submit.cf /etc/mail/submit.cf

restart sendmail daemon/service