问题原文
原帖链接 · Anton · CC BY-SA 4.0
I recently rented a server from the hosting provider, Scaleway.
The server's OS is Fedora 22. I have installed a Postfix SMTP server, but it seems to be causing slow page loads whenever I send a message from a PHP script or Ruby Redmine. Even a simple message takes a long time to send. What can I do to resolve this issue?
echo "TEXT" | mail -s "Hello world" [email omitted]
I got this message in 1 or 2 minutes.
Logs from the postfix status command:
● 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 omitted]>, 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
I am unsure what I shall do to solve this. Thanks in advance for help!
已采纳解答
原帖链接 · Sam · CC BY-SA 4.0
It is certain that this is the issue, but without seeing your Postfix configuration, we cannot confirm.
However, you can check the
Postfix Documentation
for the TarPit settings. Verify if smtpd_error_sleep_time is set to two minutes in your configuration.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
