sendmail

REDHAT 6.5 SendMail 8.9

Hi,

I have installed sendmail on my linux machine. the machine has these parameters:
Hostname: internet
domain:cku.com

i create a user toto on this machine to receive the mail.

I use outlook mail from my pc to send a mail.
when i send a mail to toto@internet.cku.com it's work fine
but when i send a mail to toto@cku.com it's not work.
how i configure my sendmail in order to use the second address.?
Thanks,
djamalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

samriCommented:
Djamal,
   
  First of all, is your machine connected to the internet, or just within you private LAN (with private IP numbers).
  If it is on the internet, consult your ISP (or whomever) is hosting your domain to add an MX entry to point to internet.cku.com.  
  If your Linux box is the only machine in the network (private), you somehow must have a DNS server somewhere, and I assume that you have bind running in the same machine and you PC is pointing to that machine (internet.cku.com - whatever the IP number is), as the DNS server.  Then, in the DNS database (normally /var/named/named.hosts), and an entry

cku.com.  IN MX 10 internet.cku.com.

and you should configure you sendmail.cf to have a line

Cwlocalhost internet.cku.com cku.com

I hope this help.  Or maybe you might want to take a look at http://www.isc.org/bind and http://www.sendmail.org for reference.

Samri


0
jlevieCommented:
To use the second form of addressing there has to be an MX record for the domain that looks something like:

cku.com    IN MX  10 internet.cku.com.

Whoever is responsible for DNS records for your domain (your ISP or local DNS admin) will have to add the record.

Next you have to tell sendmail that it's supposed to accept mail for user@cku.com. The "Cw" directive does this and it should look like:

Cw internet.cku.com cku.com
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.