Date Created: Mon 13-Apr-2009

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Installing sendmail on Centos5

These are the simple steps I followed to install send mail on my Centos5 server.

yum install sendmail

Check to see if SendMail is tiurned on for auto start

chkconfig --list

sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off

Then typed

chkconfig sendmail on

chkconfig --list

sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off

Some commands to manually start and stop sendmail
service sendmail start
service sendmail stop
service sendmail restart

How to check sendmail is running?

pgrep sendmail, so far send mail was not running

So I edited
/etc/mail/sendmail.mc to ensure that I had the correct settings

DAEMON_OPTIONS(`Port=smtp,Addr=<Myipaddress>, Name=MTA')dnl
MASQUERADE_AS(`<mydomain.com>')dnl


I then ran make to generate a new sendmail.cf file, the result was this error

WARNING: 'sendmail.mc' is modified. Please install package sendmail-cf to update your configuration.

So what I did then is used yum install sendmail-cf

Running Transaction
Installing: m4 ######################### [1/2]
Installing: sendmail-cf ######################### [2/2]

How to find send mail logs

grep mail /etc/syslog.conf



I followed this guide to get the basics.
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch21_:_Configuring_Linux_Mail_Servers#Starting_Sendmail

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many leading brands around the world. Steve specialises in JEE, DevOps and Thought Leadership.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

Courses

  • WebSphere Courses

Articles

WebSphere Categories

Other Categories