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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

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
jo1170Author Commented:
its from the terminal im running
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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
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

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.