免费注册 查看新帖 |

Chinaunix

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

[Mail] postfix无法向外部发送邮件。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-03 16:17 |只看该作者 |倒序浏览
本帖最后由 linuxnewers 于 2010-09-03 16:21 编辑

centos系统,刚配好的postfix,用客户机的OUTLOOK在内网收发邮件都正常,接收外部邮件也正常,但就是无法发送。小弟是个实实在在的菜鸟,请各位大虾多多帮助,在此感激不尽。我把相关配置文件发出来,指点指点。

main.cf配置

[root@localhost ~]# postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
append_at_myorigin = yes
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 = /usr/share/doc/postfix-2.7.1-documentation/html
inet_interfaces = all
local_header_rewrite_clients = permit_mynetworks
local_recipient_maps =
mail_owner = postfix
mailbox_size_limit = 512000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_domains = xxxxx.com
message_size_limit = 51200000
mydestination = mydomain, localhost, $mydomain
mydomain = xxxxx.com
myhostname = mail.xxxxx.com
mynetworks = 192.168.0.0/24,192.168.1.0/24,119.40.24.202/32,127.0.0.0/8
myorigin = xxxxx.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.7.1-documentation/readme
relay_domains = $mydestination,xxxxx.com
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_generic_maps = hash:/etc/postfix/generic
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550

-------------------------------------------------------------------
-------------------------------------------------------------------
这是日志
Sep  3 13:40:51 localhost dovecot: pop3-login: Login: user=<jianjun.li>, method=PLAIN, rip=::ffff:192.168.0.3, lip=::ffff:192.168.0.94
Sep  3 13:40:51 localhost dovecot: POP3(jianjun.li): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Sep  3 13:40:52 localhost dovecot: pop3-login: Login: user=<wei.han>, method=PLAIN, rip=::ffff:192.168.0.3, lip=::ffff:192.168.0.94
Sep  3 13:40:52 localhost dovecot: POP3(wei.han): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Sep  3 13:40:52 localhost dovecot: pop3-login: Login: user=<jianjun.li>, method=PLAIN, rip=::ffff:192.168.0.3, lip=::ffff:192.168.0.94
Sep  3 13:40:52 localhost dovecot: POP3(jianjun.li): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Sep  3 13:40:52 localhost dovecot: pop3-login: Login: user=<wei.han>, method=PLAIN, rip=::ffff:192.168.0.3, lip=::ffff:192.168.0.94
Sep  3 13:40:52 localhost dovecot: POP3(wei.han): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Sep  3 13:40:52 localhost dovecot: pop3-login: Login: user=<jianjun.li>, method=PLAIN, rip=::ffff:192.168.0.3, lip=::ffff:192.168.0.94
Sep  3 13:40:52 localhost dovecot: POP3(jianjun.li): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Sep  3 13:41:02 localhost postfix/smtp[9096]: fatal: open database /etc/postfix/generic.db: No such file or directory
Sep  3 13:41:03 localhost postfix/master[9046]: warning: process /usr/libexec/postfix/smtp pid 9096 exit status 1
Sep  3 13:41:03 localhost postfix/master[9046]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

论坛徽章:
0
2 [报告]
发表于 2010-09-03 16:31 |只看该作者
怎么没人回阿,,, 自己顶一个,大虾们快来阿。

论坛徽章:
0
3 [报告]
发表于 2010-09-12 16:02 |只看该作者
Sep  3 13:41:02 localhost postfix/smtp[9096]: fatal: open database /etc/postfix/generic.db: No such file or directory
显示没有没有发现/etc/postfix/generic.db文件
估计你建立了/etc/postfix/generic却没有生成DB文件

你尝试一下   postmap /etc/postfix/generic 会生成generic.db
然后重新启动postfix

另外问一下,你要做的是单一domain还是有虚拟domains的系统?

论坛徽章:
0
4 [报告]
发表于 2010-09-12 19:45 |只看该作者
说真的,邮箱系统自己玩玩就算了,用个成品的吧!如iredmail kerio


kerio我用的就不错!但要管理好,也需要比较扎实的邮件知识。如rbl spam bind等。

论坛徽章:
0
5 [报告]
发表于 2010-09-13 13:24 |只看该作者
就是这个咯“fatal: open database /etc/postfix/generic.db: No such file or directory


用成品邮箱其实感觉不推荐的,安全问题不好把握。  还有客户许多定制的需求不好满足。  现在给客户用的都是postfix+各种其他组件
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP