XF 2.1 Swiftmailer Errors (Due to Spam?)

sbj

Well-known member
Hello, I am lately getting this error.

I am not sure what the cause of this is. I believe some spammer is using the contact us form and the problem with switf mailer appears.
I tried to make some testcases and all went fine. What could be the problem here?

PHP:
Server error log
    
 Swift_TransportException: Email to info@xxx.com failed: Expected response code 250 but got code "553", with message "553 Relaying disallowed as wulpesomnis@gazeta.pl "
                  
    src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:383
                                
    Generated by: Unknown account
                  
    2 May 2019 at 09:31
                
        Stack trace
           #0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('553 Relaying di...', Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('
.
', Array, Array)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(333): Swift_Transport_EsmtpTransport->executeCommand('
.
', Array)
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(428): Swift_Transport_AbstractSmtpTransport->_streamMessage(Object(Swift_Message))
#4 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), 'info@xxx...', Array, Array)
#5 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), 'info@xxx...', 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


array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(97) "https://xxx.com/forum/xxx.29891/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Could be a regular user trying to contact you. I would recommend to disable "Sender info in From header on contact emails" in your ACP email options settings.
 
  • Like
Reactions: sbj
I would recommend to disable "Sender info in From header on contact emails" in your ACP email options settings.
I did that yesterday and I still got the same error this morning. Thanks for the reply though. At least it confirms that I had the same thought as you.

Could be a regular user trying to contact you.
It seems to be a spammer when you search for wulpesomnis@gazeta.pl.
 
According to the error message you try to send mails as "wulpesomnis@gazeta.pl" which your mail server refuses.

If you disable "Sender info in From header on contact emails" the error should stop (or at least change). Try to restart PHP server after the change to not run into caching problems.
 
  • Like
Reactions: sbj
Thanks, I didn't restart the PHP server, now did. Will update this thread, if I get new errors. I consider this being resolved for now.
Much appreciated @HWS.
 
Back
Top Bottom