Sebastian: > Hello! > I?m running Postfix 2.11.0,1 on FreeBSD 10.0-RELEASE-p1 inside of a jail. > The jail is bound to an alias of the hosts loopback interface lo0. > > I stumbled onto this error message while sifting through /var/log/maillog: > > Apr 13 03:01:06 mail postfix/smtp[22641]: 4F6CD41BB: to=<root@db>, > relay=none, delay=0.17, delays=0.16/0/0/0, dsn=5.4.4, status=bounced (Host > or domain name not found. Name service error for name=db type=A: Host not > found)
Typically, this means chroot is enabled on in master.cf but you don't have the required files under /var/spool/postfix. http://www.postfix.org/DEBUG_README.html#no_chroot > I have several jails, all of them are affected by this issue. Mail > originating from the jail host, such as the output of the periodic scripts > is delivered without problem. Also, I am able to receive and send mails > from and off to other mailservers. > > First thing I checked was the name resolution inside of the jails. All > jails, including the mail jail itself can properly resolve external > domains. It is not possible to resolve any of the hostnames of the jails > though. Please show how you tested name resolution from inside a jail. Use the "script" command to make a recording. And do not test this as root. Postfix runs as an unprivileged user. Wietse