欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

配置你的第一臺(tái)e-mail服務(wù)器(2)_Mail服務(wù)器教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!
  但這個(gè)僅僅表示e-Mail服務(wù)器只接收你本機(jī)的郵件.為了解決這個(gè)問題,你必須修改配置,告訴SendMail去監(jiān)聽你對(duì)外的網(wǎng)卡地址.假設(shè)你的服務(wù)器上只安裝了一塊網(wǎng)卡(eth0),并用ifconfig配置好你的ip地址.這個(gè)地址可以和DNS解析的地址不一樣,但你要保證DNS可以正確地解析郵件服務(wù)器的地址.這里我們使用的地址是一樣的(推薦):

  [root@testmail /root]# ifconfig
  eth0 Link encap:Ethernet HWaddr 00:60:97:DE:E9:99
  inet addr:192.168.100.134 Bcast:192.168.100.255 Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  RX packets:12421 errors:0 dropped:0 overruns:0 frame:0
  TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:100
  Interrupt:10 Base address:0xe000

  lo Link encap:Local Loopback
  inet addr:127.0.0.1 Mask:255.0.0.0
  UP LOOPBACK RUNNING MTU:16436 Metric:1
  RX packets:6 errors:0 dropped:0 overruns:0 frame:0
  TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0

  可以看到這臺(tái)主機(jī)的eth0的ip地址是192.168.100.134.現(xiàn)在修改/etc/SendMail.cf文件來配置SendMail的監(jiān)聽端口:

  # SMTP daemon options
  O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

  更改為

  O DaemonPortOptions=Port=smtp,Addr=192.168.100.134, Name=MTA

  改完后保存退出,并且重新啟動(dòng)SendMail服務(wù):

  [root@testmail /root]# /etc/init.d/SendMail restart
  Shutting down SendMail: [ OK ]
  Starting SendMail: [ OK ]
  [root@testmail /root]#

  現(xiàn)在可以用netstat -nl來查看是不是已經(jīng)更改了.如你所看到的,SendMail的監(jiān)聽端口現(xiàn)在是eth0的ip地址:192.168.100.134了.
  [root@testmail /root]# netstat -nl
  Active Internet connections (only servers)
  Proto Recv-Q send-Q Local Address Foreign Address State
  tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
  tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
  tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
  tcp 0 0 192.168.100.134:25 0.0.0.0:* LISTEN
  udp 0 0 0.0.0.0:32768 0.0.0.0:*
  udp 0 0 0.0.0.0:667 0.0.0.0:*
  udp 0 0 0.0.0.0:111 0.0.0.0:*
  Active UNIX domain sockets (only servers)
  Proto RefCnt Flags Type State I-Node Path
  unix 2 [ ACC ] STREAM LISTENING 1119 /dev/gpmctl
  unix 2 [ ACC ] STREAM LISTENING 1172 /tmp/.font-unix/fs7100
  [root@testmail /root]#

  ///////////////////////////////////////////////////////////////

  現(xiàn)在SendMail已經(jīng)可以接收來自外部的連接了.我們還需要設(shè)定SendMail允許接收的域名.這個(gè)可以在/etc/mail/local-host-names文件中設(shè)定.就把域名輸入進(jìn)去就可以了:

  # local-host-names - include all aliases for your machine here.
  blank.com

  保存退出后重新啟動(dòng)SendMail服務(wù):/etc/init.d/SendMail restart .這樣SendMail就可以接收來自多個(gè)域的信件了.

  如果你需要再增加新的域,只有修改這個(gè)文件就可以了.

來源:網(wǎng)絡(luò)搜集//所屬分類:Mail服務(wù)器教程/更新時(shí)間:2013-04-15
相關(guān)Mail服務(wù)器教程