Email to users from my website failed: Process failed with exit code -1

ratix_gunz

Active member
Hello,

Since XF2.3, when an email is sent from my server, I only receive server errors:
  • Symfony\Component\Mailer\Exception\TransportException: Email to xxxxxx@proton.me from noreply@xxxxxx.com failed: Process failed with exit code -1:
  • src/vendor/symfony/mailer/Transport/Smtp/Stream/ProcessStream.php:60
#0 src/vendor/symfony/mailer/Transport/SendmailTransport.php(119): Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream->terminate()
#1 src/vendor/symfony/mailer/Transport/AbstractTransport.php(72): Symfony\Component\Mailer\Transport\SendmailTransport->doSend(Object(Symfony\Component\Mailer\SentMessage))
#2 src/vendor/symfony/mailer/Transport/SendmailTransport.php(77): Symfony\Component\Mailer\Transport\AbstractTransport->send(Object(Symfony\Component\Mailer\SentMessage), Object(Symfony\Component\Mailer\DelayedEnvelope))
#3 src/XF/Mail/Mailer.php(305): Symfony\Component\Mailer\Transport\SendmailTransport->send(Object(Symfony\Component\Mime\Email))
#4 src/XF/Mail/Mail.php(576): XF\Mail\Mailer->send(Object(Symfony\Component\Mime\Email), Object(Symfony\Component\Mailer\Transport\SendmailTransport))
#5 src/XF/Job/UserEmail.php(84): XF\Mail\Mail->send()
#6 src/XF/Job/AbstractUserCriteriaJob.php(61): XF\Job\UserEmail->executeAction(Object(Andrew\ModeratorPanel\XF\Entity\User))
#7 src/XF/Admin/Controller/UserController.php(1158): XF\Job\AbstractUserCriteriaJob->run(0)
#8 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\UserController->actionEmailSend(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:User', 'EmailSend', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Admin\Controller\User), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Admin\Controller\User), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 admin.php(15): XF::runApp('XF\\Admin\\App')
#15 {main}
array(4) {
["url"] => string(27) "/admin.php?users/email/send"
["referrer"] => string(48) "https://xxxxxx.com/admin.php?users/email/confirm"
["_GET"] => array(1) {
["users/email/send"] => string(0) ""
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["test"] => string(1) "1"
["json_criteria"] => string(1109) "{"Option":{"receive_admin_email":"1","is_discouraged":["0","1"]},"username":{"name":""},"email":{"address":""},"user_group_id":"","no_secondary_group_ids":"0","register_date":{"start":"","end":""},"last_activity":{"start":"","end":""},"message_count":{"start":"0","end":"-1"},"question_solution_count":{"start":"0","end":"-1"},"trophy_points":{"start":"0","end":"-1"},"reaction_score":{"start":"","end":""}"
["total"] => string(3) "136"
["from_name"] => string(6) "xxxxxx"
["from_email"] => string(18) "noreply@xxxxxx.com"
["email_title"] => string(40) "This is a test"
["email_format"] => string(4) "html"
["email_body"] => string(897) "Test123456789"
["email_wrapped"] => string(1) "1"
["email_unsub"] => string(0) ""
}
}

I would like to point out that I have this error even with all addons disabled and that I do not use SMTP service.
 
 
I modified as the message states, the error is different:
Symfony\Component\Mailer\Exception\TransportException: Process failed with exit code -1:
src/vendor/symfony/mailer/Transport/Smtp/Stream/ProcessStream.php:60
#0 src/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(272): Symfony\Component\Mailer\Transport\Smtp\Stream\ProcessStream->terminate()
#1 src/vendor/symfony/mailer/Transport/Smtp/SmtpTransport.php(359): Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->stop()
#2 [internal function]: Symfony\Component\Mailer\Transport\Smtp\SmtpTransport->__destruct()
#3 {main}
array(4) {
["url"] => string(27) "/admin.php?users/email/send"
["referrer"] => string(48) "https://xxxxxxx.com/admin.php?users/email/confirm"
["_GET"] => array(1) {
["users/email/send"] => string(0) ""
}
["_POST"] => array(11) {
["_xfToken"] => string(8) "********"
["test"] => string(1) "1"
["json_criteria"] => string(1109) "{"Option":{"receive_admin_email":"1","is_discouraged":["0","1"]},"username":{"name":""},"email":{"address":""},"user_group_id":"","no_secondary_group_ids":"0","register_date":{"start":"","end":""},"last_activity":{"start":"","end":""},"message_count":{"start":"0","end":"-1"},"question_solution_count":{"start":"0","end":"-1"},"trophy_points":{"start":"0","end":"-1"},"reaction_score":{"start":"","end":""},"
["total"] => string(3) "136"
["from_name"] => string(6) "XXXXXXX"
["from_email"] => string(18) "noreply@XXXXXXX.com"
["email_title"] => string(4) "test"
["email_format"] => string(0) ""
["email_body"] => string(4) "test"
["email_wrapped"] => string(1) "1"
["email_unsub"] => string(1) "1"
}
}
 
If the messages are being delivered then it is odd that sendmail is returning a failure code. In any case, if using sendmail in SMTP mode does not yield additional information then you would need to look at your server logs or check with your host to identify the issue.
 
If the messages are being delivered then it is odd that sendmail is returning a failure code. In any case, if using sendmail in SMTP mode does not yield additional information then you would need to look at your server logs or check with your host to identify the issue.
Sending emails by SMTP works without errors and everything is OK. I have no errors from the server via sending the email via PHP. Do you think I should still contact my host even though this error only occurs since XF2.3?
 
I suppose that's up to you, but the library we use for email handling was changed in 2.3 and while it may report errors that were previously suppressed we won't be making any changes to suppress them again.
 
I suppose that's up to you, but the library we use for email handling was changed in 2.3 and while it may report errors that were previously suppressed we won't be making any changes to suppress them again.
I just searched a little more and this is what I found as an error on the server side but it only happens with some users:

Final-Recipient: rfc822; xxxxxxx@onionmail.org
Original-Recipient: rfc822;xxxxxxx@onionmail.org
Action: failed
Status: 5.1.1
Remote-MTA: dns; mxmail.onionmail.org
Diagnostic-Code: smtp; 550 5.1.1 No such user
Final-Recipient: rfc822; xxxxxxx@gmail.com
Original-Recipient: rfc822;xxxxxxx@gmail.com
Action: failed
Status: 5.1.1
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.1.1 The email account that you tried to reach does
not exist. Please try 550-5.1.1 double-checking the
recipient's email
address for typos or 550-5.1.1 unnecessary spaces. For more information, go
to 550 5.1.1 https://support.google.com/mail/?p=NoSuchUser
ffacd0b85a97d-3789569a6e6si4823678f8f.470 - gsmtp
Final-Recipient: rfc822; xxxxxxx@yahoo.com
Original-Recipient: rfc822;xxxxxxx@yahoo.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mta5.am0.yahoodns.net
Diagnostic-Code: smtp; 554 30 Sorry, your message to xxxxxxx@yahoo.com
cannot be delivered. This mailbox is disabled (554.30).
 
Sorry to bring up this thread, I contacted my host and it would be a Symfony related problem. Since their last update, some hosts have encountered this problem, including mine. So I confirm that this is not a problem coming from my side and that it is Symfony which returns a false error without creating a server error.
 
Back
Top Bottom