- 论坛徽章:
- 1
|
本帖最后由 dbsrv 于 2015-03-05 18:03 编辑
刚建了一个postfix+mysql+dovecot+roundcubemail,遇到几个问题。
1、用客户端给外部邮箱发邮件没问题,给本地邮箱发邮件能发,但收不到。web登录是空的,客户端收取也没有。队列里是空的,收件方的文件夹里能看到邮件的文件。
发送时的日志
Mar 5 17:52:30 210-B-C-D postfix/smtpd[11298]: connect from unknown[218.X.X.X]
Mar 5 17:52:30 210-B-C-D postfix/smtpd[11298]: 9B2FC11F8552: client=unknown[218.X.X.X]
Mar 5 17:52:30 210-B-C-D postfix/cleanup[11303]: 9B2FC11F8552: message-id=<201503051752143334125@9yun.com>
Mar 5 17:52:30 210-B-C-D postfix/qmgr[11296]: 9B2FC11F8552: from=<abc@9yun.com>, size=3872, nrcpt=1 (queue active)
Mar 5 17:52:30 210-B-C-D postfix/virtual[11304]: 9B2FC11F8552: to=<def@9yun.com>, relay=virtual, delay=0.22, delays=0.2/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Mar 5 17:52:30 210-B-C-D postfix/qmgr[11296]: 9B2FC11F8552: removed
Mar 5 17:52:30 210-B-C-D postfix/smtpd[11298]: disconnect from unknown[218.X.X.X]
2、用web发,提示smtp 错误250认证失败。日志:
Mar 5 17:55:09 210-B-C-D dovecot: imap-login: Login: user=<abc@9yun.com>, method=PLAIN, rip=::ffff:210.b.c.d, lip=::ffff:210.b.c.d, secured
Mar 5 17:55:09 210-B-C-D postfix/smtpd[11340]: connect from unknown[210.b.c.d]
Mar 5 17:55:09 210-B-C-D postfix/smtpd[11340]: disconnect from unknown[210.b.c.d]
Mar 5 17:55:09 210-B-C-D dovecot: IMAP(abc@9yun.com): Disconnected: Logged out
Mar 5 17:55:09 210-B-C-D dovecot: dict: Leaked a t_pop() call in I/O handler (nil)
Mar 5 17:55:09 210-B-C-D dovecot: dict: Raw backtrace: dict [0x8054cd1] -> dict [0x8054bec] -> dict(io_loop_handler_run+0x1db) [0x80577eb] -> dict(io_loop_run+0x1c) [0x8056c5c] -> dict(main+0x1a3) [0x804ecd3] -> /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc) [0x76ee9c] -> dict [0x804dbe1]
Mar 5 17:55:09 210-B-C-D dovecot: child 11339 (dict) killed with signal 6
3、客户端给自己发邮件,提示错误550,没有用户。日志;
Mar 5 17:56:53 postfix/smtpd[11345]: connect from unknown[218.x.x.x]
Mar 5 17:56:53 210-B-C-D postfix/smtpd[11345]: 2A18511F8552: client=unknown[218.x.x.x]
Mar 5 17:56:53 210-B-C-D postfix/smtpd[11345]: lost connection after RCPT from unknown[218.x.x.x]
Mar 5 17:56:53 210-B-C-D postfix/smtpd[11345]: disconnect from unknown[218.x.x.x]
无操作时,日志中经常会出现这些内容
Mar 5 17:54:43 210-B-C-D dovecot: imap-login: Login: user=<abc@9yun.com>, method=PLAIN, rip=::ffff:210.b.c.d, lip=::ffff:210.b.c.d, secured
Mar 5 17:54:43 210-B-C-D dovecot: IMAP(abc@9yun.com): Disconnected: Logged out
Mar 5 17:54:43 210-B-C-D dovecot: dict: Leaked a t_pop() call in I/O handler (nil)
Mar 5 17:54:43 210-B-C-D dovecot: dict: Raw backtrace: dict [0x8054cd1] -> dict [0x8054bec] -> dict(io_loop_handler_run+0x1db) [0x80577eb] -> dict(io_loop_run+0x1c) [0x8056c5c] -> dict(main+0x1a3) [0x804ecd3] -> /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc) [0x76ee9c] -> dict [0x804dbe1]
Mar 5 17:54:43 210-B-C-D dovecot: child 11309 (dict) killed with signal 6
我的main.cf内容
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- mail_owner = postfix
- inet_interfaces = all
- unknown_local_recipient_reject_code = 550
- mynetworks = 218.x.x.0/26, 210.b.c.d/21, 127.0.0.0/8
- smtpd_recipient_restrictions =
- permit_mynetworks,
- permit_sasl_authenticated,
- reject_non_fqdn_sender,
- reject_non_fqdn_recipient,
- reject_unauth_destination,
- reject_unauth_pipelining,
- reject_invalid_hostname
- alias_maps = hash:/etc/aliases
- home_mailbox = Maildir/
-
-
- header_checks = regexp:/etc/postfix/header_checks
- debug_peer_level = 2
- debugger_command =
- PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
- ddd $daemon_directory/$process_name $process_id & sleep 5
- sendmail_path = /usr/sbin/sendmail
- newaliases_path = /usr/bin/newaliases
- mailq_path = /usr/bin/mailq
- setgid_group = postdrop
- html_directory = no
- manpage_directory = /usr/local/man
- sample_directory = /etc/postfix
- readme_directory = no
- virtual_mailbox_base = /var/mail/vmail/
- virtual_uid_maps = static:501
- virtual_gid_maps = static:89
- virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
- virtual_alias_maps =
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
- virtual_mailbox_maps =
- proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf
- virtual_create_maildirsize = yes
- virtual_mailbox_extended = yes
- virtual_mailbox_limit_maps = mysql:/etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf
- virtual_mailbox_limit_override = yes
- virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
- virtual_overquota_bounce = yes
- virtual_transport = virtual
- virtual_alias_domains = $virtual_alias_maps
复制代码 |
|