[EMAIL PROTECTED] writes:
>I have an RH7.2 system sitting behind a PIX firewall and I need it to
>resolve the mail server hostname so it can send email to internal
>accounts.  I
>have the mail server listed in /etc/hosts with the internal IP, however
>sendmail still resolves the hostname to the external IP.  Any ideas what
>needs
>to happen so that sendmail resolves the mail server hostname to the
>internal
>IP, not the external one?

If you 'ping' the hostname does it return the internal address? If so, and
you are using sendmail, sendmail may be looking for the MX record from a
DNS lookup for the mail domain, not a generic A record. I believe that
HOSTS files are only good as a substitute for A records, although I'm not
sure about that. Possible fixes? Well, address to the IP if that is
possible (for instance if it is an automated message from a script etc.)
or simply use a different machine as the SMTP server instead of invoking
sendmail locally....

Hope this helps... I'm not sure if I have a full idea of what you are
trying to accomplish, but hopefully this is a start.

james



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to