XF 2.0 SMTP connection error

Codeless

Active member
Hello i am getting error while testing my smtp connection

Code:
++ Starting Swift_SmtpTransport
!! Connection could not be established with host mx1.hostinger.com [ #0] (code: 0)

i have validated my email credentials with Mozila Thunderbrid everything works normal i have used proper ports and password any idea why i am getting error
 
Code:
Stack trace
#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(280): Swift_Transport_AbstractSmtpTransport->start()
#5 src/XF/Mail/Mail.php(261): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport))
#6 src/XF/Admin/Controller/Tools.php(246): XF\Mail\Mail->send(Object(Swift_SmtpTransport))
#7 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\Tools->actionTestEmail(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'TestEmail', 'html', Object(XF\Mvc\ParameterBag), 'tools', Object(XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
 
a new improvement in system
Code:
++ Starting Swift_SmtpTransport
<< 220 uk-m247-mailmx1.hostinger.io ESMTP [Hostinger Mail System]

>> EHLO cointalkglobal.com

<< 250-uk-m247-mailmx1.hostinger.io
250-PIPELINING
250-SIZE 35651584
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

>> STARTTLS

<< 220 2.0.0 Ready to start TLS

>> EHLO cointalkglobal.com

<< 250-uk-m247-mailmx1.hostinger.io
250-PIPELINING
250-SIZE 35651584
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

>> AUTH LOGIN

[...snip...]

<< 235 2.7.0 Authentication successful

++ Swift_SmtpTransport started
>> MAIL FROM:<noreply+e55d5cb7+mr.sajid808=gmail.com@cointalkglobal.com>

<< 250 2.1.0 Ok

>> RCPT TO:<mr.sajid808@gmail.com>

<< 553 5.7.1 <noreply+e55d5cb7+mr.sajid808=gmail.com@cointalkglobal.com>: Sender address rejected: not owned by user noreply@cointalkglobal.com

!! Expected response code 250/251/252 but got code "553", with message "553 5.7.1 <noreply+e55d5cb7+mr.sajid808=gmail.com@cointalkglobal.com>: Sender address rejected: not owned by user noreply@cointalkglobal.com
" (code: 553)
>> RSET
 
Last edited by a moderator:
It looks like you need to validate your sending address with your SMTP provider. Most SMTP provides require this I believe. As far as how to do that with your host, I would submit a support ticket.
 
I was had same issues be sure that you add sender email same as Bounced email address on xenforo Email options.
I thinks it was sending email to same Bounced email address.
 
Last edited:
Back
Top Bottom