Difference between revisions of "NAD810-Sendmail-VM"

From CDOT Wiki
Jump to: navigation, search
(Created page with '= Running Sendmail on VM= <h1>Sample Configuration</h1> nad810_091a03-centos5 == Edit/Modify /etc/mail/sendmail.cf == * Backup the file first: cp /etc/mail/sendmail.cf /etc/mail...')
 
(Edit/Modify /etc/mail/sendmail.cf)
Line 5: Line 5:
 
== Edit/Modify /etc/mail/sendmail.cf ==
 
== Edit/Modify /etc/mail/sendmail.cf ==
 
* Backup the file first: cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.lux
 
* Backup the file first: cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.lux
* Add the following line in the option section:
+
* Add the following line in the option section (use your IP for the Addr=):
 
  0 DaemonPortOptions=Port=smtp,Addr=10.0.117.10, Name=MTA
 
  0 DaemonPortOptions=Port=smtp,Addr=10.0.117.10, Name=MTA
 
after the line:
 
after the line:
 
  0 DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
 
  0 DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
 +
* Restart sendmail:
 +
service sendmail restart
 +
* Run the command "netstat -ant" you should have the following two lines:
 +
 +
Proto Recv-Q Send-Q Local Address      Foreign Address      Stat
 +
...
 +
tcp        0      0 10.0.117.10:25      0.0.0.0:*            LISTEN
 +
tcp        0      0 127.0.0.1:25        0.0.0.0:*            LISTEN
 +
...

Revision as of 20:06, 12 March 2009

Running Sendmail on VM

Sample Configuration

nad810_091a03-centos5

Edit/Modify /etc/mail/sendmail.cf

  • Backup the file first: cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.lux
  • Add the following line in the option section (use your IP for the Addr=):
0 DaemonPortOptions=Port=smtp,Addr=10.0.117.10, Name=MTA

after the line:

0 DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
  • Restart sendmail:
service sendmail restart
  • Run the command "netstat -ant" you should have the following two lines:
Proto Recv-Q Send-Q Local Address       Foreign Address      Stat
...
tcp        0      0 10.0.117.10:25      0.0.0.0:*            LISTEN
tcp        0      0 127.0.0.1:25        0.0.0.0:*            LISTEN
...