Postfix : Host Not found

Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
    for name=mail.mydomain.com type=A: Host not found


Above is what I get when I send email to New Postfix Server.

(Host Name and Domain Name is correctly set +mxtoolbox complains for reverse DNS ).

I need to fix it ASAP. Please help.
LVL 4
amit_panjwaniAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Look whether locally that name resolves as well.
The problem s that the entry does not seem as coming from postfix.
nslookup mail.mydomain.com

Do you have local dns for mydomain.com while it is also dns served externally?
0
PapertripCommented:
Also contact your ISP and have them create a PTR record for your sending IP which matches the A record.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amit_panjwaniAuthor Commented:
@arnold - when I do nslookup - I get a list of name servers for this mail server. That should be ok.


@ papertrip - I believe thats some thing already done - anything diagnostics that can verify that
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

arnoldCommented:
No, that is the problem. The local dns server must resolve the ip rather than refer the application to another source of information.
You can configure your local name server to resolve for local subnets.
Once you correct this, you should not have this issue.
0
PapertripCommented:
You said initially that mxtoolbox said reverse did not match.  If you want to check from another external source then just put your sending IP into http://network-tools.com/ and make sure it resolves to whatever the A record is for your sending server.
0
amit_panjwaniAuthor Commented:
Allow me to compound this problem :(

I was running sendmail earlier on same server - (Same DNS settings). I was able to receive emails from Gmail and yahoo - No issues.

I was able to send emails (External mail relay)

AFTER - Switching to Postfix :

Now - I can send mails (External relay server). But I cannot receive any emails. Thats the point where I get this error : Host not found.

Please help
0
arnoldCommented:
The error than is not from postfix but from exchange?
You have to be on the system that generates the email and check its configuration.
Try to cobble together information will lead to unrelated suggestion that could make matters worse.  Run lsof -i:25 where postfix is installed an see what is being reported.
0
amit_panjwaniAuthor Commented:
@arnold I know what you are trying to suggest . I had already uninstalled sendmail - before I pushed for Postfix.

I think I have resolution. It was all ISP issue -  Static IP resolves bit differently.

I have raised ticket and they are going to resolve it in next 6 hours.

Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.