LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2015, 01:53 AM   #1
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Rep: Reputation: 0
How to configure sendmail in centos?


I need to send mails from our centos server, what are tools required ?

server
CentOS release 6.5 (Final)

How to check if sendmail is installed and configured?

I even tried mutt, I could install but not able to send mails. Is there any configuration required ?
 
Old 03-27-2015, 06:41 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,134

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
email

Even mutt (which is an email CLIENT, though a nice one) requires an MTA or email SERVER.
Sendmail is not the only one, just the grandaddy. Exim and others also complete and compete for that space.

Make sure that you have an MTA installed, then read the docs about how to configure it. (Sendmail may be configured using WEBMIN, editing the sendmail.mc file and compiling it with m4 (under control of make in recent packages, makes it easy) or by direct editing of sendmail.cf - not recommended) but different packages can use different configuration files, or the same files differently.

From your site do you require a SMARTHOST or parent SMTP server for relay? If so, that relay must be set to allow your host to forward: setting the client machine properly may or may not suffice.

I hope that this helps.
 
Old 04-01-2015, 05:44 AM   #3
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Original Poster
Rep: Reputation: 0
I did not understand the SMARTHOST part, though I added the exchange server address as SMARTHOST in sendmail.mc

BTW, we have multiple domains. My CentOS server is in one domain and exchange server is in different domain. My sendmail seems working. If I see the logs in maillog, it says connection timeout after 60 seconds.

All the mails I sent are present in /var/spool/mail/user. But I want those mails to be delivered to my outlook

Any help ?
 
Old 04-02-2015, 06:27 AM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,134

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I am not sure I will be able to resolve this with you, but let us get some detail so someone else has the right information to work with.

You have two mail servers, different mail domains, one exchange and one linux.
You are sending from the Linux machine using mutt, mail, mailx, or other mail client.
You are sending TO an account served by your Exchange mail server.

If the Exchange server is NOT forwarding email for the Linux mail server to the outside world, you do NOT need the SMARTHOST setting. If it DOES relay mail for the linux mail server, then you do.

BOTH mail servers should have MX records in DNS for their domains. If they lack these, there are settings that need to be adjusted to allow each to send mail to the others without that security check and setting them as the mail target for that domain. I do not manage Exchange, so I cannot discuss those settings in any detail.
If your MX records are present and use external addresses, you may need host table entries with the internal addresses on each host. (most routers have trouble routing the same packet in and out on the same interface)

Between linux machines it is easier, you can use email names with the that use the FQDN of the target server. (john@node1.mynet.local instead of john@mynet.local) and they will direct send. Exchange does not by default, though it has a LOT of settings and might be capable.

Considering these things, please describe what you try and how it changes the behavior or log entries.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install and configure sendmail in centos 5 (kernel 2.6.x) for ISP didarulalam Linux - Networking 2 08-28-2009 03:39 AM
configure sendmail sumer Linux - Newbie 1 03-29-2009 11:24 AM
how to configure sendmail vaidya1 Linux - Newbie 1 07-11-2008 01:18 AM
Need help to configure Sendmail athreyavc Linux - Networking 4 03-29-2006 06:41 AM
configure sendmail juanb Linux - General 4 10-23-2005 02:46 AM


All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration