Postfix不断停止

时间:2017-08-01 11:59:22

标签: google-cloud-platform cpanel centos7 sendgrid postfix

我只是在unix.stackexchange.com上提出这个问题,但我没有得到任何答案。我希望至少在这里幸运。请忽略问题的愚蠢。我是linux的菜鸟。

我已成功将Sendgrid配置为安装在CentOS上的CPanel的Google云实例。我在这里完成了。

安装Postfix时,我必须删除当前安装的exim4。安装成功,但我发现有时Postfix已停止。如果我再次开始使用# postfix start,它将在几分钟后停止。

以下是maillog:

# tail -n 30 /var/log/maillog

Jul 28 04:24:33 myhost postfix/qmgr[15174]: BAD9D110BEAB3: from=<root@myhost.localdomain>, size=3665, nrcpt=1 (queue active)
Jul 28 04:24:33 myhost postfix/smtp[15181]: BAD9D110BEAB3: to=<someperson@mycompany.com.au>, relay=smtp.sendgrid.net[167.89.125.25]:2525, delay=152, delays=152/0.02/0.1/0.03, dsn=2.0.0, status=sent (250 Ok: queued as q4j-M5JVRM61Sw9du237_g)
Jul 28 04:24:33 myhost postfix/qmgr[15174]: BAD9D110BEAB3: removed
Jul 28 04:24:33 myhost postfix/smtp[15177]: AA9A8110BEAA3: to=<someperson@mycompany.com.au>, relay=smtp.sendgrid.net[167.89.125.25]:2525, delay=577, delays=576/0.02/0.11/0.06, dsn=2.0.0, status=sent (250 Ok: queued as AcEHW3P5Q5K7PgnA0qvsYQ)
Jul 28 04:24:33 myhost postfix/qmgr[15174]: AA9A8110BEAA3: removed
Jul 28 04:24:33 myhost postfix/smtp[15180]: B5A5B110BEAB2: to=<someperson@mycompany.com.au>, relay=smtp.sendgrid.net[167.89.125.25]:2525, delay=152, delays=152/0.01/0.09/0.06, dsn=2.0.0, status=sent (250 Ok: queued as QumlXDnNQHekR3TnPfC_Kg)
Jul 28 04:24:33 myhost postfix/qmgr[15174]: B5A5B110BEAB2: removed
Jul 28 04:24:33 myhost postfix/smtp[15179]: B29A2110BEAA4: to=<someperson@mycompany.com.au>, relay=smtp.sendgrid.net[167.89.125.25]:2525, delay=577, delays=576/0.02/0.18/0.02, dsn=2.0.0, status=sent (250 Ok: queued as k-HSDlzjTPiR3mxxXWZj2A)
Jul 28 04:24:33 myhost postfix/qmgr[15174]: B29A2110BEAA4: removed
Jul 28 04:29:35 myhost spamc[15925]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
Jul 28 04:29:36 myhost spamd[1195]: zoom: able to use 996/997 'body_0' compiled rules (99.899%)
Jul 28 04:29:37 myhost spamd[1195]: spamd: server started on IO::Socket::INET [_]:783 (running version 3.4.1)
Jul 28 04:29:37 myhost spamd[1195]: spamd: server pid: 1195
Jul 28 04:29:37 myhost spamd[1195]: spamd: server successfully spawned child process, pid 15934
Jul 28 04:29:37 myhost spamd[1195]: prefork: child states: B
Jul 28 04:29:37 myhost spamd[15934]: spamd: connection from localhost [127.0.0.1]:39080 to port 783, fd 5
Jul 28 04:29:37 myhost spamd[1195]: spamd: server successfully spawned child process, pid 15935
Jul 28 04:29:37 myhost spamd[1195]: prefork: adjust: 0 idle children less than 1 minimum idle children. Increasing spamd children: 15935 started.
Jul 28 04:29:37 myhost spamd[1195]: prefork: child states: BI
Jul 28 04:29:37 myhost spamd[1195]: prefork: child states: II
Jul 28 04:29:37 myhost spamd[1195]: prefork: adjust: 2 idle children more than 1 maximum idle children. Decreasing spamd children: 15935 killed.
Jul 28 04:29:37 myhost spamd[1195]: prefork: child states: IK
Jul 28 04:29:37 myhost spamd[1195]: spamd: handled cleanup of child pid [15935] due to SIGCHLD: interrupted, signal 2 (0002)
Jul 28 04:29:37 myhost dovecot: pop3-login: Aborted login (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<6cb+IFlVIr1/AAAB>
Jul 28 04:29:38 myhost dovecot: lmtp(15985): Connect from local
Jul 28 04:29:38 myhost dovecot: lmtp(15985): Disconnect from local: Successful quit
Jul 28 04:29:38 myhost dovecot: imap-login: Login: user=<__cpanel__service__auth__imap__x4omw2slm18rtsvbmuqztk47y34ogk65i4b9jtgduyu1py...>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=15998, secured, session=<lGoLIVlV9Ld/AAAB>
Jul 28 04:29:38 myhost dovecot: imap(__cpanel__service__auth__imap__x4omw2slm18rtsvbmuqztk47y34ogk65i4b9jtgduyu1pylltnu7jebtjldvddpu): Logged out in=11, out=470, bytes=11/470
Jul 28 04:29:38 myhost postfix/master[15172]: terminating on signal 15
Jul 28 04:29:40 myhost postfix/sendmail[16036]: fatal: Recipient addresses must be specified on the command line or via the -t option

我想知道这里发生了什么,以及如何让Postfix继续运行?

1 个答案:

答案 0 :(得分:-1)

cPanel / WHM开发为使用exim4而不是postfix运行。 postfix与cPanel没有集成。您可以删除exim并安装postfix,但是您会遇到各种问题,如电子邮件发送/接收,垃圾邮件过滤器等。如果你想从cPanel电子邮件功能中受益,我建议你删除postfix并继续使用exim。作为一个基本准则,你必须按照它的方式使用cPanel,除非你真的知道你在做什么。 WHM中的电子邮件配置设置是为exim创建的。据我所知,后缀集成在功能请求列表中并且尚未开发,如果实现或在以下情况下没有真正的信息:

https://features.cpanel.net/topic/postfix-support

因此请删除postfix,尝试运行upcp --force以强制更新cPanel。通常它应该安装exim。如果没有,您可以使用yum package manager手动安装它:

yum -y install exim-4.89-2.cp1162.x86_64(这将是cPanel&amp; WHM 64.0(build 36)上的最新版本,在CentOS 7.3 Linux发行版上运行)。或者你可以运行:

yum -y install exim