- 论坛徽章:
- 0
|
最近有一个需求是在Linux下用Mail Retrieval Agent读取Exchange 2010邮箱的邮件,我试着用fetchmail的IMAP方式,但是报Authorization failure,如下:
[root@server ~]# fetchmail -avk
fetchmail: WARNING: Running as root is discouraged.
fetchmail: 6.3.6 querying mail.domain.com (protocol IMAP) at Wed 20 Jun 2012 09:13:22 AM CST: poll started
Trying to connect to 1.1.1.1/993...connected.
fetchmail: Unknown Organization
fetchmail: Issuer CommonName: CAdomain
fetchmail: Server CommonName: *.domain.com
fetchmail: mail.domain.com key fingerprint: 12:77:0F:6C:82:A5:97:7A:3C:27C1:CA:BF:73:4A
fetchmail: Server certificate verification error: unable to get local issuer certificate
fetchmail: Server certificate verification error: certificate not trusted
fetchmail: Server certificate verification error: unable to verify the first certificate
fetchmail: IMAP< * OK The Microsoft Exchange IMAP4 service is ready.
fetchmail: IMAP> A0001 CAPABILITY
fetchmail: IMAP< * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
fetchmail: IMAP< A0001 OK CAPABILITY completed.
fetchmail: IMAP> A0002 LOGIN "loginname" *
fetchmail: IMAP< A0002 NO LOGIN failed.
fetchmail: IMAP> A0003 *
fetchmail: Authorization failure on loginname@mail.domain.com
fetchmail: IMAP> A0004 LOGOUT
fetchmail: IMAP< A0003 BAD Command Error. 12
fetchmail: IMAP< * BYE Microsoft Exchange Server 2010 IMAP4 server signing off.
fetchmail: IMAP< A0004 OK LOGOUT completed.
fetchmail: 6.3.6 querying mail.domain.com (protocol IMAP) at Wed 20 Jun 2012 09:13:25 AM CST: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: normal termination, status 3
~/.fetchmailrc 配置文件如下:
[root@server ~]# vim ~/.fetchmailrc
poll mail.domain.com
protocol imap
auth password
username "loginname"
password "password"
ssl keep
有一个问题是loginname是domain.com域下的,也就是说完整的邮箱名是loginname@domain.com,而fetchmail去验证的是loginname@mail.domain.com,不知道是不是因为这样,所以才报错了。
或者有没有其他的工具能够比较好的支持Exchange 2010
有人遇到类似的问题么?求助 |
|