免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2871 | 回复: 0
打印 上一主题 下一主题

[服务应用] 用fetchmail读取Exchange 2010邮箱 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-21 10:25 |只看该作者 |倒序浏览
最近有一个需求是在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

有人遇到类似的问题么?求助
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP