Showing posts with label sendmail;smtp;outgoing;linux mail server;. Show all posts
Showing posts with label sendmail;smtp;outgoing;linux mail server;. Show all posts

Thursday, September 24, 2009

Configuring smtp in Linux

Configuring smtp in Linux

1. Ask mail administrator to add the linux server from which we need to send mail to mail server

2. comment out following line in /etc/mail/sendmail.mc

dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

3. Compile the changes we made,

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

4. Start the sendmail service

service sendmail start

5. Test the mail using the following,

echo "Hello World" mail -s "Test from NG Monitor"
jayakumar@newgenusa.com

6. The mail status can be checked through the following command
mail queue