Hi @asmecher,
I put the error_log() directive in /lib/pkp/classes/core/String.inc.php’s mail() function for both instances, and the one that doesn’t send email didn’t register anything in the /var/log/httpd/error_log and /var/log/maillog. The one that sends three had 100K+ entries in the /var/log/httpd/error_log and then the following in the /var/log/maillog:
May 24 16:18:04 ojs sendmail[11212]: u4OKI4FA011212: from=sandbox, size=765, class=0, nrcpts=1, msgid=<201605242018.u4OKI4FA011212@ojs.uwaterloo.ca>, relay=sandbox@localhost
May 24 16:18:05 ojs sendmail[11215]: u4OKI4ml011215: from=<sandbox@ojs.uwaterloo.ca>, size=955, class=0, nrcpts=1, msgid=<201605242018.u4OKI4FA011212@ojs.uwaterloo.ca>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May 24 16:18:05 ojs sendmail[11212]: u4OKI4FA011212: to="sandbox " <g2faulkn@uwaterloo.ca>, ctladdr=sandbox (518/518), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30765, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u4OKI4ml011215 Message accepted for delivery)
May 24 16:18:05 ojs sendmail[11220]: STARTTLS=client, relay=mxer.uwaterloo.ca., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256/256
May 24 16:18:05 ojs sendmail[11237]: u4OKI5PS011237: from=sandbox, size=765, class=0, nrcpts=1, msgid=<201605242018.u4OKI5PS011237@ojs.uwaterloo.ca>, relay=sandbox@localhost
May 24 16:18:05 ojs sendmail[11241]: u4OKI5DZ011241: from=<sandbox@ojs.uwaterloo.ca>, size=955, class=0, nrcpts=1, msgid=<201605242018.u4OKI5PS011237@ojs.uwaterloo.ca>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May 24 16:18:05 ojs sendmail[11237]: u4OKI5PS011237: to="sandbox " <g2faulkn@uwaterloo.ca>, ctladdr=sandbox (518/518), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30765, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u4OKI5DZ011241 Message accepted for delivery)
May 24 16:18:06 ojs sendmail[11245]: STARTTLS=client, relay=mxer.uwaterloo.ca., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256/256
May 24 16:18:06 ojs sendmail[11271]: u4OKI6ep011271: from=sandbox, size=765, class=0, nrcpts=1, msgid=<201605242018.u4OKI6ep011271@ojs.uwaterloo.ca>, relay=sandbox@localhost
May 24 16:18:06 ojs sendmail[11274]: u4OKI6KR011274: from=<sandbox@ojs.uwaterloo.ca>, size=955, class=0, nrcpts=1, msgid=<201605242018.u4OKI6ep011271@ojs.uwaterloo.ca>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May 24 16:18:06 ojs sendmail[11271]: u4OKI6ep011271: to="sandbox " <g2faulkn@uwaterloo.ca>, ctladdr=sandbox (518/518), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30765, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (u4OKI6KR011274 Message accepted for delivery)
May 24 16:18:07 ojs sendmail[11277]: STARTTLS=client, relay=mxer.uwaterloo.ca., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256/256
May 24 16:18:08 ojs sendmail[11245]: u4OKI5DZ011241: to=<g2faulkn@uwaterloo.ca>, ctladdr=<sandbox@ojs.uwaterloo.ca> (518/518), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120955, relay=mxer.uwaterloo.ca. [129.97.128.232], dsn=2.0.0, stat=Sent (u4OKI5i5031055 Message accepted for delivery)
May 24 16:18:08 ojs sendmail[11220]: u4OKI4ml011215: to=<g2faulkn@uwaterloo.ca>, ctladdr=<sandbox@ojs.uwaterloo.ca> (518/518), delay=00:00:04, xdelay=00:00:03, mailer=esmtp, pri=120955, relay=mxer.uwaterloo.ca. [129.97.128.232], dsn=2.0.0, stat=Sent (u4OKI5lM010067 Message accepted for delivery)
May 24 16:18:09 ojs sendmail[11277]: u4OKI6KR011274: to=<g2faulkn@uwaterloo.ca>, ctladdr=<sandbox@ojs.uwaterloo.ca> (518/518), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120955, relay=mxer.uwaterloo.ca. [129.97.128.232], dsn=2.0.0, stat=Sent (u4OKI6ML017253 Message accepted for delivery)
Cheers,
Graham