解决sendmail mail_location not set and autodetection failed
思韵闪耀
2013-03-18
0
linux sendmail 服务器建立以后。使用telnet能够登录,但是outlook不能登录
outlook: 登录邮件服务器时出错。“用户名”被拒绝。 帐户: 'mail.qiaorong.com', 服务器: 'mail.qiaorong.com', 协议: POP3, 服务器响应: '-ERR Plaintext authentication disallowed on non-secure (SSL/TLS) connections.', 端口: 110, 安全(SSL): 否, 服务器错误: 0x800CCC90, 错误号: 0x800CCC91
/var/log/maillog 日志如下:
Oct 28 08:52:54 qiaorong dovecot: imap(qiaorong): Error: user qiaorong: Initialization failed: mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/qiaorong
Oct 28 08:52:54 qiaorong dovecot: imap(qiaorong): Error: Invalid user settings. Refer to server log for more information.
Oct 28 08:54:23 qiaorong dovecot: master: Warning: Killed with signal 15 (by pid=1455 uid=0 code=kill)
Oct 28 08:54:24 qiaorong dovecot: master: Dovecot v2.0.beta6 (3156315704ef) starting up (core dumps disabled)
Oct 28 08:57:43 qiaorong dovecot: imap-login: Disconnected: Inactivity (tried to use disabled plaintext auth): rip=192.168.1.21, lip=192.168.1.16, mpid=0
Oct 28 09:00:33 qiaorong dovecot: imap-login: Disconnected (no auth attempts): rip=192.168.1.21, lip=192.168.1.16, mpid=0
Oct 28 09:27:24 qiaorong dovecot: pop3-login: Disconnected (tried to use disabled plaintext auth): rip=192.168.1.21, lip=192.168.1.16, mpid=0
Oct 28 09:27:26 qiaorong dovecot: pop3-login: Disconnected (tried to use disabled plaintext auth): rip=192.168.1.21, lip=192.168.1.16, mpid=0
解决方法:
 
唉。整了这么多天终于自己整出来了,欣欣然。这个问题主要原因是mail_location not set and autodetection failed 两个问题
关于第一个mail_location ,在/etc/dovecot/conf.d目录下有一个10-mail.conf的文件。内容如下:
#   mail_location = maildir:~/Maildir
    mail_location = mbox:~/mail:INBOX=/var/mail/%u
#   mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
取消注释
关于第二个问题。还是dovecot的问题,找到/etc/dovecot/dovecot.conf 文档,编辑里面的内容
protocols = imap pop3 lmtp
disable_plaintext_auth=no
ssl_disable = no
取消注释,并添加你的文件中或许没有的内容。
 


【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

相关内容

将IIS设置克隆到新服务器...
将IIS设置克隆到新服务器的最佳方法是使用IIS配置文件。以下是详...
2025-06-06
网页保护、网页图片保护
1、禁止另存网页,把如下代码加入到网页body/body中 程序代...
2025-05-30
搭建Git服务器及本机克隆...
Git是什么?Git是目前世界上最先进的分布式版本控制系统。SVN...
2025-03-17
ubuntu环境下搭建gi...
操作环境:服务器:Ubuntu 24.04.2 LTS+git 2...
2025-03-17
Linux系统挂载未分配硬...
先查看未挂载之前的磁盘使用情况发现磁盘使用率已经达到了96%,迫切...
2025-02-22
Linux lsblk 命...
简介Linux 中的 lsblk 命令,全称叫做:list blo...
2025-02-22

热门资讯

Discus X论坛配置sen... Discuz x2.5 后台邮件设置方法其实和X2/x1.5基本一样,但很多同学都不注意一些细节,比...
redhat Linux系统配... 1 .检查Send Mail 的安装包 [root@sql root]# rpm -qa | gre...
使用Sendmail的反垃圾邮... 在最近几年,无处不在的垃圾邮件已使得所有邮件箱不堪重负,不断地需要工具以抗击这一无穷尽的垃圾邮件流。...