当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : postfix+dovecot 局域网内OE不能收发邮件
帖子发表于 : 2008-11-20 16:45 

注册: 2008-07-07 6:52
帖子: 19
送出感谢: 0 次
接收感谢: 0 次
用oe连接cheney@mail.jimmychem.gicp.net时无法收发邮件,连接不上。
oe的配置:
cheney@mail.jimmychem.gicp.net
pop3:mail.jimmychem.gicp.net
smtp:mail.jimmychem.gicp.net

代码:
 ls /var/mail
cheney


相关配置:
1、dns、telnet情况
A、dig mx
代码:
 
; <<>> DiG 9.5.0-P2 <<>> jimmychem.gicp.net
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58303
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;jimmychem.gicp.net.      IN   A

;; ANSWER SECTION:
jimmychem.gicp.net.   3600   IN   A   192.168.1.104

;; Query time: 3 msec
;; SERVER: 192.168.1.104#53(192.168.1.104)
;; WHEN: Thu Nov 20 16:23:08 2008
;; MSG SIZE  rcvd: 52

B、telnet
代码:
 telnet mail.jimmychem.gicp.net 25
Trying 192.168.1.89...
Connected to mail.jimmychem.gicp.net.
Escape character is '^]'.
220 mail.jimmychem.gicp.net ESMTP Postfix (Ubuntu)


代码:
 telnet mail.jimmychem.gicp.net 143
Trying 192.168.1.89...
Connected to mail.jimmychem.gicp.net.
Escape character is '^]'.
* OK Dovecot ready.


代码:
 telnet mail.jimmychem.gicp.net 110
Trying 192.168.1.89...
Connected to mail.jimmychem.gicp.net.
Escape character is '^]'.
+OK Dovecot ready.

2、相关配置文件
A、psotfix
代码:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.jimmychem.gicp.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $myhostname
mydestination = $myhostname,localhost.$myhostname,localhost
relayhost =
mynetworks = 127.0.0.0/8,192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
default_transport = error
relay_transport = error


B、dovecot(凡是前面有#号的都没粘贴上来)
代码:
protocols = imap imaps pop3 pop3s
protocol imap {

}
protocol pop3 {

}
protocol managesieve {
sieve=~/.dovecot.sieve
sieve_storage=~/sieve

auth default {
 mechanisms = plain
passdb pam {
   }
userdb passwd {
 }
user = root
}
dict {
  #quota = mysql:/etc/dovecot-dict-quota.conf
}
plugin {


3、cat /var/log/mail.log 前面几行和最后几行
前面的几行:
代码:
Nov 20 10:06:00 luqiuli postfix/master[9983]: daemon started -- version 2.5.5, configuration /etc/postfix
Nov 20 10:25:09 luqiuli postfix/smtpd[12683]: connect from localhost[127.0.0.1]
Nov 20 10:25:27 luqiuli postfix/smtpd[12683]: disconnect from localhost[127.0.0.1]
Nov 20 11:35:51 luqiuli postfix/master[9983]: terminating on signal 15
Nov 20 14:00:59 luqiuli postfix/master[4875]: daemon started -- version 2.5.5, configuration /etc/postfix
Nov 20 14:46:43 luqiuli postfix/smtpd[6752]: connect from localhost[127.0.0.1]
Nov 20 14:47:47 luqiuli postfix/smtpd[6752]: 89F8C1386D: client=localhost[127.0.0.1]
Nov 20 14:48:09 luqiuli postfix/cleanup[6756]: 89F8C1386D: message-id=<20081120064747.89F8C1386D@luqiuli>
Nov 20 14:48:09 luqiuli postfix/qmgr[4907]: 89F8C1386D: from=<cheney@localhost>, size=334, nrcpt=1 (queue active)
Nov 20 14:48:09 luqiuli postfix/local[6757]: 89F8C1386D: to=<cheney@localhost>, relay=local, delay=44, delays=44/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 20 14:48:09 luqiuli postfix/qmgr[4907]: 89F8C1386D: removed
Nov 20 14:48:13 luqiuli postfix/smtpd[6752]: disconnect from localhost[127.0.0.1]
Nov 20 15:02:30 luqiuli dovecot: Dovecot v1.1.4 starting up
Nov 20 15:02:30 luqiuli dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while..
Nov 20 15:02:31 luqiuli dovecot: Killed with signal 15
Nov 20 15:02:31 luqiuli dovecot: Dovecot v1.1.4 starting up
Nov 20 15:02:31 luqiuli dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while..
Nov 20 15:02:31 luqiuli dovecot: Killed with signal 15
Nov 20 15:02:31 luqiuli dovecot: Dovecot v1.1.4 starting up
Nov 20 15:02:31 luqiuli dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while..
Nov 20 15:04:03 luqiuli dovecot: pop3-login: Aborted login (no auth attempts): rip=192.168.1.89, lip=192.168.1.89, secured
Nov 20 15:08:55 luqiuli postfix/master[4875]: terminating on signal 15
Nov 20 15:09:36 luqiuli dovecot: pop3-login: Aborted login (no auth attempts): rip=192.168.1.89, lip=192.168.1.89, secured
Nov 20 15:10:55 luqiuli postfix/master[8035]: daemon started -- version 2.5.5, configuration /etc/postfix
Nov 20 15:11:56 luqiuli postfix/smtpd[8050]: connect from localhost[127.0.0.1]
Nov 20 15:12:04 luqiuli postfix/smtpd[8050]: disconnect from localhost[127.0.0.1]


最后面的几行:
代码:
Nov 20 15:59:10 luqiuli postfix/smtpd[10406]: disconnect from mail.jimmychem.gicp.net[192.168.1.89]
Nov 20 15:59:20 luqiuli dovecot: IMAP(cheney): Connection closed bytes=865/3882
Nov 20 16:00:37 luqiuli dovecot: pop3-login: Disconnected (no auth attempts): rip=192.168.1.104, lip=192.168.1.89
Nov 20 16:00:55 luqiuli last message repeated 11 times
Nov 20 16:04:27 luqiuli dovecot: imap-login: Disconnected (no auth attempts): rip=192.168.1.89, lip=192.168.1.89, secured
Nov 20 16:20:22 luqiuli dovecot: pop3-login: Disconnected (no auth attempts): rip=192.168.1.104, lip=192.168.1.89
Nov 20 16:20:53 luqiuli dovecot: pop3-login: Disconnected (no auth attempts): rip=192.168.1.104, lip=192.168.1.89
Nov 20 16:25:33 luqiuli postfix/smtpd[10821]: connect from mail.jimmychem.gicp.net[192.168.1.89]
Nov 20 16:26:21 luqiuli postfix/smtpd[10821]: disconnect from mail.jimmychem.gicp.net[192.168.1.89]
Nov 20 16:26:58 luqiuli dovecot: imap-login: Disconnected (no auth attempts): rip=192.168.1.89, lip=192.168.1.89, secured
Nov 20 16:28:46 luqiuli dovecot: pop3-login: Disconnected (no auth attempts): rip=192.168.1.89, lip=192.168.1.89, secured


问题出在哪里呢?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译