|
用oe连接cheney@mail.jimmychem.gicp.net时无法收发邮件,连接不上。
oe的配置:
cheney@mail.jimmychem.gicp.net
pop3:mail.jimmychem.gicp.net
smtp:mail.jimmychem.gicp.net
已经有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
复制代码
哪里出错了?我是从网上找了好多文章,然后自己配置的。 |
|