Originally Posted by MBryan
Hey guys. Thanks in advance for help on my question.
I've been in the IT world for twenty years (mostlying networking and Windows administration), but I'm just now getting my feet wet in the various 'Nix environments.
I manage an application that runs on RHEL 5.5. One of the modules of this application has the ability to run and forward scheduled reports via email. Currently, this is not working properly, and I was told by application support to check the "mailserver" configured on my box. I'm assuming this is the setting for the SMTP server where the email needs to go.
How do I find the value of this setting. I've googled til I'm blue in the face, and all I seem to find are instructions to set up an SMTP server, which is not what I want to do.
Well, if you're in a corporate environment, and you already have an existing internal mail server, you can set up a smart/relay server. You need to install either sendmail or postfix, and there are lots of existing how-tos on how to do that.
You don't need to configure EVERYTHING, but you DO need to install the software. Typing in "yum install sendmail" should be all you need to do. After that, all you need to do to shovel all your emails to your existing mail server is to open up your config file ("vi /etc/mail/sendmail.mc"), and append/modify the line that says something like:
Save and exit the file, type in "m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf", then "/etc/init.d/sendmail restart". That's it. As long as your internal mail server can be pinged by the host name/address you put in above, any emails your system generates will be sent straight to it, with no processing on your Linux host. Note that you can also do a quick-and-dirty (and NOT RECOMMENDED
) edit of the /etc/mail/sendmail.cf file, and put your email server host/ip on the line that says "DS", as in "DSsome.host.com". That is NOT the right way to do it, though..use at your own risk.
Also, since you're using RHEL, you should be able to call Red Hat support and ask them such questions, and check their knowledgebase, since you're paying for access to it as well. They have docs on those things.