Vulcan081897
asked on
Solaris 2.5.1 Mail Server (sendmail)+DNS
I am using Solaris 2.5.1 on a sun sparc machine.I want to
setup a mail server working with DNS. What files do I have to edit or create in order to get DNS and the mail server going.I do not want to use NIS or NIS+. I want this machine to be my Primary DNS machine and mail server.(using sendmail) Any suggestions would be appreciated. PS. I am still a novice on Unix.
setup a mail server working with DNS. What files do I have to edit or create in order to get DNS and the mail server going.I do not want to use NIS or NIS+. I want this machine to be my Primary DNS machine and mail server.(using sendmail) Any suggestions would be appreciated. PS. I am still a novice on Unix.
You nedd to edit the /etc/resolv.conf file
Enter there:
DOMAIN your.domain
NAMESERVER the.ip.of.your.dns
In the /etc/nsswitch.conf edit
hosts: files dns
To make sure sendmail works correctly, check /etc/mail/sendmail.cf and make sure you change Cwlocalhost to Fw/etc/mail/sendmail.cw
Edit a /etc/mail/sendmail.cw and enter your domain and localhost on separe lines...
Then everything shoudl work...
Enter there:
DOMAIN your.domain
NAMESERVER the.ip.of.your.dns
In the /etc/nsswitch.conf edit
hosts: files dns
To make sure sendmail works correctly, check /etc/mail/sendmail.cf and make sure you change Cwlocalhost to Fw/etc/mail/sendmail.cw
Edit a /etc/mail/sendmail.cw and enter your domain and localhost on separe lines...
Then everything shoudl work...
ASKER
HI df
#1 If DNS is setup propely " NSLOOKUP " Should work?? I get the following error message "Cant find server name for address <ip>. No response from server.
#2 I do not find a Cwlocalhost in sendmail.cf and I also do not have a sendmail.cw. Do I edit and /or create the above.
Ps. This must be a primary DNS server and mail server. Don't I also have to create files like named.boot,named.local etc.These files are normaly situated in var/named ???
Thanks
#1 If DNS is setup propely " NSLOOKUP " Should work?? I get the following error message "Cant find server name for address <ip>. No response from server.
#2 I do not find a Cwlocalhost in sendmail.cf and I also do not have a sendmail.cw. Do I edit and /or create the above.
Ps. This must be a primary DNS server and mail server. Don't I also have to create files like named.boot,named.local etc.These files are normaly situated in var/named ???
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER