LinuxSir.cn,穿越时空的Linuxsir!

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

postfix+dovecot局域网内使用OE无法登录

[复制链接]
发表于 2008-11-21 10:48:50 | 显示全部楼层 |阅读模式
用oe连接cheney@mail.jimmychem.gicp.net时无法收发邮件,连接不上。
oe的配置:
cheney@mail.jimmychem.gicp.net
pop3:mail.jimmychem.gicp.net
smtp:mail.jimmychem.gicp.net

已经有cheney用户了:
  1. ls /var/mail
  2. cheney
复制代码


相关配置:
1、dns、telnet情况
A、dig mx


  1. ; <<>> DiG 9.5.0-P2 <<>> jimmychem.gicp.net
  2. ;; global options:  printcmd
  3. ;; Got answer:
  4. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58303
  5. ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

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

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

  10. ;; Query time: 3 msec
  11. ;; SERVER: 192.168.1.104#53(192.168.1.104)
  12. ;; WHEN: Thu Nov 20 16:23:08 2008
  13. ;; MSG SIZE  rcvd: 52
复制代码

B、telnet

  1. telnet mail.jimmychem.gicp.net 25
  2. Trying 192.168.1.89...
  3. Connected to mail.jimmychem.gicp.net.
  4. Escape character is '^]'.
  5. 220 mail.jimmychem.gicp.net ESMTP Postfix (Ubuntu)
复制代码


  1. telnet mail.jimmychem.gicp.net 143
  2. Trying 192.168.1.89...
  3. Connected to mail.jimmychem.gicp.net.
  4. Escape character is '^]'.
  5. * OK Dovecot ready.
复制代码


  1. telnet mail.jimmychem.gicp.net 110
  2. Trying 192.168.1.89...
  3. Connected to mail.jimmychem.gicp.net.
  4. Escape character is '^]'.
  5. +OK Dovecot ready.
复制代码

2、相关配置文件
A、psotfix

  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version


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

  6. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  7. biff = no

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

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

  12. readme_directory = no

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

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

  21. myhostname = mail.jimmychem.gicp.net
  22. alias_maps = hash:/etc/aliases
  23. alias_database = hash:/etc/aliases
  24. myorigin = $myhostname
  25. mydestination = $myhostname,localhost.$myhostname,localhost
  26. relayhost =
  27. mynetworks = 127.0.0.0/8,192.168.1.0/24
  28. mailbox_size_limit = 0
  29. recipient_delimiter = +
  30. inet_interfaces = all
  31. default_transport = error
  32. relay_transport = error
复制代码


B、dovecot(凡是前面有#号的都没粘贴上来)

  1. protocols = imap imaps pop3 pop3s
  2. protocol imap {

  3. }
  4. protocol pop3 {

  5. }
  6. protocol managesieve {
  7. sieve=~/.dovecot.sieve
  8. sieve_storage=~/sieve

  9. auth default {
  10. mechanisms = plain
  11. passdb pam {
  12.    }
  13. userdb passwd {

  14. user = root
  15. }
  16. dict {
  17.   #quota = mysql:/etc/dovecot-dict-quota.conf
  18. }
  19. plugin {

复制代码

3、cat /var/log/mail.log 前面几行和最后几行
前面的几行:

  1. Nov 20 10:06:00 luqiuli postfix/master[9983]: daemon started -- version 2.5.5, configuration /etc/postfix
  2. Nov 20 10:25:09 luqiuli postfix/smtpd[12683]: connect from localhost[127.0.0.1]
  3. Nov 20 10:25:27 luqiuli postfix/smtpd[12683]: disconnect from localhost[127.0.0.1]
  4. Nov 20 11:35:51 luqiuli postfix/master[9983]: terminating on signal 15
  5. Nov 20 14:00:59 luqiuli postfix/master[4875]: daemon started -- version 2.5.5, configuration /etc/postfix
  6. Nov 20 14:46:43 luqiuli postfix/smtpd[6752]: connect from localhost[127.0.0.1]
  7. Nov 20 14:47:47 luqiuli postfix/smtpd[6752]: 89F8C1386D: client=localhost[127.0.0.1]
  8. Nov 20 14:48:09 luqiuli postfix/cleanup[6756]: 89F8C1386D: message-id=<20081120064747.89F8C1386D@luqiuli>
  9. Nov 20 14:48:09 luqiuli postfix/qmgr[4907]: 89F8C1386D: from=<cheney@localhost>, size=334, nrcpt=1 (queue active)
  10. 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)
  11. Nov 20 14:48:09 luqiuli postfix/qmgr[4907]: 89F8C1386D: removed
  12. Nov 20 14:48:13 luqiuli postfix/smtpd[6752]: disconnect from localhost[127.0.0.1]
  13. Nov 20 15:02:30 luqiuli dovecot: Dovecot v1.1.4 starting up
  14. Nov 20 15:02:30 luqiuli dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while..
  15. Nov 20 15:02:31 luqiuli dovecot: Killed with signal 15
  16. Nov 20 15:02:31 luqiuli dovecot: Dovecot v1.1.4 starting up
  17. Nov 20 15:02:31 luqiuli dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while..
  18. Nov 20 15:02:31 luqiuli dovecot: Killed with signal 15
  19. Nov 20 15:02:31 luqiuli dovecot: Dovecot v1.1.4 starting up
  20. Nov 20 15:02:31 luqiuli dovecot: Generating Diffie-Hellman parameters for the first time. This may take a while..
  21. 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
  22. Nov 20 15:08:55 luqiuli postfix/master[4875]: terminating on signal 15
  23. 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
  24. Nov 20 15:10:55 luqiuli postfix/master[8035]: daemon started -- version 2.5.5, configuration /etc/postfix
  25. Nov 20 15:11:56 luqiuli postfix/smtpd[8050]: connect from localhost[127.0.0.1]
  26. Nov 20 15:12:04 luqiuli postfix/smtpd[8050]: disconnect from localhost[127.0.0.1]
复制代码


最后面的几行:

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


哪里出错了?我是从网上找了好多文章,然后自己配置的。
 楼主| 发表于 2008-11-21 10:58:13 | 显示全部楼层
在另一台电脑上查看MX和telnet

mx



telnet 25


telnet 110



telnet 143

回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-21 11:05:45 | 显示全部楼层
有热心人士帮忙的话我提供ssh私钥。不是服务器,是我自己办公的电脑。我email:cheneylo AT 126.com
qq:308154878

正在学习怎么用IRC。
回复 支持 反对

使用道具 举报

发表于 2008-11-21 17:38:12 | 显示全部楼层
你没有验证的服务,如SASL等.
回复 支持 反对

使用道具 举报

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

本版积分规则

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