Using sendmail without FQDN

Hello Folks,

Am facing an issue regarding sendmail. Sendmail is working on the server but it does not have an FQDN and the server is not connected to internet ie it does not have a public IP, it is in the intranet with 192.xxx.xxx.xx IP. How do we go about sending mail from this sendmail installation?

I have worked previous installations where server had an FQDN, so it was only a matter of configuring the sendmail server to relay mails.

Can anyone help me out with some pointers? :confused:

You're not giving a FQDN for your machine in /etc/hosts, so sendmail will keep trying to find its name (domain name in /etc/resolv.conf). If that's not configured correctly it will fail (because there is no something.yahoo.com or other).

Instead put the FQDN in /etc/hosts directly:

10.3.2.7 something something.yahoo.com loghost
and then it won't matter what domain/search entry is in /etc/resolv.conf.