Build Sendmail Server

Author:Liangzhi Zou
Date: 2001/31/7


 Sendmail is an electronic mail transport agent.Sendmail sends a message to one or more recipients,routing the message over whatever networks are necessary. Sendmail does internetwork forwarding as necessary to deliver the message to the correct place. Sendmail is notintended as a user interface routine;other programs provide user-friendly front ends; sendmail is used only to deliver pre-for-matted message.

 The /etc/sendmail.cf configuration file contains the configuration information for the sendmail command. Information contained in this file includes such items as the host name and domain,and the sendmail rule sets.But this sendmail.cf file is too big and complex to common user,we usually use CF tool to make sendmail.cf file.

1.source
 sendmail-8.9.3-20.i386.rpm
 CF-3.7Wp12.tar.gz

2.Modify the sendmail.dev
  #tar xvzf CF-3.7Wp12.tar.gz
  #cd CF-3.7Wp12
  #cd Standards
  #cp sendmail-v8.def ../sendmail.def(because sendmail version is 8.9.3)
  #cd ..
  #vi sendmail.def(reference to doc/MANUAL)
   #sendmail.def
   ...
   ### type of sendmail.cf
   CF_TYPE=R8V8
   ...
   #os_type (choose a file name in ostype directory)
   OS_TYPE=linux-redhat
   #[general]
   #with sendmail.mx(yes/no)
   MX_SENDMAIL=yes
   #local domain name(defined automatically)
   MY_DOMAIN='***.***'
   #local host name(defined atuomoatically)
   MY_NAME='***'
   #default my official SMTP hostname
   OFFICAL_NAME='$w.$m'
   ...
   #accept mails which delivered to user@$j
   ACCEPT_OFFICIAL=yes
   ...
   #[address]
   #default from-address(can be $j,$m or another generic address)
   FROM_ADDRESS='$m'
   #apply FROM_ADDRESS for receipients(yes/no)
   RECIPIENT_GENERIC=yes
   ...
   #[acceptaddr]
   #addresses which should be accepted as local
   ACCEPT_ADDRS='$m'
sample

3.make sendmail.cf
  #make sendmail.cf

4.copy Modified sendmail.cf to directory /etc
  #cp sendmail.cf /etc/

5.Set Sendmail Server automatically ON in runlevel 345,even the system be reboot.
  #chkconfig --level 345 sendmail on
Hosted by www.Geocities.ws

1