1835242 Members
2188 Online
110078 Solutions
New Discussion

Sendmail

 
SOLVED
Go to solution
John Ramsay_2
Regular Advisor

Sendmail

Is there a proper domain name for a unix workstation in my home called Warlock connected to the internet through a router and my isp cox.net?
I'm trying to learn unix on a hp712/100 and sendmail cand resolv the domain name.
4 REPLIES 4
Rita C Workman
Honored Contributor

Re: Sendmail

Other 'sendmail' experts feel free to jump in here, cause I'm no sendmail expert. And there maybe some 'things' missing here...like do you have DNS set up. My guess is no...so...
You may need to edit a couple things to get you started.

Like the /etc/resolv.conf so it shows your domain & a nameserver..
domain cox.net
nameserver
...Now you can have I think up to 3 nameservers for dns lookups/resolution.

The other file you need to start reading on and configuring is /etc/mail/sendmail.cf. Possibly as a first step, just go in and edit the $m (note it's lower case) to show the domain name of cox.net. So your looking for:
$Dm

And possibly you might add the IP address and domain name of your mailserver (cox.net's mailserver) to your /etc/hosts file. As an example:
xxx.xxx.xxx.xxx mail.cox.net cox.net

So call your provider and they may be able to provide some of this information for you...like their full domain name; mailserver name; IP's...

When you want to test how your working use sendmail with a -v option to see how things are going:

sendmail -v anybody@theworld.com
Type your message on the next line
and keep typing lines until you
send whatever you want. On the very
last line you enter a period "." all
by itself & hit enter...and your email
will begin to process/goand display how it did or did not go, giving you details as to
where it may have failed to pass.

This was fairly simplistic, but maybe it gives you an idea where you can begin and what you need to read up on..
Half the fun is learning !

Rgrds,
Rita
Steven E. Protter
Exalted Contributor

Re: Sendmail

After getting resolv.conf right.

change the hsotname in /etc/rc.config.d/netconf to warlock.yourdomain.net

In spite of the fact that you are using Cox cable as a smtp relay server, your mail will go out with a fully qualified domain name.

If you can not change the host name:

DJwarlock@yourdoman.net

in sendmail.cf

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

resolv.conf should be either the IP address of the cable router, or if visible the dns server that is automatically assigned to the router. You are better off with the internal ip if it works(almost always 192.168.0.1) because thats static.

These cable people change ip address and DNS servers without notice to users.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Helen French
Honored Contributor

Re: Sendmail

The best approach will be to create your own domain name instead of depening on your internet provider. You need to edit /etc/resolv.conf, /etc/nsswitch.conf, /etc/rc.config.d/netconf and /etc/hosts file. Once you configure check your name resolution with nslookup command. You may also need to check your sendmail.cf file and configure it. Almost all information will be available from man pages about these configuration and the sendmail.cf file.
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor
Solution

Re: Sendmail

Hi John,

Try this link,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000065255439

The doc id is KBRC00002070

Hope this helps.

Regds