Mail from command line

Hello- Probably someone can help me out with this

I got a centos6.6 server. I'm trying to send some test emails from command line to internal users and it does not work. From the command line i'm able to send to any external mail id's

Also from Evolution mail client i can send emails to internal as well as external email id's without any issues.

What am i missing?
jo1170Asked:
Who is Participating?
 
savoneCommented:
You are not resolving your mail servers MX records from your system. Use the following command to see what DNS tells you.

dig MX domain.com
(domain.com should be the end of the email address)
0
 
MazdajaiCommented:
Can you post the commands you trying to run and errors ?
0
 
jo1170Author Commented:
mail -s "test" your@your.com
cntrl+d

not seeing any error messages
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
jo1170Author Commented:
its from the terminal im running
0
 
MazdajaiCommented:
Is there any message in the maillog indicate the messages have been delivered?

Are there any difference with the external vs internal? What type of internal email address?  Is the internal Linux client?
0
 
jo1170Author Commented:
i think this is what's casuing it DSN: Host unknown, its giving the  wrong mail server

Our mail server is exchnage
0
 
MazdajaiCommented:
Can you post your postfix conf? Looks like you have an DNS issue.
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.