• 2005-10-26

    james邮件服务器简易配置手册

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://panbird.blogbus.com/logs/1538913.html

    一、启动服务器
    1、解压压缩包
    2、设置JAVA_HOME
    3、运行\$jame_dir\$\bin\run.bat
    4、如果启动不了,清空\$jame_dir\$\apps\james 此目录下所有内容,重新运行run.bat会自动恢复默认设置

    二、配置服务器
    服务器配置文件路径: \$jame_dir\$\apps\james\SAR-INF\config.xml
    需要设置的地方:
    ----------DNS-----
    <dnsserver>
         <servers>
            
         <!--Enter ip address of your DNS server, one IP address per server -->
            
         <!-- element. -->
            
         <!--
              <server>127.0.0.1</server>
             -->
      
         <server>202.96.209.5</server>
            
         <server>202.96.0.133</server>
            
         <server>202.96.134.133</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>true</autodiscover>
          <authoritative>false</authoritative>
       </dnsserver>

    -----------修改email管理器用户名,密码 -----
    <remotemanager>
          <port>4555</port>
          <!--  Uncomment this if you want to bind to a specific inetaddress -->
          <!--
          <bind> </bind>
          -->
          <!--  Uncomment this if you want to use TLS (SSL) on this port -->
          <!--
          <useTLS>true</useTLS>
          -->
          <handler>
             <!-- This is the name used by the server to identify itself in the RemoteManager -->
             <!-- protocol.  If autodetect is TRUE, the server will discover its -->
             <!-- own host name and use that in the protocol.  If discovery fails, -->
             <!-- the value of 'localhost' is used.  If autodetect is FALSE, James -->
             <!-- will use the specified value. -->
             <helloName autodetect="true">myMailServer</helloName>
             <administrator_accounts>
    <!-- CHECKME! -->
                <!-- Change the default login/password. -->
                <account login="root" password="root"/>
             </administrator_accounts>
             <connectiontimeout> 60000 </connectiontimeout>
          </handler>
       </remotemanager>

     ----------允许使用SMTP发送邮件的地址-------
     <authorizedAddresses>127.0.0.0/8,219.137.111.111</authorizedAddresses>

     


    三、管理服务器
    1、用telnet链接email管理服务器,
     命令: telnet servername port
     example:telnet www.xxx.com.cn 4555

    2、输入用户名,密码
    3、增加email用户: adduser username password
    4、列出当前服务器内用户: listusers

    example:
    JAMES Remote Administration Tool 2.1.2
    Please enter your login and password
    Login id:
    root
    Password:
    root
    Welcome root. HELP for a list of commands
    adduser red red
    User red added
    adduser green green
    User green added
    adduser blue blue
    User blue added
    listusers
    Existing accounts 3
    user: blue
    user: green
    user: red
    quit
    Bye


    收藏到:Del.icio.us




    评论

  • 我还是启动不了服务器.这是为什么呀.