LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2018, 04:35 PM   #1
bc888
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Rep: Reputation: Disabled
Email Service Unavailable - Centos7 - No errors in logs.


Good afternoon,

I'm running CentOS7 and have a perplexing issue. All emails sent to my server from external places (iCloud) are bounced with Service Unavailable. All server to server mail is bounced. All mail sent to example.com from example.com are bounced. I've deleted the mail queue. maillog is showing no errors. If I refresh the mail queue every so often it shows entries, but postdate -vf shows that the id's are unavailable Mail tools like MxToolbox tell me that the server is reachable and properly configured. Dovecot appears to be working because I get the bounced messages. Here's what I have.

Dovecot
PostFix
OpenDKIM
Spamassassin
ClamAV

Thank you so much for shedding light on how to even start addressing this issue!

Bruce
 
Old 04-22-2018, 11:19 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Did you have an MX record?

Is port 25 isn't open to your server? The typical ISP blocks mail server ports.
 
Old 04-23-2018, 04:58 AM   #3
bc888
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello,

Yes, I hava a resolving MX record and PTR record. The DNS and queries to the MTA all resolve properly. None of my ports are blocked. I have port 25 and port 587 (submission) configured.

Bruce
 
Old 04-23-2018, 10:01 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
What do the bounce messages say, exactly? Which mail server is sending them?
Paste the whole bounce message here, please.

Last edited by scasey; 04-23-2018 at 10:02 AM.
 
Old 04-23-2018, 10:52 AM   #5
bc888
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello, here's the bounce message. They are being generated by my domain.

-----------------------------------------------------

This is the mail system at host mail.example.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<info@example.com>: service unavailable
Reporting-MTA: dns; mail.example.com
X-Postfix-Queue-ID: 3465A40505B2D
X-Postfix-Sender: rfc822; info@example.com
Arrival-Date: Mon, 23 Apr 2018 03:18:58 -0700 (MST)

Final-Recipient: rfc822; info@example.com
Original-Recipient: rfc822;info@example.com
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix; service unavailable

From: Elyon Research <info@example.com>
Subject: DKIM
Date: April 23, 2018 at 3:18:55 AM MST
To: info@example.com


Dkim
 
Old 04-23-2018, 12:31 PM   #6
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Quote:
Originally Posted by bc888 View Post
Hello,

Yes, I hava a resolving MX record and PTR record. The DNS and queries to the MTA all resolve properly. None of my ports are blocked. I have port 25 and port 587 (submission) configured.

Bruce
Can you telnet from some external IP address, like from a mobile phone network, to your mail server's ports? Again, most ISPs block mail server ports unless explicitly requesting opening.

To further debug sending mail, you need to learn how to send mail via telnet so you can see the interaction/session on both sides and figure out what's going on.
 
Old 04-23-2018, 04:56 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
If your domain is sending the bounce messages, there's obviously not a problem accessing port 25.

One possibility is that the mail is being rejected by either spamd or clamd ... Unless specially configured, spam and/or clam rejections often just use "5.3.0 service unavailable" in the bounce messages.

Check the spam and clamav logs for entries at the time of the rejections. If it's happening to all incoming mail, check the spamassassin default limits.
 
Old 04-23-2018, 05:00 PM   #8
bc888
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks Sean,

I'm able to telnet in like previously suggested. I upgraded to current versions of Postfix and Dovecot this morning and changed the log levels. Working through issues in the logs.

Thank you,

Bruce
 
Old 04-24-2018, 01:41 AM   #9
bc888
LQ Newbie
 
Registered: Apr 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile Thanks all!

I got it working, Phew!. I upgraded to the latest dovecot/postfix/opendkim. There was a TLS issue that was causing no ALPN to be negotiated.
 
  


Reply



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
CentOS7 error logs / system logs AdultFoundry Linux - Newbie 6 06-22-2016 07:10 AM
Most standard way of setting up email on CentOS7 AdultFoundry Linux - Newbie 1 12-10-2015 07:55 PM
503 Service Unavailable backtracklinux Linux - Software 2 09-20-2013 03:36 AM
Mailing logs or errors to real email addresses robthebob Linux - Networking 3 03-12-2006 05:46 PM
Service unavailable tintin Linux - Newbie 2 11-25-2002 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:12 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