非常慢的smtp服务器响应

我最近在https://www.scaleway.com/上创build了一个服务器。 服务器的操作系统是Fedora22。 我安装了一个SMTP服务器(后缀)。 它工作正常,但我的反应非常慢。 任何消息,我从PHP脚本或从ruby发送,它使页面加载很长。 当我尝试发送这样的消息:

echo "TEXT" | mail -s "Hello world" [email protected] 

我在1或2分钟内收到了这个消息。

来自postfix状态命令的日志:

 ● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2015-10-25 14:04:52 EDT; 2min 1s ago Process: 1448 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS) Process: 1467 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) Process: 1464 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 1459 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Main PID: 1537 (master) CGroup: /system.slice/postfix.service ├─1537 /usr/libexec/postfix/master -w ├─1538 pickup -l -t unix -u ├─1539 qmgr -l -t unix -u ├─1605 smtpd -n smtp -t inet -u -o stress= ├─1606 proxymap -t unix -u ├─1607 trivial-rewrite -n rewrite -t unix -u ├─1608 cleanup -z -t unix -u └─1609 smtp -t unix -u Oct 25 14:04:51 scw-5a11dd postfix/postfix-script[1535]: starting the Postfix mail system Oct 25 14:04:51 scw-5a11dd postfix/master[1537]: daemon started -- version 3.0.2, configuration /etc/postfix Oct 25 14:04:52 scw-5a11dd systemd[1]: Started Postfix Mail Transport Agent. Oct 25 14:06:08 scw-5a11dd postfix/smtpd[1605]: connect from localhost.localdomain[127.0.0.1] Oct 25 14:06:08 scw-5a11dd postfix/smtpd[1605]: E16B941726: client=localhost.localdomain[127.0.0.1] Oct 25 14:06:08 scw-5a11dd postfix/cleanup[1608]: E16B941726: message-id=<201510251806.t9PI68aj001554@scw-5a11dd> Oct 25 14:06:08 scw-5a11dd postfix/qmgr[1539]: E16B941726: from=<root@scw-5a11dd>, size=682, nrcpt=1 (queue active) Oct 25 14:06:08 scw-5a11dd postfix/smtpd[1605]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 Oct 25 14:06:09 scw-5a11dd postfix/smtp[1609]: E16B941726: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[64.233.166.26]:25, del...- gsmtp) Oct 25 14:06:09 scw-5a11dd postfix/qmgr[1539]: E16B941726: removed 

我不知道该怎么办。 预先感谢您的帮助!

没有看到你的Postfixconfiguration,肯定是这个问题。 但是,检查后缀文档 –

http://www.postfix.org/smtpd.8.html

并寻找TarPit设置。 查看您的configurationsmtpd_error_sleep_time是否设置为2分钟。