1

Topic: error DNS resolve hostname

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.84
- Linux/BSD distribution name and version: debian 8 jessie
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

Mar  3 07:17:07 mx2 postfix/submission/smtpd[15351]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:18:09 mx2 postfix/submission/smtpd[15351]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:19:06 mx2 postfix/submission/smtpd[15351]: warning: hostname mx-ll-223.205.245-78.dynamic.3bb.co.th does not resolve to address 223.205.245.78: Name or service not known
Mar  3 07:19:12 mx2 postfix/submission/smtpd[15351]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:21:17 mx2 postfix/submission/smtpd[15351]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:48:45 mx2 postfix/submission/smtpd[27107]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:49:49 mx2 postfix/submission/smtpd[25446]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:50:51 mx2 postfix/submission/smtpd[25446]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known
Mar  3 07:52:55 mx2 postfix/submission/smtpd[25446]: warning: hostname mx-ll-49.49.238-59.dynamic.3bb.co.th does not resolve to address 49.49.238.59: Name or service not known

I have try

smtp_host_lookup = native

not working.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: error DNS resolve hostname

Copy /etc/hosts to /var/spool/postfix/etc/hosts and try again.

But is hostname mx-ll-49.49.238-59.dynamic.3bb.co.th your server  hostname? If not, it's normal that some client hostname is not resolveable in dns.

3

Re: error DNS resolve hostname

It already the same

127.0.0.1   mail.company.com mail localhost localhost.localdomain

it happen after setting haproxy submission.

4

Re: error DNS resolve hostname

This log means Postfix is trying to resolve client's hostname. I don't see why it's an issue.

5

Re: error DNS resolve hostname

I have check the dns it collect.
So I thought what wrong with postfix and warning it a lot.

Do it slow down postfix?

6

Re: error DNS resolve hostname

jackavin wrote:

Do it slow down postfix?

No.

But if you have a local DNS server, it will be better.

7

Re: error DNS resolve hostname

Thank ZhangHuangbin
Can you guide me how to do this.

8

Re: error DNS resolve hostname

Setup a local Bind DNS server to cache DNS queries.

9

Re: error DNS resolve hostname

Thank you will try.