如何用Apache James把E-mail從內網(內部區域網)發到外網
阿新 • • 發佈:2018-11-07
如何用Apache James把E-mail從內網(內部區域網)發到外網
轉載:http://www.west.cn/www/info/63095-1.htm
第一步. 得到DNS, 在windows上可通過ipconfig /all得到, 如下
D:\>ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : holen Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No Ethernet adapter 本地連線: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Myson MTD80X Based Fast Ethernet Car d #3 Physical Address. . . . . . . . . : 00-40-95-00-2E-B3 Dhcp Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Autoconfiguration IP Address. . . : 169.254.224.137 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : PPP adapter adsl: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface Physical Address. . . . . . . . . : 00-53-45-00-00-00 Dhcp Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 221.216.144.61 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 221.216.144.61 DNS Servers . . . . . . . . . . . : 202.106.0.20 202.106.46.151 NetBIOS over Tcpip. . . . . . . . : Disabled
如上,DNS即202.106.0.20或202.106.46.151
第二步 開啟D:\james-2.1.3\apps\james\SAR-INF\config.xml
預設是第344行, 原為127.0.0.1, 改為202.106.0.20即可.
這時, 假如你在James上建立了一個帳號[email protected],則可從該帳號發信到[email protected]