Thank you Sim.
It looks like the sender is the users email address. Is that correct? Shouldnt the sender be the the email address of the forum? Casue Mandrill will not send from any other email adress.
This is an error message from xenforo admin that I found after sending a PM to a user:
Email to
post@xxmedia.no from
post@xxmedia.no failed: Connection could not be established with host smtp.mandrillapp.com :stream_socket_client(): Unable to connect to smtp.mandrillapp.com:587 (Connection refused)
#0 [internal function]: Swift_Transport_StreamBuffer->{closure}(2, 'stream_socket_c...', '/home/webforum/...', 264)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(264): stream_socket_client('smtp.mandrillap...', 0, '', 30, 4, Resource id #167)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(58): Swift_Transport_StreamBuffer->establishSocketConnection()
#3 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(143): Swift_Transport_StreamBuffer->initialize(Array)
#4 src/XF/Mail/Mailer.php(294): Swift_Transport_AbstractSmtpTransport->start()
#5 src/XF/Mail/Queue.php(148): XF\Mail\Mailer->send(Object(Swift_Message), Object(XF\Mail\SmtpTransport), Array)
#6 src/XF/Job/MailQueue.php(12): XF\Mail\Queue->run(7.98386)
#7 src/XF/Job/Manager.php(260): XF\Job\MailQueue->run(7.98386)
#8 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 7.98386)
#9 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 7.98386)
#10 job.php(43): XF\Job\Manager->runQueue(false, 8)
#11 {main}