1828189 Members
2599 Online
109975 Solutions
New Discussion

sendmail question

 
SOLVED
Go to solution
Mark Vollmers
Esteemed Contributor

sendmail question

hi, all. THis is probably a dumb question, but I'll ask it anyway. In sendmail, when it starts, I get the error saying that I need to modify the dj$ parameter to the domain name. The first line in the /etc/hosts file is

IP munix munix (where munix is the machine name)

The /etc/nsswitch.conf file has hosts: nis files (hp had me put the nis there when I had a networking problem)

Where do I find the domain name for sendmail.cf? I have tried munix, mclbody.com (the domain for the NT server), mbceng (which is the NIS domain name) and thrown in some other variations of stuff. The unix server is not connected to the outside world and would be linked to the windows network (as far as getting the IP address). We do not have DNS on the system. Nothing seems to remove the error. What exactly am I missing? Thanks!

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: sendmail question

Hi Mark:

Take a look at document #KLTKBRC00005381 in the Technical Knowledge Base.

...JRF...
linuxfan
Honored Contributor
Solution

Re: sendmail question

Hi Mark,

Update your hosts file with

IP munix munix.mclbody.com

and bounce your sendmail
/sbin/init.d/sendmail stop ; /sbin/init.d/sendmail start

-Regards
I am RU
They think they know but don't. At least I know I don't know - Socrates
linuxfan
Honored Contributor

Re: sendmail question

Hi Mark,

Just wanted to point you to the relavant section in the /etc/mail/sendmail.cf which confirms to what I had said in my previous post.

/Begin Quote /
This is required only if sendmail cannot automatically determine your domain. If you are not using DNS, and the official host name (ie,the first entry in /etc/hosts following your IP address) is not a fully-qualified host name, then sendmail will have difficulty resolving your domain name.
/End Quote/

What this is basically saying is, if sendmail can't determine your domain either through DNS or the first entry following the IP address then it expects the $J macro to be set in the sendmail configuration file.

-Hope that answers your question
I am RU
They think they know but don't. At least I know I don't know - Socrates
Mark Vollmers
Esteemed Contributor

Re: sendmail question

Thanks! That listing wasn't there when I got the server (it was munix munix in /etc/hosts), so it never occured to me to link in the domain name like that. Now I know.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Joseph C. Denman
Honored Contributor

Re: sendmail question

Your domain name should be listed in your /etc/resolve.conf

#/etc/resolv.conf
domain my.domain.com
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
If I had only read the instructions first??