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.

# Creating Relay with external mail server
# (lets take relay external mail server as ashish.com)

Open your configuration file:

# vi /etc/mail/sendmail.mc

Append or modify macro that read as follows :

define(`SMART_HOST',`myrelay.ashishnepal.com')
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Restart sendmail service:

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.

# /etc/init.d/sendmail restart

Problem: /etc/mail/sendmail.mc:10: m4: Cannot open /usr/share/sendmail-cf/m4/cf.m4:

yum install sendmail-cf

Problem: ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

This is potentially due to your mail service is not running or amavisd is looping into localhost
Lets assume you are using sendmail

# killall -9 sendmail
# /etc/init.d/sendmail start