主题: 客户端无法连接邮件服务器
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.5
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 12.04.3
- 与您的问题相关的日志信息:
====
window下使用foxmail 使用imap ssl加密 用户名和密码正常,有时候能收邮件,有时候连接好长时间。无法使用smtp发邮件(使用ssl)
----------------------------------------------------------------------------------------------------------------------------------
root@mail:/# tail /var/log/apache2/error.log
[Wed Oct 16 18:12:36 2013] [notice] caught SIGTERM, shutting down
[Wed Oct 16 18:13:48 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Oct 16 18:13:49 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Oct 16 18:13:49 2013] [warn] mod_wsgi: Compiled for Python/2.7.2+.
[Wed Oct 16 18:13:49 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Wed Oct 16 18:13:49 2013] [notice] Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Wed Oct 16 18:15:50 2013] [error] [client 192.168.0.133] File does not exist: /var/www/favicon.ico
[Wed Oct 16 18:27:47 2013] [error] [client 192.168.0.100] File does not exist: /var/www/favicon.ico
[Wed Oct 16 18:44:46 2013] [error] [client 58.246.1.146] Invalid URI in request d\xce\xb4m\r\xb9\xe3\xd4\xf3\xc6/\xac^\xdcX
[Wed Oct 16 18:45:00 2013] [error] [client 58.246.1.146] File does not exist: /var/www/autodiscover
----------------------------
root@mail:/# tail /var/log/dovecot.log
Oct 16 23:21:58 imap(): Info: Disconnected for inactivity bytes=72/1024
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=106/2715
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=809/8306
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=73/1057
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=180/1637
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=257/5341
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=212/1985
Oct 16 23:21:58 imap(xxxxx@ABC.com): Info: Disconnected for inactivity bytes=128/1488
Oct 16 23:23:33 auth-worker: Info: mysql(127.0.0.1): Connected to database vmail
Oct 16 23:23:35 imap-login: Info: Aborted login (auth failed, 1 attempts): user=<yj>, method=PLAIN, rip=113.106.98.45, lip=192.168.0.201, TLS
----------------------------------------------------------------------------------------------------------------------------
root@mail:/# tail /var/log/mail.log
Oct 16 23:15:08 mail postfix/smtpd[4351]: disconnect from unknown[113.106.98.45]
Oct 16 23:15:09 mail postfix/smtpd[4351]: connect from unknown[113.106.98.45]
Oct 16 23:15:17 mail postfix/smtpd[4351]: lost connection after EHLO from unknown[113.106.98.45]
Oct 16 23:15:17 mail postfix/smtpd[4351]: disconnect from unknown[113.106.98.45]
Oct 16 23:15:17 mail postfix/smtpd[4351]: connect from unknown[113.106.98.45]
Oct 16 23:15:19 mail postfix/smtpd[4351]: lost connection after EHLO from unknown[113.106.98.45]
Oct 16 23:15:19 mail postfix/smtpd[4351]: disconnect from unknown[113.106.98.45]
Oct 16 23:18:39 mail postfix/anvil[4353]: statistics: max connection rate 3/60s for (smtp:113.106.98.45) at Oct 16 23:15:17
Oct 16 23:18:39 mail postfix/anvil[4353]: statistics: max connection count 1 for (smtp:113.106.98.45) at Oct 16 23:15:08
Oct 16 23:18:39 mail postfix/anvil[4353]: statistics: max cache size 1 at Oct 16 23:15:08
---------------------------------------------------------------------------------------------------------------
root@mail:/# iptables -L -n
Chain INPUT (policy DROP)
target prot opt source destination
fail2ban-postfix tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190
fail2ban-dovecot tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190
fail2ban-roundcube tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190
fail2ban-ssh tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:995
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmptype 8
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-dovecot (1 references)
target prot opt source destination
DROP all -- 58.246.1.146 0.0.0.0/0
DROP all -- 58.241.37.38 0.0.0.0/0
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain fail2ban-postfix (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain fail2ban-roundcube (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
---------------------------------------------------------------------------------------------------------
下面是ubuntu在路由器上的端口映射
ID 外部端口 内部端口 IP地址 协议 状态 编辑
7 110 110 192.168.0.201 TCP 生效 编辑 删除
8 25 25 192.168.0.201 TCP 生效 编辑 删除
9 143 143 192.168.0.201 ALL 生效 编辑 删除
10 993 993 192.168.0.201 ALL 生效 编辑 删除
11 465 465 192.168.0.201 ALL 生效 编辑 删除
----------------------------------------------------------------------------------------------------------------