Prasad’s blog

June 6, 2009

Install sendmail on Linux

Filed under: 1 — prasadnaik15 @ 9:40 am

Steps to install sendmail

1) yum install sendmail

2) yum install dovecot

3)yum install sendmail-cf

4)yum install sendmail-devel

5)/etc/init.d/sendmail restart

6)netstat -tulpn | grep sendmail

7)vi /etc/mail/sendmail.mc

Add these lines for SMTP authentication

TRUST_AUTH_MECH(‘LOGIN PLAIN’)dnl
define(‘confAUTH_MECHANISMS’, ‘LOGIN PLAIN’)dnl

8)Scroll further down in the file and locate the line DAEMON_OPTIONS(‘Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl. We need to comment this line out so Sendmail will listen for remote connections. Add dnl to the beginning of the line.

9) make -C /etc/mail

10)telnet 192.168.1.110 25
ehlo whatever
quit

Replace 192.168.1.110 with the IP address of your Sendmail server.

If everything works, then the server should accept your remote connection and list AUTH LOGIN PLAIN as one of its features.


1 Comment »

  1. hi, nice to meet you. Please submit your blog to http://www.indomarking.com/submit.php and Let’s someone else get it

    Comment by indomarking.com — October 11, 2009 @ 9:13 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.