Sendmail: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
On the Internet, sendmail is the most popular Unix-based implementation of the Simple Mail Transfer Protocol (SMTP) for transmitting e-mail.
On the Internet, sendmail is the most popular Unix-based implementation of the Simple Mail Transfer Protocol (SMTP) for transmitting e-mail.


= Prerequisite =
Make sure that the default SMTP appliction is disabled.
<pre>
service exim stop
chkconfig exim off
</pre>


== Install Sendmail ==
= Install Sendmail =
<pre>
<pre>
yum install sendmail sendmail-cf
yum install sendmail sendmail-cf
</pre>
</pre>


=== Automatic Startup ===
== Automatic Startup ==
<pre>
<pre>
chkconfig sendmail on
systemctl enable sendmail
</pre>
</pre>


Line 27: Line 21:
= Compile Config =
= Compile Config =
The new configuration file need to be compiled.
The new configuration file need to be compiled.
<br>
The preferred method is
<pre>
sendmailconfig
</pre>
<pre>
<pre>
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
</pre>
</pre>


== Restart Sendmail ==
= Restart Sendmail =
<pre>
<pre>
service sendmail restart
systemctl restart  sendmail
</pre>
</pre>


[[Category : Linux]]
[[Category : Linux]]

Latest revision as of 05:13, 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

systemctl restart  sendmail