错误1:
Aug 26 04:07:06 www postfix/qmgr[14535]: 2632761654: from=<lw@a.com>, size=1394, nrcpt=1 (queue active)
Aug 26 04:07:06 www postfix/smtpd[14587]: disconnect from unknown[192.168.85.132]
Aug 26 04:07:06 www postfix/smtp[14591]: 2632761654: to=<lby@a.com>, relay=none, delay=0.12, delays=0.09/0.03/0/0, dsn=5.4.6, status=bounced (mail for a.com loops back to myself)
我以前的文件配置是:
[root@www postfix-2.10.8]# vim /etc/postfix/main.cf
myhostname = mail.a.com
myorigin = a.com
mydomain = a.com
mydestination = $myhostname, localhost, $modoamin, ns.$mydomain
mynetworks = 192.168.85.0/24, 127.0.0.0/8
inet_interfaces = $myhostname, localhost
这样配置就老是出现上述情况,
而修改mydestination为:
mydestination = $myhostname, localhost, localhost.$modoamin, $mydomain
就正常了:
Aug 26 04:13:57 www postfix/qmgr[14618]: B87A861654: from=<lw@a.com>, size=1394, nrcpt=1 (queue active)
Aug 26 04:13:57 www postfix/smtpd[14623]: disconnect from unknown[192.168.85.132]
Aug 26 04:13:57 www postfix/local[14627]: B87A861654: to=<lby@a.com>, relay=local, delay=0.2, delays=0.09/0.1/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
补充:
搜到的资料上说:
[root@www ~]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.a.com ESMTP Postfix
postfix的远程投递代理smtp在联接到smtp端口后,检查上面波浪线的部分和myhostname是否相同
相同则认为是loop了,还有一种可能是查出来的primary mx的IP和你机器上的某个IP相同,也会被认为是loop;
错误2:无法发邮件
解决:勾选几个选项即可
如果勾选了,还是出现这种情况,看看你的防火墙和SElinux是否关闭了。
错误3:
[root@www ~]# telnet mail.a.com 110
Trying 192.168.85.128...
Connected to mail.a.com.
Escape character is '^]'.
+OK Dovecot ready.
user lby
+OK
pass lby #这里以输入密码就自动退出
Connection closed by foreign host.
解决办法:
修改/etc/dovecot/conf.d/10-mail.conf 文件中的mail_location改为
# 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
重启服务测试又出现错误:
[root@www ~]# telnet mail.a.com 110
Trying 192.168.85.128...
Connected to mail.a.com.
Escape character is '^]'.
+OK Dovecot ready.
USER lby
+OK
PASS lby
-ERR [IN-USE] Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2015-08-26 06:29:12]
Connection closed by foreign host.
解决办法:
[root@www ~]# mkdir /home/lby/mail/.imap/INBOX #按照上面的登录用户名在lby用户家目录下建立对应文件
错误4:
发邮件没错误,就是收邮件时有错误,点击OE的发送/接受-->全部接受,提示登录(这里用户和密码不要错)
然后就出现错误:
解决办法:
[root@www conf.d]# vim 10-auth.conf
改为disable_plaintext_auth = no
[root@www conf.d]# vim 10-ssl.conf
改为ssl = no 再次重启服务;
错误5:
前面的都配置了,后来出现这种错误:
[root@www conf.d]# mkdir /home/lw/mail/.imap/INBOX #这个lw是在OutlookExpress上登录的用户
还有一般不要设置使用安全码登录:
出错多看看/etc/varlog/maillog中的详细错误信息再去找解决办法,多花点时间找找资料看看相关知识。
阅读(1805) | 评论(0) | 转发(0) |