• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

9.2.2 All Emails from Apached Not delivered

R

RaymondB

Guest
I have our normal email programs on our desktops working.

When we rely on Apache to send us an email via a PHP program it never arrives.

What happened? How can I fix this?

I checked the queue and a number of bounces messages are coming back like this:

Reporting-MTA: dns; 22-22-22-123.xxx.dedicated.xxx.com
X-Postfix-Queue-ID: 58D1C1BF0D52
X-Postfix-Sender: rfc822; 22-22-22-123.xxx.dedicated.xxx.com
Arrival-Date: Tue, 29 Sep 2009 18:06:37 -0700 (PDT)

Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.0.0
Remote-MTA: dns; mailin-01.mx.aol.com
Diagnostic-Code: smtp; 550 REQUESTED ACTION NOT TAKEN: DNS FAILURE
 
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
 
The answer is not what you have suggested.

The problem is that postfix is not configured correctly. Whether plesk is supposed to support this or not is debatable from a user's standpoint. I would imagine there should be a configuration for setting this and discovering it. However you have pointed me at the incorrect document.

The issue is that Postfix was defaulting to "localhost" for the domain. When the reverse DNS check was done by AOL the emails were resolving to the localhost aka "name_of_computer" and not my domain.

I followed the following steps to resolve this issue. None of which had to do with anything but a problem regarding postfix configuration/plesk setup.
I did ensure that the DNS MX records were pointing to mail.domain.com in my case. They already were. So I could check that off the list without touching a thing.
Then I went to http://www.mxtoolbox.com/Public/Tools/MxLookup.aspx and found out that my Reverse DNS did not match Banner. Meaning when AOL was doing a reverse DNS Check it was returning something other than my MX record for the server.. the localhost aka "name_of_computer" and not my domain. Source of the problem.
So I found this link which gave me tips on how to configure postfix: http://www.howtoforge.com/forums/archive/index.php/t-6962.html

I ran:
postconf -e 'mydestination = $myhostname, localhost.$mydomain, localhost'
postconf -e 'myhostname = mail.mydomain.com'
postconf -e 'mydomain = $myhostname'
and restarted Postfix afterwards.

This solved the Reverse DNS check/Reverse DNS matches SMTP Banner problem. The emails stopped being rejected and were being delivered shortly afterward.
 
Back
Top