Menu

Monday, November 28, 2011

Installing SMTP server - Sendmail on Linux


Simple Mail Transfer Protocol is an international standard to send mails between servers using Internet Protocol (IP). 

“sendmail” is an application on the Linux system which uses SMTP to send mails.

How to install SMTP on Linux?
# yum install sendmail

How to start the SMTP service on Linux?
# service sendmail start    OR /etc/init.d/sendmail start

How to stop the SMTP service on Linux?
# service sendmail stop     OR /etc/init.d/sendmail stop

How to check the status of the SMTP service on Linux?
# service sendmail status   OR /etc/init.d/sendmail status

What is the default port for the SMTP server?
25


How to check the SMTP port is listening or not on Linux?
netstat –nat | grep 25