sending mail using @mailsvr.domain and @domain

My linux mail server returns an error everytime I send a mail to our server as mymail@domain, however it is successful when I run it using mymail@mailserver.domain.
I already made our  dns to have an entry::
 domain.  IN MX 10 mailserver
And I thought that this would solve it, but still an error mail returns to me saying

 ----- The following addresses have delivery notifications -----
<rodney@addu.ph>  (unrecoverable error)

   ----- Transcript of session follows -----
554 MX list for addu.ph. points back to mailsrv.addu.ph
554 <rodney@addu.ph>... Local configuration error

What did I do wrong?  Any suggestion?

Thanks.

Alpha.
alphabugsAsked:
Who is Participating?
 
timcConnect With a Mentor Commented:
You need to add a line to /etc/sendmail.cf.  Somewhere in the local section, it may say something like:

Cwlocalhost

Add a line underneath which says:

Cwaddu.ph

(or whatever your domain name is) and restart sendmail.  It should now happily accept mail for the addu.ph domain. :-)

The Cw flag instructs sendmail to receive mail for those particular domains listed - in your case it sounds like this is not configured, so the mail reports an error.

0
 
alphabugsAuthor Commented:
Thank's a lot, the email system is now functioning properly.

Alpha
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.