How to Fix XenForo Not Sending Email Issue

joostyle

Well-known member
Registered
Joined
Jan 3, 2020
Messages
59
Points
28

Reputation:

Hi there, I have such a problem sending emails. SMTP is enabled. Please any solution? Thank you :(

config.php

Code:
$config['enableMail'] = true;

Erroe message :

Code:
     Swift_TransportException: Email to [email protected] failed: Expected response code 354 but got code "550", with message "550 5.7.1 Command rejected " src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383

Stack trace

Code:
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('550 5.7.1 Comma...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('DATA
', Array, Array)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(319): Swift_Transport_EsmtpTransport->executeCommand('DATA
', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(427): Swift_Transport_AbstractSmtpTransport->_doDataCommand()
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), 'forum+4bb9f14b+...', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), 'forum+4bb9f14b+...', Array, Array)
#6 src/XF/Mail/Mailer.php(292): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src/XF/Mail/Queue.php(138): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), Array)
#8 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(G)
#9 src/XF/Job/Manager.php(253): XF\Job\MailQueue->run(G)
#10 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#11 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#12 job.php(42): XF\Job\Manager->runQueue(false, 8)
#13 {main}

Request state

Code:
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(46) "https://forum.elektrolab.eu/admin.php?add-ons/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

UNKNOWN PH

RUSH ARMY
+Lifetime VIP+
Registered
Joined
Jun 9, 2019
Messages
648
Points
73

Reputation:

Hi there, I have such a problem sending emails. SMTP is enabled. Please any solution? Thank you :(

config.php

Code:
$config['enableMail'] = true;

Erroe message :

Code:
     Swift_TransportException: Email to [email protected] failed: Expected response code 354 but got code "550", with message "550 5.7.1 Command rejected " src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383

Stack trace

Code:
#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('550 5.7.1 Comma...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('DATA
', Array, Array)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(319): Swift_Transport_EsmtpTransport->executeCommand('DATA
', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(427): Swift_Transport_AbstractSmtpTransport->_doDataCommand()
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), 'forum+4bb9f14b+...', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), 'forum+4bb9f14b+...', Array, Array)
#6 src/XF/Mail/Mailer.php(292): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src/XF/Mail/Queue.php(138): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), Array)
#8 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(G)
#9 src/XF/Job/Manager.php(253): XF\Job\MailQueue->run(G)
#10 src/XF/Job/Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#11 src/XF/Job/Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#12 job.php(42): XF\Job\Manager->runQueue(false, 8)
#13 {main}

Request state

Code:
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(46) "https://forum.elektrolab.eu/admin.php?add-ons/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
joostyleyou can't set it up properly
 

joostyle

Well-known member
Registered
Joined
Jan 3, 2020
Messages
59
Points
28

Reputation:

why not? All settings are done correctly - after consultation with webhosting support. Today I turned off SMTP and chose "PHP sending", it doesn't throw errors anymore, but sending messages is much slower
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,438
Points
823

Reputation:

Did you install ? I am using this for my forum
 

Attachments

  • 1.PNG
    1.PNG
    4.8 KB · Views: 339

joostyle

Well-known member
Registered
Joined
Jan 3, 2020
Messages
59
Points
28

Reputation:

I use domain email "[email protected], the forum is located on the subdomain: https://forum.elektrolab.eu .Because my provider does not support the use of e-mail outside the system - due to spam. But the other settings are the same. I have currently turned off SMTP, errors do not occur, but posting is a bit slower, but it still works. Personally, I see it as a xenforo system error that it cannot work correctly from the SMTP server
 
Last edited:

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,438
Points
823

Reputation:

Are you using vps or hosting?
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,438
Points
823

Reputation:

you should upgrade it to vps or you can say where you buy hosting open gmail, I have been using gmail for 2 years, it's not error
 

joostyle

Well-known member
Registered
Joined
Jan 3, 2020
Messages
59
Points
28

Reputation:

At my provider, VPS is a fairly expensive matter, do you know something cheaper but reliable?
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,438
Points
823

Reputation:

HarryPotteR

Well-known member
Registered
Joined
Feb 2, 2019
Messages
54
Points
28

Reputation:

Ports may be blocked from your hosting too , ex: I asked my hosting support to unblock the smtp & pop3 email ports for my domain to prevent such kind of inconvenience .
 

joostyle

Well-known member
Registered
Joined
Jan 3, 2020
Messages
59
Points
28

Reputation:

@HarryPotteR

So I haven't tried this, but it's a good idea to call for support on Monday and ask them about such a possibility. Thank you for the idea
 

prvtzone

eleaks.to
Registered
Joined
Jul 29, 2019
Messages
122
Points
53

Reputation:

i have a question. @ENXF NET you are using gmail smtp. So gmail limit is 300mails/day . if this possible with smtp to bypass that limit? if my forum get 300+ users per day then will gmail smtp be able to send that much emails or not?
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,438
Points
823

Reputation:

@prvtzone Yes, I'm using for 7000 members
 

askub

Member
Registered
Joined
Jan 29, 2020
Messages
22
Points
13

Reputation:

if you are using a dedicated server or a vps, try opening the email ports on the firewall once
 
Top