Send mail through linux command prompt
Send mail Configuration
Step 1: Installation
yum install sendmail-cf
Step 2: Open file /etc/mail/sendmail.mc
Step 3: Comment line (116) by putting dnl in front of this line
ex:- dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Step 4: Create Sendmail configuration file ...by executing these command
m4 sendmail.mc > sendmail.cf
Step 5: Start sendmail Service
/etc/init.d/sendmail start
Step 6: Add Sendmail service in Hosts.deny so no one can use it except loopback.
i) open /etc/hosts.allow file and past this:
sendmail: 127.0.0.1
ii) now open /etc/hosts.deny file and past this:
sendmail: ALL
Send mail Configuration
Step 1: Installation
yum install sendmail-cf
Step 2: Open file /etc/mail/sendmail.mc
Step 3: Comment line (116) by putting dnl in front of this line
ex:- dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Step 4: Create Sendmail configuration file ...by executing these command
m4 sendmail.mc > sendmail.cf
Step 5: Start sendmail Service
/etc/init.d/sendmail start
Step 6: Add Sendmail service in Hosts.deny so no one can use it except loopback.
i) open /etc/hosts.allow file and past this:
sendmail: 127.0.0.1
ii) now open /etc/hosts.deny file and past this:
sendmail: ALL
No comments:
Post a Comment