james

1. 下载Apache James-2.3.2.

2. 解压在E:\myspace\James-2.3.2下,以后使用JAMES_HOME来引用

3. 添加服务 :将%JAMES_HOME%\conf\目录下的wrapper.conf拷贝到%JAMES_HOME%\bin\目录下,使用命令行进入%JAMES_HOME%\bin\目录,添加服务的命令为 :wrapper.exe –i wrapper.conf.卸载服务的命令为 : wrapper.exe –i wrapper.conf.

4. 使用services.msc进入服务管理器,运行服务James Mail Server 2.3.2. James的服务既可启动.

5. 配置James服务器 :打开%JAMES_HOME%\apps\james\SAR-INF\目录下的config.xml文件.(如果服务器从未启动过则无此文件,请启动)

1).将 :(52行左右)

<postmaster>Postmaster@localhost</postmaster>

修改为 :

<postmaster>Postmaster@cheung.com</postmaster>

2).将 :(71行左右)

   <servernames autodetect="true" autodetectIP="true">

<!-- CONFIRM? -->

         <servername>localhost</servername>

    </servernames>

   修改为 :

   <servernames autodetect="false" autodetectIP="false">

<!-- CONFIRM? -->

         <servername>cheung.com</servername>

      </servernames>

不要忘了将cheung.com机器名添加到

C:\WINDOWS\system32\drivers\etc\hosts中

3).将 :(551行左右)

   <mailet match="RemoteAddrNotInNetwork=127.0.0.1"

class="ToProcessor">

            <processor> relay-denied </processor>

            <notice>550 - Requested action not taken: relaying denied</notice>

    </mailet>

   整体注释掉.

4).将 :(896行左右)

<authRequired>true</authRequired>

的注释去掉,使其生效.

6.添加用户 :重新启动服务器 ,从命令行输入 :telnet test.com/localhost 4555.(如果无法连接端口,则检查telnet服务是否启动以及是否添加 test.com到hosts文件中.) ;输入用户名和密码登录 :默认用户名和密码在配置文件中可查阅,一般都为root.登录服务器后可以输入help命令查看命令帮助 :

1).help-----display this help 显示帮助信息

2).listusers-----display existing accounts 显示现有账户

3).countusers-----display the number of existing accounts 显示现有账户数量

4).adduser [username] [password]-----add a new user 添加一个新用户

5).verify [username]-----verify if specified user exist 核实指定用户是否存在

6).deluser [username]-----delete existing user 删除存在的用户

7).setpassword [username] [password]-----sets a user's password 设置用户密码

8).setalias [user] [alias]-----locally forwards all email for 'user' to 'alias' 设置邮箱别名

9).showalias [username]-----shows a user's current email alias 显示别名

10).unsetalias [user]-----unsets an alias for 'user' 删除用户别名

11).setforwarding [username] [emailaddress]-----forwards a user's email to another email address 转发用户的电子邮件地址到另一个电子邮件地址

12).showforwarding [username]-----shows a user's current email forwarding 显示用户的当前邮件转发

13).unsetforwarding [username]------removes a forward 删除转发

14).user [repositoryname]-----change to another user repository 改变另一个用户库

15).shutdown-----kills the current JVM (convenient when James is run as a daemon)关闭当前的服务

16).quit-----close connection 关闭连接

添加两个用户:adduser  test01123456

             adduser  test02123456

运行上述命令后则创建了两个邮件地址: test01@test.com,  test02@test.com.

使用listusers命令可以查看创建的用户,使用quit退出服务器

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值