Date Created: Mon 13-Apr-2009

Related Document Categories:


    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

Middleware Mentor - Steven Charles Robinson

About Me

Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.

Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.

Follow Steve as @stevencrobinson on twitter.

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

WebSphere Categories

Oracle WebLogic Categories

JBoss Categories

Other Categories