Sendmail: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
New page: On the Internet, sendmail is the most popular Unix-based implementation of the Simple Mail Transfer Protocol (SMTP) for transmitting e-mail. Configuring Smart Host<br> edit '''/etc/mail/s... |
No edit summary |
||
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 == | |||
<pre> | |||
yum install sendmail sendmail-cf | |||
</pre> | |||
=== Automatic Startup === | |||
<pre> | |||
chkconfig sendmail on | |||
</pre> | |||
= Smarthost = | |||
Configuring Smart Host<br> | Configuring Smart Host<br> | ||
edit '''/etc/mail/sendmail.mc''' | edit '''/etc/mail/sendmail.mc''' | ||
Line 7: | Line 25: | ||
</pre> | </pre> | ||
Restart Sendmail | = Compile Config = | ||
The new configuration file need to be compiled. | |||
<pre> | |||
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf | |||
</pre> | |||
== Restart Sendmail == | |||
<pre> | <pre> | ||
service sendmail restart | |||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Revision as of 03:43, 23 December 2008
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.
service exim stop chkconfig exim off
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