SMTP on Xenforo - Emails are not working.

shahzeb

Member
Nov 7, 2018
72
17
8
Babiato
Hello,
I just switched to xenforor cms, everything is perfect, but SMTP is not working.
I tried all SMTP hosts, gmail/yandex/cPanel and some other. All credentials are ok, smpt details are correct but outbound email test respond:

1586167129015.png

Server error log


Code:
Swift_TransportException: Email to [email protected] failed: Connection could not be established with host smtp.yandex.com [Connection timed out #110] Log data: ++ Starting Swift_SmtpTransport !! Connection could not be established with host smtp.yandex.com [Connection timed out #110] (code: 0) src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/LoggerPlugin.php:140

Stack trace

Code:
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/SimpleEventDispatcher.php(152): Swift_Plugins_LoggerPlugin->exceptionThrown(Object(Swift_Events_TransportExceptionEvent))
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/SimpleEventDispatcher.php(132): Swift_Events_SimpleEventDispatcher->_bubble(Object(Swift_Events_TransportExceptionEvent), 'exceptionThrown')
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(361): Swift_Events_SimpleEventDispatcher->dispatchEvent(Object(Swift_Events_TransportExceptionEvent), 'exceptionThrown')
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(115): Swift_Transport_AbstractSmtpTransport->_throwException(Object(Swift_TransportException))
#4 src/XF/Mail/Mailer.php(274): Swift_Transport_AbstractSmtpTransport->start()
#5 src/XF/Mail/Mail.php(395): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), NULL, false)
#6 src/XF/Admin/Controller/Tools.php(278): XF\Mail\Mail->send(Object(Swift_SmtpTransport), false)
#7 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionTestEmail(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(258): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'TestEmail', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(2184): XF\Mvc\Dispatcher->run()
#12 src/XF.php(391): XF\App->run()
#13 admin.php(13): XF::runApp('XF\\Admin\\App')
#14 {main}

Request state

PHP:
array(4) {
  ["url"] => string(27) "/admin.php?tools/test-email"
  ["referrer"] => string(57) "https://-------.com/admin.php?tools/test-email"
  ["_GET"] => array(1) {
    ["tools/test-email"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["email"] => string(25) "[email protected]"
    ["_xfToken"] => string(8) "********"
  }
}

PHPMail is working, but that doesn't matter because all mails are non-signature with phpmail.
I have working spf/dkim and 100% inbox delivery smtp but xenforo is reject all the smtp hosts.
Let me hear any one if able to resolve this, Thanks.
@Tomz @CyberDeviL
 
Last edited:

paddy

Member
Oct 13, 2019
34
2
8
paddicity.com
hey bro i suggest use amazon ses smtp
also give u 62k free each month
also im using amazon ses for babiato forums

am finding it difficult setting up this amason smtp, will be glad if you can help with procedures
 

tanierlyons

Well-known member
Staff member
Administrator
Moderator
May 24, 2018
73,008
110,703
120
am finding it difficult setting up this amason smtp, will be glad if you can help with procedures
did u register on amazon ? does your domain approved ?
 

paddy

Member
Oct 13, 2019
34
2
8
paddicity.com
did u register on amazon ? does your domain approved ?
i just register through the link you share above, no option for me to input domain or maybe i have not gotten to that stage.

i was ask to key in my credit card credentials, but am yet to do that, just want to no whether am doing the right thing or not
 

tanierlyons

Well-known member
Staff member
Administrator
Moderator
May 24, 2018
73,008
110,703
120
i just register through the link you share above, no option for me to input domain or maybe i have not gotten to that stage.

i was ask to key in my credit card credentials, but am yet to do that, just want to no whether am doing the right thing or not
yes u must add your credit card
62000 sending email each month are free
 

paddy

Member
Oct 13, 2019
34
2
8
paddicity.com
good day @Tomz, i have verified my domain on amazon, have set every properly but still yet unable to received confirmation mail from registered user, what may be the cause?
 

Stealth

Member
Mar 18, 2021
51
13
8
"Sending email from an application hosted in Amazon EC2" need to be hosted the site on Amazon VPS?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu