james 邮件服务器修改内网发送到其它邮件服务器

来源:互联网 发布:淘宝怎么买资源你懂的 编辑:程序博客网 时间:2024/05/17 07:43
    <servernames autodetect="false" autodetectIP="false">
         <servername>bokesoft.com</servername>
</servernames>
     1. autodetct设为true会自动侦测你的主机名, 设成false会用你指定的server name
  .  2.autodetectIP设为true会为你的servername加上ip. (不需要)
     3.servername 改为你的server名字 如 bkesoft.com 
     4.C:\WINDOWS\system32\drivers\etc\hosts文件,添加 127.0.0.1   bokesoft.com
二、 找到下面的注释掉:
<!--mailet match="RemoteAddrNotInNetwork=127.0.0.1" class="ToProcessor">
            <processor> relay-denied </processor>
            <notice>550 - Requested action not taken: relaying denied</notice>
         </mailet-->
三、找到<dnsserver>修改
         <!--
          <server>127.0.0.1</server>
         -->
      <servers>
 <server>bokesoft.com</server>
 <server>1.1.1.2</server>
      </servers>
      <!-- Change autodiscover to false if you would like to turn off autodiscovery -->
      <!-- and set the DNS servers manually in the <servers> section -->
      <autodiscover>false</autodiscover>
 查看server 在cmd中用ipconfig /all 命令查看你的dns server ip  如: DNS Servers . . . . . . . .1.1.1.2 
四、找到这个标签<postmaster>
修改<postmaster>Postmaster@bokesoft.com</postmaster>
重启服务即可

* james中的邮件地址就是对应的用户@你的servername,如:xhwang@bokesoft.com



在C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1 hao.com 这个后 可以向外网发送邮件

但是在局域网内 不能收到外网发送过来的邮件:
原因:内网通过路由器访问到外网,而外网只认识路由器的地址。不认识你局域网中的一个地址。
解决方案:做内网端口映射。打开路由器的设置192.168.0.1 或 192.168.1.1 ,转发规则-->>虚拟服
务器。做内网端口映射。

机器的外网ip查看(http://www.ip138.com/)

设置成功后通过外网访问你机器的外网地址(列:163邮箱向你的域名发送邮件。)

http://blog.csdn.net/lixuyuan/article/details/6719452(内网端口映射详解(花生壳))
0 0
原创粉丝点击