Originally posted by: SystemAdmin
I suppose you have /etc/resolv.conf defined, with
the DNS IP. Also you have /etc/netsvc.conf with the
setting
local=bind,hosts
(first looks for DNS and if not found look in /etc/hosts file).
And your hostname is registered in the DNS, and
the /etc/sendmail.cf have the definition:
DwYourHostName
DmYourDomainName
#Cw localhost $w $?m$w.$m$. YourHostAliases
#Cm $m YourOtherDomainNames
#Cwlocalhost
-
file containing names of hosts for which we receive email
#Fw-o /etc/sendmail.cw
-
my official domain name
-
... define this only if sendmail cannot automatically determine your domain
-
your domain or you wish to override the default.
Dj$w.$m
The /etc/sendmail.cf explains the definitions you should do.
Regards.
Silvia.