LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1506|回复: 3

如何设置fetchmail,能收取有身份认证的邮件系统的邮件?

[复制链接]
发表于 2005-10-27 22:06:06 | 显示全部楼层 |阅读模式
这是fetchmail的输出:
$fetchmail -avk
fetchmail: 6.2.5 querying mail.ustc.edu.cn (protocol POP3) at 2005年10月27日 星
期四 21时45分06秒: poll started
fetchmail: POP3< +OK <21045.1130420844@mail.xxx.edu.cn>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR authorization first
fetchmail: authorization first
fetchmail: Repoll immediately on liang@mail.xxx.edu.cn
fetchmail: POP3< +OK <21046.1130420845@mail.xxx.edu.cn>
fetchmail: POP3> USER liang
fetchmail: POP3< +OK
fetchmail: POP3> PASS *
fetchmail: POP3< -ERR authorization failed
fetchmail: authorization failed
fetchmail: Authorization failure on liang@mail.xxx.edu.cn
fetchmail: POP3> QUIT
fetchmail: 6.2.5 querying mail.xxx.edu.cn (protocol POP3) at 2005年10月27日 星
期四 21时45分08秒: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: normal termination, status 3
给看看是怎么回事
mutt是可以发信的,就是收不到哦啊
发表于 2005-10-27 23:31:28 | 显示全部楼层
请帖出你的配置
回复 支持 反对

使用道具 举报

发表于 2005-10-28 10:36:44 | 显示全部楼层
我也遇到一个头疼的问题,
就是前几天在邮件列表里面看到大家说用mutt的最多,
我就弄了个mutt,不过一时好用,一时不好用,弄的郁闷
mutt+msmtp+fetchmail

先回答上面的问题,
auth on或者auth plain
看看,好不好使,
我的问题是,fetchmail
[php]
ailantian@vax:~$ fetchmail
2 messages for ailantian at email.xxx.edu.cn (24472 octets).
reading message ailantian@email.xxx.edu.cn:1 of 2 (18635 octets) ..fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from email.xxx.edu.cn
fetchmail: Query status=10 (SMTP)
[/php]
我telnet 本机25端口不通
后来我又改用[PHP]ailantian@vax:~$ fetchmail -akv -m "/usr/bin/msmtp -d %T" [/PHP]
好用了一次,看见所有的邮件都在终端里面一个一个的被处理,但是mutt的时候发现居然没有
邮件,昨天还好使的,今天就不行了,昨天fetchmail直接用daemon模式运行的,今天也试了不行
了。现在fetchmail不加-m参数就出现上面的错误,昨天我就那么收的,没有问题的,现在
也不知道问题出在哪里了

现在的问题是能发不能收,
[PHP]ailantian@vax:~$ cat .msmtprc
defaults
account abc
host email.abc.edu.cn
from ailantian@email.abc.edu.cn
auth plain
port 25
protocol smtp
user ailantian
password passwd

account default : abc
ailantian@vax:~$ cat .fetchmailrc
poll email.abc.edu.cn
protocol POP3
user "ailantian"
password "passwd"

poll pop.2911.net
protocol POP3
user "myname"
password "passwd"

poll pop3.sohu.com
protocol POP3
user "myname"
password "passwd"

ailantian@vax:~$ cat .muttrc
set folder="$HOME/.mutt/Mail"; set record="+sent"; set mbox="+mbox"; set postponed="+postponed"
my_hdr From: ailantian@email.abc.edu.cn
my_hdr Reply-to:ailantian<ailantian@email.abc.edu.cn>
set record="~/.mutt/Mail/sent-mail
set header=no
set include
set move=no
set sort_aux=date
set pager_stop
set fast_reply
set resolve=yes
set file_charset="utf-8:iso-8859-1:gb2312:gbk:gb18030"
set send_charset="utf-8:us-ascii:iso-8859-1:utf-8"
charset-hook ^us-ascii$ gb2312
charset-hook ^iso-8859-1$ gb2312
auto_view text/html application/msword
set editor="vi"
set sendmail="/usr/bin/msmtp"

ailantian@vax:~$ [/PHP]
回复 支持 反对

使用道具 举报

发表于 2005-10-28 12:23:16 | 显示全部楼层
在.fetchmailrc的开始加入
  1. defaults
  2. mda "/usr/bin/msmtp -d %T"
复制代码

试试呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表