LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2017, 11:19 AM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Rep: Reputation: 16
Question Postfix suddenly can't send mails


Hi all,

I have an aging CentOS5 system, which acts as an internal mail (Postfix) relay and VPN server. It's ran for years very reliably, but today, it suddenly stopped sending mails out.

The mailq is growing and I can't see why.

Only two people have root access to this server (me and my colleague) and neither of us are aware of anything we've done to upset it.

Since mails stopped being sent on, the following appears in our maillog:

"
Sep 7 15:12:39 mail1 postfix/smtp[8702]: fatal: unknown service: smtp/tcp
Sep 7 15:12:40 mail1 postfix/qmgr[6772]: warning: premature end-of-input on private/smtp socket while reading input attribute name
Sep 7 15:12:40 mail1 postfix/qmgr[6772]: warning: private/smtp socket: malformed response
Sep 7 15:12:40 mail1 postfix/qmgr[6772]: warning: transport smtp failure -- see a previous warning/fatal/panic logfile record for the problem description
Sep 7 16:12:40 mail1 postfix/master[5979]: warning: process /usr/libexec/postfix/smtp pid 8701 exit status 1
Sep 7 16:12:40 mail1 postfix/master[5979]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
"

The Postfix config is largely default. It isn't chrooted.


I have:
Restarted Postfix.
Restarted iptables (and openvpnas).
Rebooted entire server.
Checked existence of /etc/services exists - it contains the smtp service.

I am weary of making drastic changes, as, like I say, it's ran for years without incident. But am prepared to do so now!

Any suggestions would be appreciated.

Thank you!

Regards,

Elliot
 
Old 09-07-2017, 11:39 AM   #2
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
OS agrees that Postfix is my default MTA:

[root@mail1 yum.repos.d]# alternatives --config mta

There are 2 programs which provide 'mta'.

Selection Command
-----------------------------------------------
* 1 /usr/sbin/sendmail.sendmail
+ 2 /usr/sbin/sendmail.postfix
 
Old 09-07-2017, 11:40 AM   #3
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
I can telnet out to SMTP servers okay:

[root@mail1 postfix]# telnet aspmx.l.google.com 25
Trying 74.125.140.26...
Connected to aspmx.l.google.com (74.125.140.26).
Escape character is '^]'.
220 mx.google.com ESMTP r8si2182368wrc.0 - gsmtp
QUIT
221 2.0.0 closing connection r8si2182368wrc.0 - gsmtp
Connection closed by foreign host.
 
Old 09-07-2017, 11:44 AM   #4
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
Privileges on /etc/services seem okay (Postfix should be able to read it):

[root@mail1 etc]# ls -lha services
-rw-r--r-- 1 root root 354K Sep 7 15:57 services
 
Old 09-07-2017, 01:15 PM   #5
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
I think I have got to the bottom of this.

I believe a script we have running, which chmod's and chown's a directory, failed, whereby the variable holding the directory path was empty, so / had the privileges change applied!
Resetting the privileges on / has sorted it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
postfix can't receive mails but can send mails satimis Linux - Server 9 02-09-2012 09:11 AM
[SOLVED] Debian: configuring postfix to send e-mails brgsousa Linux - Software 1 10-18-2010 12:07 PM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 08:38 PM
My Postfix mailserver can't send out mails directly! gubak Linux - Networking 4 03-28-2006 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:50 AM.

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