Sendmail: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Line 9: Line 9:
== Automatic Startup ==
== Automatic Startup ==
<pre>
<pre>
chkconfig sendmail on
systemctl enable sendmail
</pre>
</pre>



Revision as of 05:12, 29 June 2015

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

systemctl enable sendmail

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.
The preferred method is

sendmailconfig
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Restart Sendmail

service sendmail restart