• 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

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

This is an error from the command "tail -n 100 /usr/local/psa/var/log/maillog"

Aug 12 10:39:16 server1 postfix/smtp[4256]: F400424C1D: to=<[email protected]>, relay=none, delay=298593, delays=298593/0.09/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=compubase.nl type=MX: Host not found, try again)

and when I execute above command "dig compubase.nl mx" I get the following output

# dig compubase.nl mx

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> compubase.nl mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8111
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;compubase.nl. IN MX

;; ANSWER SECTION:
compubase.nl. 3600 IN MX 10 mailwasher1.compubase.nl.

;; ADDITIONAL SECTION:
mailwasher1.compubase.nl. 1619 IN A 217.18.68.21

;; Query time: 4 msec
;; SERVER: 80.69.67.66#53(80.69.67.66)
;; WHEN: Mon Aug 12 10:50:37 2013
;; MSG SIZE rcvd: 74
 
Does the problem reproduced again after MU12 was installed? if so can you provide us MU12 autoinstaller logs.
 
Does the problem reproduced again after MU12 was installed? if so can you provide us MU12 autoinstaller logs.

Does the problem reproduced again after MU12 was installed? if so can you provide us MU12 autoinstaller logs.

After installing MU12 the problem is stille there.

This is an error from the command "tail -n 100 /usr/local/psa/var/log/maillog"
Aug 12 12:49:04 server1 courier-authdaemon: stopping authdaemond children
Aug 12 12:49:04 server1 courier-authdaemon: modules="authpsa ", daemons=5
Aug 12 12:49:04 server1 courier-authdaemon: Installing libauthpsa
Aug 12 12:49:04 server1 courier-authdaemon: Installation complete: authpsa
Aug 12 12:50:31 server1 postfix/postfix-script[8233]: refreshing the Postfix mail system
Aug 12 12:50:31 server1 postfix/master[1562]: reload -- version 2.8.14, configuration /etc/postfix
Aug 12 12:56:21 server1 postfix/pickup[8239]: EB571238B9: uid=502 from=<apache>
Aug 12 12:56:21 server1 postfix/cleanup[12014]: EB571238B9: message-id=<[email protected]>
Aug 12 12:56:22 server1 postfix/qmgr[8238]: EB571238B9: from=<[email protected]>, size=4763, nrcpt=1 (queue active)
Aug 12 12:56:22 server1 postfix/smtp[12016]: EB571238B9: to=<[email protected]>, relay=none, delay=0.11, delays=0.09/0.02/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=stafa.nl type=MX: Host not found, try again)


The output from "dig stafa.nl mx"
dig stafa.nl mx

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>> stafa.nl mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5056
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;stafa.nl. IN MX

;; ANSWER SECTION:
stafa.nl. 3600 IN MX 10 scanserv3.njama.com.
stafa.nl. 3600 IN MX 20 scanserv1.njama.com.

;; AUTHORITY SECTION:
stafa.nl. 3600 IN NS ns2.xs4all.nl.
stafa.nl. 3600 IN NS ns.xs4all.nl.

;; Query time: 4 msec
;; SERVER: 80.69.67.66#53(80.69.67.66)
;; WHEN: Mon Aug 12 12:59:08 2013
;; MSG SIZE rcvd: 129

I have tried to attache the log files from the update, but the popup for managing attachements is empty?????

So I have uploaded them to our site, you can download them here
 
I'm now updating all off our servers with MU12 and on each off our servers the problem still exists after the update has completed.

When the update has completed the first thing I've done is checking the mailqueue, and mails are getting stuck one after the other.

Output off the requested commands (see previous posts) are all the same, "host not found" and when trying the dig command all seems to be alright...
 
Im having the same issue with qmail after every Plesk update. Everytime Plesk updates SMTP login breaks.

From our mail log after Plesk micro-update #12 (on my mail account):
Aug 13 06:44:57 server cmd5checkpw: SMTP connect from xxx-xx-xx-xxx.perm.iinet.net.au [xxx.xx.xx.xxx]
Aug 13 06:44:57 server cmd5checkpw: SMTP user mail: auth FAILED from xxx-xx-xx-xxx.perm.iinet.net.au [xxx.xx.xx.xxx]

I have been running this command after every update which seems to fix the issue: /usr/local/psa/admin/sbin/mchk –with-spam

It seems to install libauthpsa which fixes the issue?
Aug 13 06:46:07 server courier-authdaemon: stopping authdaemond children
Aug 13 06:46:07 server courier-authdaemon: modules="authpsa ", daemons=5
Aug 13 06:46:07 server courier-authdaemon: Installing libauthpsa
Aug 13 06:46:07 server courier-authdaemon: Installation complete: authpsa

After running the above command (on my mail account):
Aug 13 06:47:58 server cmd5checkpw: SMTP connect from xxx-xx-xx-xxx.perm.iinet.net.au [xxx.xx.xx.xxx]
Aug 13 06:47:58 server cmd5checkpw: SMTP user mail: logged in from xxx-xx-xx-xxx.perm.iinet.net.au [xxx.xx.xx.xxx]

Can anyone shed some light on this?
 
Ok, I've reproduced the issue with
"Host or domain name not found. Name service error for name"
on our local environment and reported it to our developers (#141283 for your reference).
Hope it will be fixed as soon as possible.
Thnx for reporting.
 
Last edited:
Code:
# restorecon /etc/resolv.conf
should temporary solve the problem (without server reboot) until MU with fix will be released
 
Last edited:
Ok, I've reproduced the issue with
"Host or domain name not found. Name service error for name"
on our local environment and reported it to our developers (#141283 for your reference).
Hope it will be fixed as soon as possible.
Thnx for reporting.

Where can we track the progress on issue #141283?
 
Updated to the latest patch. Getting new errors;
Aug 20 20:08:09 HOSTNAME postfix/smtp[16955]: 2BEB324F92: host XXX.DOMAIN.TLD[XXX.XXX.XXX.XXX] said: 451 DNS temporary failure (#4.3.0) (in reply to MAIL FROM command)
Aug 20 20:08:11 HOSTNAME postfix/smtp[16955]: certificate verification failed for XXX.DOMAIN.TLD[XXX.XXX.XXX.XXX]:25: self-signed certificate
Sender address rejected: Domain not found (in reply to RCPT TO command))
Aug 20 20:10:05 HOSTNAME postfix/smtp[15734]: connect to XXX.DOMAIN.TLD[XXX.XXX.XXX.XXX]:25: Connection refused
 
Igor,

Today the issue appeared again. Has this something to do with the most recent update?

Plesk Panel version: 11.5.30 Update #23, last updated at Nov 16, 2013 03:45 AM
 
Problem appeared again today. Restarted the server and the mails where send out but I did not find the actual problem.
 
I applied the following workaround for which a server restart is NOT needed.:

1. # restorecon /etc/resolv.conf
2. (optional) # postqueue -f
 
Last edited:
I know this is an old thread and apologies if this reply isn't allowed but I wanted to add what fixed this error for me.

I had an old email that did not work anymore tied to the Scheduled Tasks for one of my domains. I inserted the old email that didn't work long ago and forgot about it and so the system was trying to send an email every time the cron ran to the old email that no longer worked. I went through all the Scheduled Tasks and changed the old email and the error stopped.

Another thing you can do is look for an old email you may have used in the plesk database, this will give you an idea of where it is so you can get it changed.
 
Back
Top