PDA

View Full Version : Linux CentOS with HyperVM(lxlabs) do not send an e-mail



Fli
04-25-2017, 05:51 PM
Linux CentOS with HyperVM(lxlabs) do not send an e-mail

I tried to send an e-mail from within Linux command line. It never arrived and command "mail" not contained any Delivery failure mail.
I did command "service postfix status" and it returned error:

master dead but pid file exists
# service postfix restart

Shutting down postfix: [FAILED]
Starting postfix: [ OK ]
But when i check status it is stopped. So i watch log file:
# tail /var/log/maillog

Apr 25 16:34:31 scvpsnode postfix/postfix-script[311561]: starting the Postfix mail system
Apr 25 16:34:31 scvpsnode postfix/master[311564]: fatal: bind 127.0.0.1 port 25: Address already in use

# netstat -tlnp|grep 25

tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 316012/xinetd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 16081/sendmail
tcp 0 0 0.0.0.0:2525 0.0.0.0:* LISTEN 35217/exim4
tcp 0 0 :::25 :::* LISTEN 835794/master
tcp 0 0 :::2525 :::* LISTEN 35217/exim4
tcp 0 0 ::1:25 :::* LISTEN 812180/exim4

I see the "sendmail" so i did:
service sendmail stop
then:
service postfix restart
then:
service postfix status

and i see it is running and my e-mails are now delivered.

I disabled sendmail by redhat/centos command: chkconfig sendmail off