12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring Sendmail 373LISTING 18.1ContinuedLocality Name (eg, city) [Newbury]:RaleighOrganization Name (eg, company) [My Company Ltd]:TCBF Computers, Inc.Organizational Unit Name (eg, section) []:Common Name (eg, your name or your server’s hostname) []:My HostnameEmail Address []:admin@example.comNext, configuration changes in /etc/mail/sendmail.mc must be made. Uncomment thefollowing line by removing the dnl prefix:dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s’)dnlAfter removing the dnl prefix, it should look like the following:DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s’)dnlAlso uncomment the following lines so Sendmail knows how to locate the SSL certificatejust generated:define(`confCACERT_PATH’,`/etc/pki/tls/certs’)dnldefine(`confCACERT’,`/etc/pki/tls/certs/ca-bundle.crt’)dnldefine(`confSERVER_CERT’,`/etc/pki/tls/certs/sendmail.pem’)dnldefine(`confSERVER_KEY’,`/etc/pki/tls/certs/sendmail.pem’)dnlCAUTIONThe formatting of the sendmail.mc file is sensitive. Be sure not to use extra whitespaceor blank lines. Doing so will cause errors when the file is converted to thesendmail.cf file.Sendmail must be restarted for the changes to take effect. Restart it by executing theservice sendmail restart command as the root user.18Starting and Stopping the ServerSendmail can be started, stopped, and restarted with the service command as root. Afterconfiguring Sendmail, start the server with the service sendmail start command. Whenthe Sendmail service is started with this command or restarted with service sendmailrestart, changes to the configuration files in /etc/mail/ are automatically enabled aspreviously discussed.The command service sendmail status displays whether the service is running. Thecommand service sendmail reload enables any changes made to the /etc/mail/configuration files.To configure the Sendmail service to start automatically at boot time, use the followingcommand as root:chkconfig sendmail on

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!