免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] Postfix无接收电邮 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-02 13:47 |只看该作者 |倒序浏览
用FreeBSD 7.0的Postfix发电邮至gmail,yahoo没问题, 但却无接收电邮, 请求各位大大帮忙看看设定有什么问题, 感谢万分 …

**************** tail /var/log/maillog ****************
May 2 12:42:02 dl postfix/smtpd[7540]: warning: database /usr/local/etc/postfix/aliases.db is older than source file /usr/local/etc/postfix/aliases
May 2 12:42:04 dl postfix/smtpd[7540]: connect from smtpr6.tom.com[202.108.252.136]
May 2 12:42:04 dl postfix/trivial-rewrite[7544]: warning: do not list domain sampleTest.com in BOTH mydestination and virtual_mailbox_domains
May 2 12:42:04 dl postfix/smtpd[7540]: NOQUEUE: reject: RCPT from smtpr6.tom.com[202.108.252.136]: 554 5.7.1 <smtpr6>: Client host rejected: Access denied; from=<xxx> to=<query> proto=SMTP helo=<tom>
May 2 12:42:04 dl postfix/smtpd[7540]: disconnect from smtpr6.tom.com[202.108.252.136]

**************** tom.com收到的退信信息 ****************
你发送到query@sampleTest.com的邮件由于以下原因被退回 : SMTP error, RCPT TO: 554 5.7.1 <smtpr3>: Client host rejected: Access denied
The message to query@sampleTest.com is bounced because : SMTP error, RCPT TO: 554 5.7.1 <smtpr3>: Client host rejected: Access denied



****************  /usr/local/etc/postfix/main.cf   ****************

alias_maps=hash:/usr/local/etc/postfix/aliases
alias_database = hash:/usr/local/etc/postfix/aliases
myhostname = mail.sampleTest.com
mydomain = sampleTest.com
myorigin = $mydomain
mydestination = $myhostname
mynetworks = 127.0.0.0/8
inet_inetfaces=all
home_mailbox = Maildir/
default_privs=nobody
disable_vrfy_command = yes
mailbox_size_limit = 10737418240
message_size_limit = 12582912

virtual_minimum_uid = 125
virtual_uid_maps = static:125
virtual_gid_maps = static:125
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
virtual_mailbox_domains = $mydomain
virtual_mailbox_base = /var/mail
virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox
virtual_mailbox_limit = 107374182400
virtual_mailbox_limit_override = yes
virtual_mailbox_extended = yes
virtual_create_maildirsize = yes
virtual_overquota_bounce = yes

allow_mail_to_commands = alias,forward,include
allow_mail_to_files = alias,forward,include
header_checks = regexp:/usr/local/etc/postfix/header_checks
default_process_limit = 30000
local_destination_concurrency_limit = 30000
default_destination_concurrency_limit = 30000

smtpd_client_restrictions = permit_mynetworks,permit_sasl_authenticated,reject
smtpd_helo_restrictions = reject_invalid_hostname,permit_mynetworks,
smtpd_sender_restrictions = permit_mynetworks,reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,permit_auth_destination,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination,check_relay_domains,reject
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_sasl_type = cyrus
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_authenticated_header = yes
smtpd_helo_required=yes
smtpd_delay_reject=yes
smtpd_client_connection_count_limit = 100000
smtpd_timeout = 30s
smtpd_banner=$myhostname ESMTP "Version not Available"

smtp_host_lookup = native,dns
smtp_use_tls = yes
smtp_tls_scert_verifydepth = 2
smtp_tls_note_starttls_offer = yes
smtpd_tls_security_level = may
smtpd_tls_key_file = /usr/local/etc/postfix/server.pem
smtpd_tls_cert_file = /usr/local/etc/postfix/server.pem
smtpd_tls_CAfile = /usr/local/etc/postfix/server.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
broken_sasl_auth_clients = yes
tls_random_source = dev:/dev/urandom

论坛徽章:
0
2 [报告]
发表于 2008-05-03 09:14 |只看该作者
FreeBSD 7.0的Postfix  额?你咋安装的啊

论坛徽章:
0
3 [报告]
发表于 2008-05-03 10:05 |只看该作者
已解決了問題,

我將 smtpd_client_restrictions = permit_mynetworks,permit_sasl_authenticated,reject
最后的reject去掉, 就可以传送至gmail.com和tom.com,

论坛徽章:
0
4 [报告]
发表于 2008-05-03 10:10 |只看该作者
FreeBSD 7.0  那如何搭建邮件系统呢?

论坛徽章:
0
5 [报告]
发表于 2008-05-03 10:24 |只看该作者
請參考以下網站:

http://www.linux-cn.com/html/net ... 070528/43709_6.html
http://www.george.idv.tw/index.php/FreeBSD/MailScanner
http://freebsd.ntut.idv.tw/document/postfix_mail_manage.html
http://www.weithenn.idv.tw/cgi-b ... nti-Virus_Anti-SPAM
http://so-ga.com/Discuz!/archiver/?tid-345864.html
http://freebsd.ntut.idv.tw/
http://yanweihu.blog.51cto.com/108180/55280
http://www.courier-mta.org/imap/
http://www.postfix.org/
http://www.thismail.org/bbs/view ... &extra=page%3D1
http://www.intron.ac/cn/freesoft/courier.php
http://wiki.debian.org.hk/w/Migr ... to_Postfix_Mailgate
http://popbsmtp.sourceforge.net/
http://yocum.org/faqs/postfix-tls-sasl.html
http://postfix.state-of-mind.de/ ... t_is_smtp_auth.html
http://www.intron.ac/cn/freesoft/courier.php
http://www.bowe.id.au/michael/isp/postfix-server.htm

http://blog.chinaunix.net/u/27493/showart_415941.html
http://www.cert.org.tw/document/column/show.php?key=81
http://www.linux-cn.com/html/net ... 070528/43699_6.html
http://www.linux-cn.com/html/net ... 20070528/43709.html
http://www.backup.idv.tw/viewtopic.php?t=1742
http://blog.wu-boy.com/2007/03/15/76/
http://giayiu.twbbs.org/FreeBSD/
http://eoffice.im.fju.edu.tw/phpbb/viewtopic.php?p=6724&
http://www.postfix.org/SASL_README.html
http://zjf.luhexx.com/article/2006/0803/article_12.html
http://mt.freebsd.org.hk/archives/000026.html

http://freebsd.ntut.idv.tw/docum ... fixadmin_mysql.html
http://bbs2.chinaunix.net/thread-987344-1-1.html
http://www.nixsky.com/server/mail/2007-12/317.html
http://www.george.idv.tw/index.php/FreeBSD/CourierIMAP
http://freebsd.ntut.idv.tw/docum ... p_squirrelmail.html
http://www.os.org.cn/forum/viewt ... d47193b7de0a1440ea2
http://www.cnfug.org/journal/systems/2004/000084.html
http://www.cublog.cn/u/9817/showart_289746.html

http://www.extmail.org/docs/extmail_solution_freebsd/
http://www.linux-cn.com/html/net ... 20070528/43617.html
http://www.cockcn.com/mail/postf ... lSolutionHowto.html
http://www.pc51.net/server/mail/2007-01-03/1873.html
http://www.knowsky.com/342938.html
http://www.extmail.org/forum/thread-3969-1-1.html
http://www.pc51.net/e/DoPrint/?classid=14&id=9894
http://www.yuanma.org/data/2006/0803/article_1307.htm
http://www.weithenn.idv.tw/cgi-b ... d%e7%ad%86%e8%a8%98
http://blog.pixnet.net/bojack/post/3158821
http://freebsd.ntut.idv.tw/docum ... ssassin_clamav.html
http://www.chmhome.com/technolog ... 070527/11931_6.html
http://blog.chinaunix.net/u/9951/showart_414861.html
http://www.extmail.org/forum/archiver/tid-5697.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP