I have a Postfix mail gateway behind a security appliance. The mail gateway has a published public IP of the security appliance.
On all my Postfix servers I am routing mail for root to an off network email address using an entry in /etc/aliases They all work fine except for the root account on the gateway. It seems that the gateway is doing a dns lookup and trying to send mail to it's own root to the IP of the security appliance and of course is getting no response rather than using the entry in /etc/aliases. Nov 19 12:06:53 mail postfix/smtp[29722]: connect to mail.example.org[IP of security appliance]: Connection timed out (port 25) Nov 19 12:06:53 mail postfix/smtp[29722]: 278A11BFA74: to=< r...@mail.example.org>, relay=none, delay=30, delays=0.09/0/30/0, dsn=4.4.1, status=deferred (connect to mail.example.org[IP of security appliance]: Connection timed out) How can I get mail to root on the gateway to send out? This is only mail generated on the gateway itself to root. r...@mail.example.org will never need to receive external mail. It only needs to send out server notifications.