1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Mandrill Setup

Discussion in 'Troubleshooting and Problems' started by Solidus, Jul 31, 2015.

  1. Solidus

    Solidus Well-Known Member

    Hey all.

    I want to stop using BD Mails and using XF options instead. But a few questions,


    First, it doesn't ask for my API key.
    Secondly, exactly what username/password am I supposed to enter?

  2. Mike

    Mike XenForo Developer Staff Member

    This just uses SMTP. SMTP uses a username and a password (along with server details). If your mail sending system doesn't expose an SMTP approach (it would be a bit strange not to, given as that's the protocol to send mail), you can't use it out of the box in XF.
  3. Mouth

    Mouth Well-Known Member

    Your API key goes into password.
    See Mandrill Account Settings for your SMTP settings
    Solidus likes this.
  4. Solidus

    Solidus Well-Known Member

    Perfect, thanks!
  5. Solidus

    Solidus Well-Known Member

    I set this up, and get an error on sending mail,

    Zend_Mail_Protocol_Exception: Email to x@x.com failed: Connection refused - library/Zend/Mail/Protocol/Abstract.php:277
    Generated By: Vader, 2 minutes ago
    #0 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('tcp://smtp.mand...')
    #1 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
    #2 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
    #3 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
    #4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Mail.php(175): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
    #5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
    #6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Model/UserConfirmation.php(136): XenForo_Mail->send('hafidogu@landma...', 'Vader')
    #7 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ControllerPublic/AccountConfirmation.php(104): XenForo_Model_UserConfirmation->sendEmailConfirmation(Array)
    #8 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_AccountConfirmation->actionResend()
    #9 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #10 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
    #11 {main}
  6. Solidus

    Solidus Well-Known Member

    Oh and I tried SSL, TLS, and no encryption.
  7. Mouth

    Mouth Well-Known Member

    If you've got the host, port, username, and password (API key) correct it should work fine. I have non XF systems sending through mandrill via this method without any problems.
  8. Solidus

    Solidus Well-Known Member

    I definitely do. Port 587 is listed in tcp_out in CSF too, not sure what is wrong here.
  9. Mouth

    Mouth Well-Known Member

    Try and connect with telnet from a command line to ensure your authentication is correct?
    Solidus likes this.
  10. Solidus

    Solidus Well-Known Member

    I allowed outgoing traffic from port 587 directly in iptables, now it works. Thanks for assisting. (y)
    Mouth likes this.

Share This Page