• 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

Postfix says: MX: Host not found, try again

rgruyters

Basic Pleskian
Everytime Plesk installs updates users can't sent any e-mail after each update.
When a user tries to send an e-mail, the logfile shows:

Code:
Aug  6 07:10:06 server postfix/smtp[25791]: DB8D324D1D: to=<[email protected]>, relay=none, delay=0.22, delays=0.16/0.06/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=domain.tld type=MX: Host not found, try again)

I'm running Plesk version 11.5.30 Update #10 (last updated at Aug 6, 2013 07:10 AM) on a CentOS 6.4.
 
Make sure that /etc/resolv.conf contains any active nameserver.
 
Already checked and both nameservers resolve.

I noticed when I reboot the server the mail gets sent out, but this can't be a solution after each update.
 
Last edited:
We have the same problem at our company server. Postfix started to keep thing in the queue after upgrading to 11.5.30. All with the same problem;
"Host or domain name not found. Name service error for name=domain.tld type=MX: Host not found, try again"

Anyone got a solution?

EDIT:
I can resolve to hosts when; dig domain.tld mx
 
Last edited:
Same problem here also. Trouble started week or two ago, after an update. Now everytime plesk installs a new update al outgoing mails get stuck in de postfix queue.
The only thing that we can do then is rebooting the whole server.

Hope that the problem get fixed real quick.
 
As @ErnstR stated I can also resolve the MX record of the particular domain.

As @CompubaseS as well stated this problem started just a week ago. Our problem started since last Wednesday.
 
Maybe bind was not started? And after reboot bind start again?
 
Maybe bind was not started? And after reboot bind start again?

Bind isn't the problem. We don't have bind running, and after a reboot, when all the mails are send, bind stil isn't running.

Edit: we don't even have bind installed.
 
Last edited:
Output of

# tail -n 100 /usr/local/psa/var/log/maillog

with initial error message would be useful.
 
Output of

# tail -n 100 /usr/local/psa/var/log/maillog

with initial error message would be useful.

This is the log from yesterday when I try to send an email to my private emailaddress

Aug 6 13:25:08 server6 postfix/smtpd[21033]: connect from unknown[188.204.50.230]
Aug 6 13:25:08 server6 postfix/smtpd[21033]: 5D6FF24DD7: client=unknown[188.204.50.230], sasl_method=CRAM-MD5, [email protected]
Aug 6 13:25:08 server6 postfix/cleanup[21036]: 5D6FF24DD7: message-id=<[email protected]>
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: handlers_stderr: SKIP
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: SKIP during call 'check-quota' handler
Aug 6 13:25:08 server6 qmail-queue[21039]: scan: the message(drweb.tmp.oJiIgF) sent by [email protected] to [email protected] is passed
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: handlers_stderr: PASS
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: PASS during call 'drweb' handler
Aug 6 13:25:08 server6 postfix/qmgr[1478]: 5D6FF24DD7: from=<[email protected]>, size=792, nrcpt=1 (queue active)
Aug 6 13:25:08 server6 postfix/smtp[21024]: 5D6FF24DD7: to=<[email protected]>, relay=none, delay=0.36, delays=0.36/0/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=jorgvloet.nl type=MX: Host not found, try again)
Aug 6 13:25:08 server6 postfix/smtpd[21033]: disconnect from unknown[188.204.50.230]
 
This is the log from yesterday when I try to send an email to my private emailaddress

Aug 6 13:25:08 server6 postfix/smtpd[21033]: connect from unknown[188.204.50.230]
Aug 6 13:25:08 server6 postfix/smtpd[21033]: 5D6FF24DD7: client=unknown[188.204.50.230], sasl_method=CRAM-MD5, [email protected]
Aug 6 13:25:08 server6 postfix/cleanup[21036]: 5D6FF24DD7: message-id=<[email protected]>
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: handlers_stderr: SKIP
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: SKIP during call 'check-quota' handler
Aug 6 13:25:08 server6 qmail-queue[21039]: scan: the message(drweb.tmp.oJiIgF) sent by [email protected] to [email protected] is passed
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: handlers_stderr: PASS
Aug 6 13:25:08 server6 /usr/lib64/plesk-9.0/psa-pc-remote[1237]: PASS during call 'drweb' handler
Aug 6 13:25:08 server6 postfix/qmgr[1478]: 5D6FF24DD7: from=<[email protected]>, size=792, nrcpt=1 (queue active)
Aug 6 13:25:08 server6 postfix/smtp[21024]: 5D6FF24DD7: to=<[email protected]>, relay=none, delay=0.36, delays=0.36/0/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=jorgvloet.nl type=MX: Host not found, try again)
Aug 6 13:25:08 server6 postfix/smtpd[21033]: disconnect from unknown[188.204.50.230]

The MU11 has been released today
CompubaseS, could you please provide us the _output_ of the command below if the problem with same error in log will be reproduced again:
Code:
 # dig domain.tld mx

//where <domain.tld> is the domain where you are trying to send email
 
We've installed MU11 and it seems the problems have been solved. Can anyone confirm this?

Just installed MU11 and it didn't give any problems with the mailqueue. For the time beeing we will keep updating plesk manualy until we are shure the problem doesn't come back.
 
On our Plesk panel, the MU11 hasn't yet shown up. Can we force this?

# /usr/local/psa/admin/sbin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base
 
OS CentOS 6.2 (Final)
Panel version 11.5.30 Update #11, last updated at Aug 12, 2013 06:14 PM

Still see the issues

Aug 12 18:15:44 xxxxx postfix/smtp[4760]: B9054154D1A3: to=<[email protected]>, relay=none, delay=0.6, delays=0.54/0.06/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=xxxxx.com type=MX: Host not found, try again)
 
Back
Top