Code: Select all
sudo mailq
Try stopping postfix, watching your /var/mail/mail.log and starting postfix. It usually will give you a hint why it's not running.
Code: Select all
sudo mailq
Code: Select all
telnet localhost 25
Code: Select all
*timestamp* SERVERNAME postfix/master[MISC PORT]: fatal: bind 0.0.0.0 port 25: Address already in use
Code: Select all
sudo netstat -tulpn
Code: Select all
sudo netstat -tulpn|grep :25
Code: Select all
sudo ls -l /proc/PutPidNumberHere/exe
Code: Select all
[root@abc1]# netstat -tulpn|grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 27899/master
tcp 0 0 ::1:25 :::* LISTEN 27899/master
[root@abc1]# ls -l /proc/27899/exe
lrwxrwxrwx 1 root root 0 Jul 22 13:56 /proc/27899/exe -> /usr/libexec/postfix/master
Code: Select all
apt-get purge sendmail
Code: Select all
sudo apt-get purge sendmail*
Code: Select all
kill putPIDhere
Code: Select all
kill -9 putPIDhere