Hello forum,
I'm running a FreeBSD 10.0-RELEASE jail host with sysutils/ezjail. The jails have been bound to the loopback interface of the jail host, pf is set up to do NAT and port-forwarding for the different services. I noticed that mails originating from any of the jails are bounced. This way, I only get the status reports from the jail host. I'd like to fix this.
This is the error message in question:
I tried putting all jail hostnames into the /etc/hosts of the mail server jail, but this did not change the situation.
Output of
In addition to this, I added the "MAILTO=" parameter to the /etc/crontab of each jail, to no effect. I also set /etc/mail/aliases of each jail to forward all mail for root to a valid mail address.
What else could I do to fix this?
Sincerely,
-frozen
I'm running a FreeBSD 10.0-RELEASE jail host with sysutils/ezjail. The jails have been bound to the loopback interface of the jail host, pf is set up to do NAT and port-forwarding for the different services. I noticed that mails originating from any of the jails are bounced. This way, I only get the status reports from the jail host. I'd like to fix this.
This is the error message in question:
Code:
Apr 20 03:01:01 mail postfix/smtp[38631]: 2263F48F7: to=<root@somejail>, relay=none, delay=0.15, delays=0.14/0/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=somejail type=A: Host not found)
I tried putting all jail hostnames into the /etc/hosts of the mail server jail, but this did not change the situation.
Output of
cat /usr/jails/mail/etc/hosts
:
Code:
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
10.0.0.13 mail
10.0.0.23 jail1
10.0.0.33 jail2
10.0.0.43 somejail
In addition to this, I added the "MAILTO=" parameter to the /etc/crontab of each jail, to no effect. I also set /etc/mail/aliases of each jail to forward all mail for root to a valid mail address.
What else could I do to fix this?
Sincerely,
-frozen