免费注册 查看新帖 |

Chinaunix

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

[Mail] 求助:搞了一个星期的邮件,几套方案都是到这里卡着,贴出log [复制链接]

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

启动postfix就开始报错,
tail -f /var/log/maillog:

mail postfix/postfix-script: starting the Postfix mail system
Nov 28 20:53:22 mail postfix/master[31595]: daemon started -- version 2.2.5, configuration /etc/postfix
Nov 28 20:53:45 mail postfix/master[31595]: warning: process /usr/libexec/postfix/smtpd pid 31598 killed by signal 11
Nov 28 20:53:45 mail postfix/master[31595]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov 28 20:54:45 mail postfix/master[31595]: warning: process /usr/libexec/postfix/smtpd pid 31600 killed by signal 11
Nov 28 20:54:45 mail postfix/master[31595]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov 28 20:55:45 mail postfix/master[31595]: warning: process /usr/libexec/postfix/smtpd pid 31601 killed by signal 11
Nov 28 20:55:45 mail postfix/master[31595]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov 28 20:56:45 mail postfix/master[31595]: warning: process /usr/libexec/postfix/smtpd pid 31602 killed by signal 11
Nov 28 20:56:45 mail postfix/master[31595]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

折腾好久了了,高手帮我分析下;

下面是我的配置文件main.cf
# vi /etc/postfix/main.cf
#=====================BASE=========================
myhostname = email.test.com
mydomain = test.com
myorigin = $mydomain
mydestination = $myhostname localhost localhost.$mydomain
mynetworks = 127.0.0.0/8
inet_interfaces = all

#=====================Vritual Mailbox settings=========================
virtual_mailbox_base = /var/mailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
alias_maps = hash:/etc/postfix/aliases
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1

#====================QUOTA========================
message_size_limit = 14336000
virtual_mailbox_limit = 20971520
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/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

#====================SASL========================
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
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,
permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner=$myhostname ESMTP "Version not Available"

论坛徽章:
0
2 [报告]
发表于 2010-11-29 14:31 |只看该作者
不建议自己配置postfix.复杂难调!

建议直接使用IredMail就可以.更简单就使用keriomailserver找个破解版吧!

论坛徽章:
0
3 [报告]
发表于 2010-11-30 13:10 |只看该作者
Please post here your postfix startup file in /etc/init.d/postfix.

论坛徽章:
0
4 [报告]
发表于 2010-11-30 13:49 |只看该作者
smtpd  有问题, 把sasl /virtual  去掉, 再运行postfix 试试,
还可以看看 messages 里面有什么错误提示

论坛徽章:
0
5 [报告]
发表于 2010-11-30 17:39 |只看该作者
smtpd  有问题, 把sasl /virtual  去掉, 再运行postfix 试试,
还可以看看 messages 里面有什么错误提示 ...
pswen 发表于 2010-11-30 13:49


去掉sasl项后
测试telnet localhost 25
显示[root@mail ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.test.com ESMTP Postfix
ehlo mail.test.com
250-mail.test.com
250-PIPELINING
250-SIZE 14336000
250-VRFY
250-ETRN
250 8BITMIME
之后就没反应了

查看日志是这样的
tail -f /var/log/maillog

Nov 30 17:17:45 mail postfix/master[19424]: daemon started -- version 2.2.5, configuration /etc/postfix
Nov 30 17:18:15 mail postfix/smtpd[19429]: connect from localhost.localdomain[127.0.0.1]
Nov 30 17:19:07 mail postfix/smtpd[19431]: connect from n4d.bullet.cnb.yahoo.com[203.209.230.22]
Nov 30 17:19:07 mail postfix/smtpd[19431]: NOQUEUE: reject: RCPT from n4d.bullet.cnb.yahoo.com[203.209.230.22]: 554 <tsc@test.com>: Relay access denied; from=<tcfvuipshuutr98415@yahoo.ca> to=<tsc@test.com> proto=SMTP helo=<n4d.bullet.cnb.yahoo.com>
Nov 30 17:19:07 mail postfix/smtpd[19431]: disconnect from n4d.bullet.cnb.yahoo.com[203.209.230.22]
Nov 30 17:20:48 mail postfix/smtpd[19436]: connect from m13-54.163.com[220.181.13.54]
Nov 30 17:20:48 mail postfix/trivial-rewrite[19433]: warning: do not list domain mail.tsc.edu.cn in BOTH mydestination and virtual_mailbox_domains
Nov 30 17:20:48 mail postfix/smtpd[19436]: NOQUEUE: reject: RCPT from m13-54.163.com[220.181.13.54]: 550 <xuebao@mail.test.com>: Recipient address rejected: User unknown in local recipient table; from=<zgsmtgx@163.com> to=<xuebao@mail.test.com> proto=ESMTP helo=<m13-54.163.com>
Nov 30 17:20:48 mail postfix/smtpd[19436]: disconnect from m13-54.163.com[220.181.13.54]
Nov 30 17:21:37 mail postfix/smtpd[19436]: connect from m13-52.163.com[220.181.13.52]
Nov 30 17:21:37 mail postfix/smtpd[19436]: NOQUEUE: reject: RCPT from m13-52.163.com[220.181.13.52]: 554 <xuebao@test.com>: Relay access denied; from=<ayorboks@163.com> to=<xuebao@test.com> proto=ESMTP helo=<m13-52.163.com>
Nov 30 17:21:37 mail postfix/smtpd[19436]: disconnect from m13-52.163.com[220.181.13.52]
Nov 30 17:21:51 mail postfix/smtpd[19436]: connect from unknown[123.121.57.21]
Nov 30 17:21:54 mail postfix/smtpd[19436]: NOQUEUE: reject: RCPT from unknown[123.121.57.21]: 554 <jwc@test.com>: Relay access denied; from=<reazltmgd@ewiilu.net> to=<jwc@test.com> proto=ESMTP helo=<ewiilu.net>
Nov 30 17:21:54 mail postfix/smtpd[19436]: lost connection after RCPT from unknown[123.121.57.21]
Nov 30 17:21:54 mail postfix/smtpd[19436]: disconnect from unknown[123.121.57.21]
Nov 30 17:21:54 mail postfix/smtpd[19436]: connect from unknown[123.121.57.21]
Nov 30 17:21:55 mail postfix/smtpd[19436]: NOQUEUE: reject: RCPT from unknown[123.121.57.21]: 554 <jwc@test.com>: Relay access denied; from=<etqeqnj@ztfc.com> to=<jwc@test.com> proto=ESMTP helo=<ztfc.com>


这样是正常的吗,为什么telnet测试还不能通过?

论坛徽章:
0
6 [报告]
发表于 2010-11-30 19:13 |只看该作者
250-ETRN
250 8BITMIME

在这里之后用命令:
mail from:<user@domain>
rcpt to:<user@domain>
data
.....
.

看能不能传出去,
提示OK的话,
就可以查看收到没有了。

论坛徽章:
4
IT运维版块每日发帖之星
日期:2015-09-01 06:20:00IT运维版块每日发帖之星
日期:2015-10-09 06:20:00操作系统版块每日发帖之星
日期:2015-10-20 06:20:00IT运维版块每日发帖之星
日期:2015-11-03 06:20:00
7 [报告]
发表于 2010-11-30 20:22 |只看该作者
加俺QQ:celtics_pierce@qq.com,帮你看看。

论坛徽章:
0
8 [报告]
发表于 2010-12-01 21:38 |只看该作者
250-ETRN
250 8BITMIME

在这里之后用命令:
mail from:
rcpt to:
data
.....
.

看能不能传出去 ...
pswen 发表于 2010-11-30 19:13


不加认证部分的话是没问题的,但加了sasl部分就不行了
   

telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.

日志是:

mail postfix/master[8187]: warning: process /usr/libexec/postfix/smtpd pid 8245 killed by signal 11
Dec  1 21:25:02 mail postfix/master[8187]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

论坛徽章:
0
9 [报告]
发表于 2010-12-02 10:25 |只看该作者
[root@centos213 ~]# postconf -a
cyrus
dovecot

看看支不支持sasl
如果支持的话,就要看看用的哪种方式
[root@centos213 ~]# saslauthd -v
saslauthd 2.1.22
authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap

/usr/lib/sasl2/smtp.conf  这个文件设得对不对

论坛徽章:
0
10 [报告]
发表于 2010-12-02 12:10 |只看该作者
[root@mail sbin]# saslauthd -v
saslauthd 2.1.22
authentication mechanisms: getpwent kerberos5 pam rimap shadow

postconf 没有-a这个参数,是不是跟版本有关系啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP