免费注册 查看新帖 |

Chinaunix

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

postfix 无法收到邮件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-01 19:43 |只看该作者 |倒序浏览
5可用积分
我搭建的一个邮件系统,现在可以正常的发送邮件,但是无法正确接收到邮件请大家帮忙看下,错误提示如下:
请大家帮忙看下,谢谢!

Dec  1 15:27:56 localhost postfix/smtpd[16312]: connect from smtpbg215.qq.com[112.90.139.244]
Dec  1 15:27:56 localhost postfix/smtpd[16312]: NOQUEUE: reject: RCPT from smtpbg215.qq.com[112.90.139.244]: 554 5.7.1 <zhuhj@xxxx.com>: Relay access denied; from=<32909xxxx@qq.com> to=<zhuhj@xxxx.com> proto=SMTP helo=<smtpbg215.qq.com>
Dec  1 15:27:56 localhost postfix/smtpd[16312]: disconnect from smtpbg215.qq.com[112.90.139.244]

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2011-12-01 19:58 |只看该作者
没进入队列,楼主测试过本地互发正常不,除了qq,别的邮件服务器能发送邮件到你的mail服务器吗.

论坛徽章:
0
3 [报告]
发表于 2011-12-01 20:01 |只看该作者
恩 测试了
本地发送也是不行的
所有的邮箱都不能发送到我的mail服务器,postfix check 没有问题
我觉得是我设置的问题,但是我却找不到问题出现在哪里!

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2011-12-01 20:08 |只看该作者
你的postfix的配置文件中 mydestination= 后面写上你的域名没有

论坛徽章:
0
5 [报告]
发表于 2011-12-01 20:18 |只看该作者
你的postfix的配置文件中 mydestination= 后面写上你的域名没有
chenyx 发表于 2011-12-01 20:08


下面是我的postfix配置,我将我的域名注释掉了!
    [root@localhost ~]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Mailbox
html_directory = /usr/share/doc/postfix-2.8.4-documentation/html
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydomain = ****.com
myhostname = mail.****.com
mynetworks = 113.31.26.0/24, 192.168.0.0/24, 192.168.1.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.8.4-documentation/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_transport = maildrop

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2011-12-01 20:32 |只看该作者
修改postfix配置,添加mydestination = ****.com测试下

论坛徽章:
0
7 [报告]
发表于 2011-12-01 20:39 |只看该作者
回复 6# chenyx


    现在测试如下:

Dec  1 20:36:23 localhost postfix/smtpd[20504]: connect from smtpbg215.qq.com[112.90.139.244]
Dec  1 20:36:23 localhost postfix/smtpd[20504]: NOQUEUE: reject: RCPT from smtpbg215.qq.com[112.90.139.244]: 550 5.1.1 <zhuhj@××××.com>: Recipient address rejected: User unknown in local recipient table; from=<32909××××@qq.com> to=<zhuhj@××××.com> proto=SMTP helo=<smtpbg215.qq.com>
Dec  1 20:36:23 localhost postfix/smtpd[20504]: disconnect from smtpbg215.qq.com[112.90.139.244]

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
8 [报告]
发表于 2011-12-01 20:49 |只看该作者
楼主你的postfix配置不完全,在论坛里面搜索下postfix的配置文档,研究下吧.

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
9 [报告]
发表于 2011-12-01 22:44 |只看该作者
postfix的配置文档看有没有错误,
你的dns中体检mx记录了吗,
测试一下其他的邮箱,比如163的,会有拒绝代码提示

论坛徽章:
0
10 [报告]
发表于 2014-11-04 13:56 |只看该作者
本帖最后由 hhx012 于 2014-11-04 14:00 编辑

这位大大,我自己搭的postfix有很多楼主这样的日志
tail -f /var/log/maillog显示下面的东西,一直不停的跳。大部分是yahoo.com.tw也有163.com等一些大型邮箱。
Nov  1 16:05:47 localhost postfix/smtpd[4736]: NOQUEUE: reject: RCPT from 114-24-2-198.dynamic.hinet.net[114.24.2.198]: 554 5.7.1 <vb-aska-god@yahoo.com.tw>: Relay access denied; from=<wgtgdrznohm@yahoo.com.tw> to=<vb-aska-god@yahoo.com.tw> proto=SMTP helo=<x.x.x.x>
请问这个情况是不是被中继了?但是我查看我的队列是空的。
[root@localhost postfix]# mailq
Mail queue is empty
还是说有服务器在不停的试我是不是可以中继他们的垃圾邮件?

这个是我postfix配置

[root@localhost ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
mydomain = abc.com
myhostname = mail.abc.com
mynetworks = 192.168.1.0/24
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_client_restrictions = check_client_access hash:/etc/postfix/client_access
smtpd_helo_required = yes
smtpd_helo_restrictions = check_helo_access hash:/etc/postfix/helo_access
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient_access        permit_mynetworks       permit_sasl_authenticated       reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access
unknown_local_recipient_reject_code = 550

回复 6# chenyx


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP