Sendmail: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
|||
Line 2: | Line 2: | ||
= Install Sendmail = | |||
<pre> | <pre> | ||
yum install sendmail sendmail-cf | yum install sendmail sendmail-cf | ||
</pre> | </pre> | ||
== Automatic Startup == | |||
<pre> | <pre> | ||
chkconfig sendmail on | chkconfig sendmail on | ||
Line 25: | Line 25: | ||
</pre> | </pre> | ||
= Restart Sendmail = | |||
<pre> | <pre> | ||
service sendmail restart | service sendmail restart |
Revision as of 00:38, 26 March 2014
On the Internet, sendmail is the most popular Unix-based implementation of the Simple Mail Transfer Protocol (SMTP) for transmitting e-mail.
Install Sendmail
yum install sendmail sendmail-cf
Automatic Startup
chkconfig sendmail on
Smarthost
Configuring Smart Host
edit /etc/mail/sendmail.mc
define(`SMART_HOST',`mail.tpgi.com.au')dnl
Compile Config
The new configuration file need to be compiled.
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Restart Sendmail
service sendmail restart