到目前为止,一个基本的邮件系统已经安装完成,他支持了smtp,pop3,imap,webmail。并且支持对应的SSL加密smtps,pop3s,imaps,https。
1、测试pop3(请首先登录extman自行建立test@extmail.org用户,密码:test)
shell
其过程如下:
Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. +OK Hello there. user test@extmail.org << 输入内容 +OK Password required. pass test << 输入内容 +OK logged in. list << 输入内容 +OK POP3 clients that break here, they violate STD53. . quit << 输入内容 +OK Bye-bye. Connection closed by foreign host.
通过以下命令获得test@extmail.org的用户名及密码的BASE64编码:
shell
# perl -e 'use MIME::Base64; print encode_base64("test\@extmail.org")'
dGVzdEBleHRtYWlsLm9yZw==
shell
dGVzdA==
然后本机测试,
shell
其过程如下:
Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 mail.extmail.org ESMTP Postfix ehlo demo.domain.tld << 输入内容 250-mail.extmail.org 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN auth login << 输入内容 334 VXNlcm5hbWU6 dGVzdEBleHRtYWlsLm9yZw== << 输入内容 334 UGFzc3dvcmQ6 dGVzdA== << 输入内容 235 2.0.0 Authentication successful quit << 输入内容 221 2.0.0 Bye
最后出现235 Authentication Successful 表明认证成功了。
通过如下链接登陆webmail /extman
http://mail.extmail.org http://mail.extmail.org/extman
如无意外,将看到webmail的登陆页,不过此时还没有加正式的用户,所以不能登陆,包括postmaster@extmail.org也不行。必须要登陆到http://mail.extmail.org/extman/ 里增加一个新帐户才能登陆。
ExtMan的默认超级管理员帐户:root@extmail.org,初始密码:extmail*123*,登陆成功后,建议将密码修改,以确保安全。