Digital Marketing

Sendmail quick start in CentOS

To start sendmail:
service sendmail startTo check version:
sendmail -d0.4 -bv rootSend mail from command line:
# sendmail -t
To: supperman@
Subject: trying 3
Hello you!
Send mail from file: put the mail in a file, for example,  sample.mail.txt, send it by
cat sample.mail.txt | sendmail -i -tInstall sendmail-cf
yum -y install sendmail-cf Allow connection from other than local host:

The default file does not allow Sendmail to accept network connections from any host other than the local computer. To configure Sendmail as a server for other clients, edit the /etc/mail/ file, and either change the address specified in the Addr= option of the DAEMON_OPTIONS directive from to the IP address of an active network device or comment out the DAEMON_OPTIONS directive all together by placing dnl at the beginning of the line. When finished, regenerate /etc/mail/ by executing the following command:
m4 /etc/mail/ > /etc/mail/sendmail.cfAfter creating a new /etc/mail/ file, restart Sendmail for the changes to take effect. The easiest way to do this is to type the following command:
/sbin/service sendmail restart


Popular posts from this blog

Make online money from the Internet