postfix/postfix-script: fatal: mail system startup failed
by OtagoHarbour from LinuxQuestions.org on (#50MV5)
I am using 16.04.4 LTS (Xenial Xerus) as an instance on AWS EC2. I have set up AWS SES (Simple Email Server).
When I run
Code:sudo postfix start; sudo postfix reloadI get
Code:postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-master.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-global.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./sbin/lmtp
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-util.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-tls.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-dns.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/sbin/./lmtp
postfix/postfix-script: starting the Postfix mail system
postfix/postfix-script: fatal: mail system startup failed
postfix/postfix-script: fatal: the Postfix mail system is not runningI tried the solution given here but, while
Code:sudo apt-get purge sendmail
sudo apt-get install --reinstall postfix
sudo /etc/init.d/postfix restartran without error, I still get the same error message.
Code:dpkg -S `which sendmail`returns
Code:postfix: /usr/sbin/sendmailand
Code:sudo netstat -pel | grep smtpreturns
Code:tcp 0 0 localhost:smtp *:* LISTEN root 16288 1337/sendmail: MTA:and
Code:dpkg -S "$(sudo ps ux | grep 2212 | awk '{print $NF}')"returns
Code:dpkg-query: no path found matching pattern


When I run
Code:sudo postfix start; sudo postfix reloadI get
Code:postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-master.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-global.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./sbin/lmtp
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-util.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-tls.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/./libpostfix-dns.so.1
postfix/postfix-script: warning: group or other writable: /usr/lib/postfix/sbin/./lmtp
postfix/postfix-script: starting the Postfix mail system
postfix/postfix-script: fatal: mail system startup failed
postfix/postfix-script: fatal: the Postfix mail system is not runningI tried the solution given here but, while
Code:sudo apt-get purge sendmail
sudo apt-get install --reinstall postfix
sudo /etc/init.d/postfix restartran without error, I still get the same error message.
Code:dpkg -S `which sendmail`returns
Code:postfix: /usr/sbin/sendmailand
Code:sudo netstat -pel | grep smtpreturns
Code:tcp 0 0 localhost:smtp *:* LISTEN root 16288 1337/sendmail: MTA:and
Code:dpkg -S "$(sudo ps ux | grep 2212 | awk '{print $NF}')"returns
Code:dpkg-query: no path found matching pattern