LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-12-2020, 06:59 PM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
postfix/postfix-script: fatal: mail system startup failed


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 reload
I 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 running
I tried the solution given here but, while

Code:
sudo apt-get purge sendmail
sudo apt-get install --reinstall postfix
sudo /etc/init.d/postfix restart
ran without error, I still get the same error message.

Code:
dpkg -S `which sendmail`
returns

Code:
postfix: /usr/sbin/sendmail
and

Code:
sudo netstat -pel | grep smtp
returns

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
 
Old 03-13-2020, 01:50 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
netstat should show that postfix process master listens on port 25. Such as:
Code:
# netstat -lntp | grep 25
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1712/master
Perhaps you need to kill sendmail (but to be honest, a process with PID 1337 should never be killed).

I don't know what you want to achieve with
Code:
dpkg -S "$(sudo ps ux | grep 2212 | awk '{print $NF}')"
 
1 members found this post helpful.
Old 03-13-2020, 08:23 PM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by berndbausch View Post
netstat should show that postfix process master listens on port 25. Such as:
Code:
# netstat -lntp | grep 25
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1712/master
Perhaps you need to kill sendmail (but to be honest, a process with PID 1337 should never be killed).

I don't know what you want to achieve with
Code:
dpkg -S "$(sudo ps ux | grep 2212 | awk '{print $NF}')"
Thank you for your reply. I rebooted my instance. Now

Code:
sudo netstat -pel | grep smtp
returns

Code:
tcp        0      0 *:smtp                  *:*                     LISTEN      root       16669       1502/master
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      root       16670       1502/master
unix  2      [ ACC ]     STREAM     LISTENING     16711    1502/master         private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     16753    1502/master         private/bsmtp
Code:
sudo postfix start; sudo postfix reload
returns

Code:
postfix/postfix-script: fatal: the Postfix mail system is already running
postfix/postfix-script: refreshing the Postfix mail system
I've figured it should be

Code:
 dpkg -S "$(sudo ps ux | grep 1502 | awk '{print $NF}')"
which returns

Code:
postfix: /usr/lib/postfix/sbin/master

It would appear the problem has been resolved.

Thanks very much!
 
  


Reply

Tags
aws, postfix



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disclaimer addition on PostFix (relay server) error comes fatal: /etc/postfix/master.cf: line 12: bad transport type: content_filter=dfilt: fahasida Linux - Newbie 1 07-17-2017 07:20 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
postfix mail to postfix +mysql mail btaylor1988 Linux - Server 0 05-29-2007 06:00 PM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration