Erecting SendMail Server
This time we'll learn about the configuration of the SendMail servers in the Linux system. (Mail server's IP192.168.1.2 host domain name is mail.ltest.com)
Premise: First of all, we put the DNS server installation OK can be resolved, do not understand the look http://www.cublog.cn/u/21675/showart_263507.html
1, first install the sendmail required software
[Root@localhost ~]# rpm-q sendmail M4
Sendmail-8.13.1-2
M4-1.4.1-16 has been installed by default and will need to mount the 4th CD-ROM to install sendmail-related software
[Root@localhost rpms]# RPM-IVH sendmail-*
Warning:sendmail-cf-8.13.1-2.i386.rpm:v3 DSA Signature:nokey, key ID db42a60e
Preparing ... ########################################### [100%]
1:sendmail-doc ########################################### [33%]
2:SENDMAIL-CF ########################################### [67%]
3:sendmail-devel ########################################### [100%]
2. Modify the/etc/mail/local-hosts-name file.
Increase the FQDN of the local domain and host, remembering that only the FQDN and domain name FQDN of the localhost, and do not add other domains, the user unknown error occurs when sending mail to Outland:
[Root@localhost named]# Cat/etc/mail/local-host-names
# Local-host-names-include all aliases to your machine here.
Ltest.com
3, change the/ETC/MAIL/SENDMAIL.MC file and modify the following places:
daemonportsoptions=port=smtp,addr=127.0.0.1, NAME=MTA changed to:
Daemonportsoptions=port=smtp,addr=yourip or 0.0.0.0, Name=mta.
Then M4/ETC/MAIL/SENDMAIL.MC >/ETC/MAIL/SENDMAIL.CF