免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2233 | 回复: 2
打印 上一主题 下一主题

[Mail] postfix 奇怪的问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-16 13:06 |只看该作者 |倒序浏览
Jul 16 13:04:53 mail postfix/postfix-script[23261]: stopping the Postfix mail system
Jul 16 13:04:54 mail postfix/master[23187]: terminating on signal 15
Jul 16 13:04:57 mail postfix/postfix-script[23310]: starting the Postfix mail system
Jul 16 13:04:57 mail postfix/master[23311]: daemon started -- version 2.5.2, configuration /etc/postfix
Jul 16 13:05:06 mail postfix/smtpd[23315]: connect from localhost.localdomain[127.0.0.1]
Jul 16 13:05:06 mail postfix/trivial-rewrite[23317]: warning: do not list domain mail.abc.com in BOTH mydestination and virtual_mailbox_domains
Jul 16 13:05:06 mail postfix/smtpd[23315]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <aa@mail.abc.com>: Recipient address rejected: User unknown in local recipient table; from=<aa@mail.abc.com> to=<aa@mail.abc.com> proto=ESMTP helo=<localhost.localdomain>
Jul 16 13:05:06 mail postfix/smtpd[23315]: lost connection after RCPT from localhost.localdomain[127.0.0.1]
Jul 16 13:05:06 mail postfix/smtpd[23315]: disconnect from localhost.localdomain[127.0.0.1]
Jul 16 13:06:23 mail postfix/smtpd[23315]: connect from localhost.localdomain[127.0.0.1]
Jul 16 13:06:23 mail postfix/smtpd[23315]: 563B62ECC8: client=localhost.localdomain[127.0.0.1]
Jul 16 13:06:23 mail postfix/cleanup[23325]: 563B62ECC8: message-id=<20080716050623.563B62ECC8@mail.abc.com>
Jul 16 13:06:23 mail postfix/qmgr[23312]: 563B62ECC8: from=<aa@mail.abc.com>, size=564, nrcpt=1 (queue active)
Jul 16 13:06:23 mail postfix/smtpd[23315]: disconnect from localhost.localdomain[127.0.0.1]
Jul 16 13:07:03 mail postfix/smtp[23327]: 563B62ECC8: to=<confuseding @163.com>, relay=163mx02.mxmail.netease.com[220.181.12.64]:25, delay=40, delays=0.24/0.02/0.26/40, dsn=2.0.0, status=sent (250 Mail OK queued as mx14,QMCowLBLZwHufX1IqHKKAg==.49403S2 1216183823)
Jul 16 13:07:03 mail postfix/qmgr[23312]: 563B62ECC8: removed

上面是我的postfix  日志 他说在mydestination and virtual_mailbox_domains 中没有发现 mail.abc.com  这个域。

我的 main.cf 中的确写明了啊。如下
  1. command_directory = /usr/sbin
  2. config_directory = /etc/postfix
  3. daemon_directory = /usr/libexec/postfix
  4. data_directory = /var/lib/postfix
  5. debug_peer_level = 2
  6. html_directory = no
  7. mail_owner = postfix
  8. mailq_path = /usr/bin/mailq
  9. manpage_directory = /usr/local/man
  10. newaliases_path = /usr/bin/newaliases
  11. queue_directory = /var/spool/postfix
  12. readme_directory = no
  13. command_directory = /usr/sbin
  14. config_directory = /etc/postfix
  15. daemon_directory = /usr/libexec/postfix
  16. data_directory = /var/lib/postfix
  17. debug_peer_level = 2
  18. html_directory = no
  19. mail_owner = postfix
  20. mailq_path = /usr/bin/mailq
  21. manpage_directory = /usr/local/man
  22. newaliases_path = /usr/bin/newaliases
  23. queue_directory = /var/spool/postfix
  24. readme_directory = no
  25. sample_directory = /etc/postfix
  26. sendmail_path = /usr/sbin/sendmail
  27. setgid_group = postdrop
  28. unknown_local_recipient_reject_code = 550
  29. myhostname = mail.abc.com
  30. mydomain = abc.com
  31. myorigin = $mydomain
  32. mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain
  33. mynetworks = 192.168.0.0/24,127.0.0.0/8
  34. alias_maps = hash:/etc/aliases
  35. home_mailbox = Maildir/
  36. # Add following line in file's finality
  37. virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
  38. virtual_mailbox_base = /home/mail
  39. virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
  40. virtual_mailbox_limit = 102400000
  41. virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
  42. virtual_minimum_uid = 502
  43. virtual_uid_maps = static:502
  44. virtual_gid_maps = static:503
  45. virtual_transport = virtual
  46. # Additional for quota support
  47. virtual_create_maildirsize = yes
  48. virtual_mailbox_extended = yes
  49. virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_limit_maps.cf
  50. virtual_mailbox_limit_override = yes
  51. virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his disk
  52. #space quota, please try again later.
  53. virtual_overquota_bounce = yes
  54. virtual_trash_count=yes
  55. virtual_trash_name=.Trash
  56. broken_sasl_auth_clients = yes
  57. smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient, reject_unauth_destination,reject_unauth_pipelining, reject_invalid_hostname,reject_rbl_client opm.blitzed.org,reject_rbl_client list.dsbl.org,reject_rbl_client bl.spamcop.net,reject_rbl_client sbl-xbl.spamhaus.org

  58. smtpd_sasl_auth_enable = yes
  59. smtpd_sasl_local_domain = $myhostname
  60. smtpd_sasl_security_options = noanonymous
复制代码


mysql 里的确也有mail.abc.com域

  1. mysql> select * from domain\G
  2. *************************** 1. row ***************************
  3.               domain: extmail.org
  4.          description: virtualDomain for extmail.org
  5.          hashdirpath: A0/B0
  6.             maxalias: 50
  7.             maxusers: 50
  8.             maxquota: 1073741824
  9.      maxnetdiskquota: 1073741824
  10.            transport: NULL
  11.           can_signup: 1
  12.        default_quota: 5242880
  13. default_netdiskquota: 5242880
  14.       default_expire: 1y
  15.         disablesmtpd: 0
  16.          disablesmtp: 0
  17.       disablewebmail: 0
  18.       disablenetdisk: 0
  19.          disableimap: 1
  20.          disablepop3: 0
  21.           createdate: 2007-02-14 15:10:04
  22.           expiredate: 2010-11-08
  23.               active: 1
  24. *************************** 2. row ***************************
  25.               domain: mail.abc.com
  26.          description: 桎技?mail.abc.com
  27.          hashdirpath:
  28.             maxalias: 100
  29.             maxusers: 100
  30.             maxquota: 524288000S
  31.      maxnetdiskquota: 524288000S
  32.            transport:
  33.           can_signup: 0
  34.        default_quota: 5242880S
  35. default_netdiskquota: 5242880S
  36.       default_expire: 1y
  37.         disablesmtpd: 0
  38.          disablesmtp: 0
  39.       disablewebmail: 0
  40.       disablenetdisk: 0
  41.          disableimap: 1
  42.          disablepop3: 0
  43.           createdate: 2008-07-16 11:28:37
  44.           expiredate: 0000-00-00
  45.               active: 1
  46. 2 rows in set (0.00 sec)

复制代码


但不知道为什么   description: 桎技?mail.abc.com   那里是个乱码。

我现在还有点不明白。163.com 这个域没有在 mydestination and virtual_mailbox_domains 中怎么就能发出去了呢?

论坛徽章:
0
2 [报告]
发表于 2008-07-16 15:03 |只看该作者
把mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain中的
$myhostname去掉,或者改一下myhostname的值

论坛徽章:
0
3 [报告]
发表于 2008-07-18 09:21 |只看该作者
原帖由 xmbbx 于 2008-7-16 15:03 发表
把mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain中的
$myhostname去掉,或者改一下myhostname的值

恩,非常感谢,就是那的问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP