Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

This article guide’s how to install msmtp and use instead of sendmail.

Remove sendmail
yum remove sendmail
[y]

download msmtp latest version
http://sourceforge.net/projects/msmtp/files/msmtp/

Choose appropriate one and unzip/untar

And,

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

cd /usr/local/etc/
vi msmtprc
# MSMTP config for me

account default

host mailsvr.ashishnepal.com
protocol smtp
auto_from on
maildomain me.ashishnepal.com
logfile /var/log/maillog

cd /etc/mail/msmtprc
ln -s /usr/local/etc/msmtprc msmtprc
[root@ashish mail]# ll /etc/mail/msmtprc
lrwxrwxrwx 1 root root 22 Aug 5 2011 /etc/mail/msmtprc -> /usr/local/etc/msmtprc

cd /usr/sbin
ln -s /usr/local/bin/msmtp sendmail

[root@ashish mail]# ll /usr/sbin/sendmail
lrwxrwxrwx 1 root root 20 Sep 6 2011 /usr/sbin/sendmail -> /usr/local/bin/msmtp