LinuxQuestions.org
Visit Jeremy's Blog.
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 12-06-2022, 12:05 PM   #1
willbprog127
Member
 
Registered: Dec 2013
Location: Pacific Northwest, USA
Distribution: Debian Linux, FreeBSD, macOS
Posts: 30

Rep: Reputation: Disabled
Exclamation postfix - Incoming mail from other servers 'stuck'


Greetings everyone,

Not so much a question but something I found the other day. Some background...

Up until about a week ago postfix was running fine on our public web / mail server. Then after that it stopped processing incoming mail. Outgoing mail went out fine but whenever I'd send a test message through Gmail or elsewhere, my mail would just get 'stuck' and never process. Other senders said they got a bounce message but I personally never received one -- my message just got lost to the ether.

After some troubleshooting, I found that the following line in /etc/postfix/main.cf was causing the problem:

Code:
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_invalid_hostname,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_sender_domain,reject_rbl_client sbl.spamhaus.org,reject_rbl_client cbl.abuseat.org
When I removed the reject_rbl_client entries from the end of this config line, everything went back to normal and mail is now processed near-instantaneously. Yes, I realize that my system can no longer check the third-party blacklists, but that's a low priority compared to actually receiving business emails!

I'm posting this message in case anyone in the future has a similar issue. If you temporarily remove these two third-party blacklists you can test if they are causing the issue. I personally think it's a bad idea for postfix to include third-party blacklists in the default install without some sort of automated mechanism to skip them if they are acting up as they were/are for me. Since postfix doesn't have a semi-modern way to interact with them (for bug verifying / reporting, etc) I haven't bothered to contact them -- "Posts from non-members will be silently deleted" -- not a very inviting attitude...

Thanks!
 
Old 12-07-2022, 01:37 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Where did you get your "default install" from?
I don't recall any of that in a fresh main.cf - you're supposed to configure it to your own requirements.
 
Old 12-07-2022, 11:04 AM   #3
willbprog127
Member
 
Registered: Dec 2013
Location: Pacific Northwest, USA
Distribution: Debian Linux, FreeBSD, macOS
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
Where did you get your "default install" from?
I don't recall any of that in a fresh main.cf
Hi descendant_command!

You know, that's a good question. I thought it came directly from postfix (I did a `grep -r spamhaus *` command and had lots of hits on the postfix's source code) but I'm not actually seeing it in the original main.cf included in the source. It's possible my VPS provider did this? At any rate, I didn't do this myself and momentarily thought this was part of an Ubuntu patch, but I'm not seeing any Ubuntu code touching main.cf. Weird. I stand corrected -- this *isn't* part of the default install then, not from Ubuntu or postfix anyway...

Still, a cautionary tale to those who may encounter a similar issue.

Last edited by willbprog127; 12-09-2022 at 10:21 AM. Reason: Spellz iz hard
 
Old 12-09-2022, 01:03 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Free services tend to disappear over time as they gain popularity and decide to monetise this, usually for their new owners...
I've seen a few RBL's go AWOL over the years.
Well worth being aware of what external services your kit is relying on.

Last edited by descendant_command; 12-09-2022 at 01:04 AM.
 
  


Reply

Tags
blacklist, 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
I want few users which is in aliases can send mail to each other but not other mail users in postfix Chitra Gurung Linux - Server 4 07-07-2016 01:26 PM
Want to run a perl during the outgoing mail and incoming mail in postfix server shivnamha Linux - Server 1 02-10-2013 01:53 AM
Postfix Or Qmail - : How to configure multiple mail servers for Incoming and outgoing manya Linux - Server 1 05-17-2011 04:29 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM
Postfix mail server not accepting incoming mail from the external interface rexmundi Linux - Networking 7 12-22-2003 03:41 PM

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

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