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@
goyun.info
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 sendmail.cf 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/sendmail.mc file, and either change the address specified in the Addr= option of the DAEMON_OPTIONS directive from 127.0.0.1 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/sendmail.cf by executing the following command:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cfAfter creating a new /etc/mail/sendmail.cf 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

Comments

Popular posts from this blog

How to delete / clear queue of PowerMTA