The original intention of writing this article is to read that sendmail is complex. I have successfully configured the sendmail server in a more concise and concise manner, hoping to help you with your learning (setting the cost ground in RHEL5) [root @ mail ~] # Fuqin liquor & nbs
The original intention of writing this article is to read that sendmail is complex. I have successfully configured the sendmail server in a more concise and concise manner, hoping to help you with your learning (setting the cost ground in RHEL5)
[Root @ mail ~] # Fuqin liquor cooking // experiment environment: RHLE5
Step 1: Install the Sendmail server
(1) run the rpm command to install Sendmail. install cyrus-sasl, sendmai, and sendmail-cf software packages in RHLE5 with system-config-packages, which are cyrus-sasl-2.1.22-4.i386, sendmail-8.13.8-2.e15.i386, and sendmai-cf-8.13.8-2.e15.i386; install sendmail in RHEL4, the sendmail-cf and sendmail-doc packages are recommended.
(2) domain name settings:
1. Add an MX record to the DNS server
@ In mx 5 mail.test.com
Mail.test.com in a 192.168.1.102
2. Set the local-host-names file vi/etc/mail/local-host-names // to add the domain name that the email server provides services.
Test.com
3. enable the network interface vi/etc/mail/Sendmail. mc of the sendmail server.
// Search for the set row
DAEMON_OPTIONS ('port = smtp, Addr = 127.0.0.1, Name = MTA ') dn1 changes 127.0.0.1 to 0.0.0.0
// Even if the server can provide services for all network interfaces of the host (0.0.0.0)
(3) Configure SMTP authentication for Senmail
Vi/etc/mail/sendmail. mc
// Search for the set row
Dnl TRUST_AUTH_MECH ('external DIGEST-MD5 login plain ') dnl
Dnl define ('confauth _ MECHANISMS ', 'external GSSAPI DIGEST-MD5 CRAM-MD5 login plain') dnl
Remove the dnl of the two rows // in the sendmail File, dnl indicates that the behavior comment line is invalid. Therefore, you can enable the corresponding setting line by removing the dnl string at the beginning of the line.
* In RHEL4 * 5, the sendmail. conf configuration file setting uses the saslauthd service program to provide the user's authentication level. Therefore, the sasaauthd service must be started.