AppFuse搭建本地邮件服务器

  • 邮件服务器选用apache-james-2.3.2,官网http://james.apache.org/下载解压即可;
  • 运行\james-2.3.2\bin\run.bat,出现如下界面:
D:\Program Files\james-2.3.2\bin>run.bat
Using PHOENIX_HOME:   D:\Program Files\james-2.3.2
Using PHOENIX_TMPDIR: D:\Program Files\james-2.3.2\temp
Using JAVA_HOME:      D:\Program Files\Java\jdk1.5.0_22

Phoenix 4.2

James Mail Server 2.3.2
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled

 

 

  • Telnet进入邮件管理界面,命令:
telnet localhost 4555

 

  • 正常的话出现输入账号密码界面,默认账号/密码为root/root:
JAMES Remote Administration Tool 2.3.2
Please enter your login and password
Login id:
root
Password:
root
Welcome root. HELP for a list of commands

 

 

  • 添加邮件用户test,命令:adduser [username] [password] 
adduser test test
User test added

 

 

  • 根据需要修改appfuse应用/myapp/web/WEB-INF/classes/mail.properties配置文件 
# This properties file is used to configure mail settings in 
# /WEB-INF/applicationContext-service.xml.

mail.default.from=AppFuse <[email protected]>
mail.debug=false
mail.transport.protocol=smtp
mail.host=localhost
mail.username=
mail.password=

 

 

 

  • 修改appfuse使用数据库中的tomcat用户的email为test@localhost:
update mydb.app_user set email = 'test@localhost' where username = 'tomcat';

 

 

  • 启动服务,发送密码提示邮件


AppFuse搭建本地邮件服务器_第1张图片
 

  • 配置foxmail客户端接收邮件:

  • AppFuse搭建本地邮件服务器_第2张图片

  • AppFuse搭建本地邮件服务器_第3张图片
     
  • 发送外网邮件,经测试163邮箱可用,QQ等其它邮箱无法接收,有待研究apache james:
update mydb.app_user set email = '[email protected]' where username = 'tomcat';
  •  
    AppFuse搭建本地邮件服务器_第4张图片
     
     
  • 至此无需对apache james做任何配置,就搭建好了满足appfuse测试的邮件服务器。
     

你可能感兴趣的:(apache,mail,Appfuse,James)