CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • SMTP not working?
Pages: [1]

Author Topic: SMTP not working?  (Read 875 times)

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
SMTP not working?
November 07, 2014, 09:27:40 pm
My website is hosted on a shared server. There have been occasional issues with the server's being blacklisted, so I am trying to configure CiviCRM to use mandrill. (Note that I successfully installed the Drupal mandrill extension and have confirmed that Drupal emails are being sent via mandrill.)

Here's what's odd: I configured  Administer CiviCRM - Settings - Outbound Mail with the proper settings for mandrill and then clicked 'Save and Send Test Email'. I received a notification that the mail was sent and that the SMTP settings are correct. But, the email was sent via localhost! I tried clearing the CiviCRM caches, but that did not resolve the issue.

Any suggestions?

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: SMTP not working?
November 16, 2014, 10:16:17 am
Some more information: When I enter port 587 (as required by Mandrill) and then click "Save and Send Test Email"; I get the following error message:

Quote
Sending test email. FROM: <email> TO: <email>.
Oops. Your SMTP settings are incorrect. No test mail has been sent.

An error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.

The mail library returned the following error message:
Failed to add recipient: <my_email> [SMTP: Invalid response code received from SMTP server while sending email. This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 550, response: SMTP AUTH is required for message submission on port 587)]

This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » System Settings » Outbound Email), OR the FROM email address specifically configured for your contribution page or event. Possible causes are:

    Your SMTP Username or Password are incorrect.
    Your SMTP Server (machine) name is incorrect.
    You need to use a Port other than the default port 25 in your environment.
    Your SMTP server is just not responding right now (it is down for some reason).
    The FROM Email Address configured for this feature may not be a valid sender based on your email service provider rules.

I know for fact that the various parameters are entered correctly because I cut/pasted them from the Mandrill settings page.

I just found a CiviCRM-Mandrill extension - guess I need to use that because the simple SMTP route just will not work.
« Last Edit: November 16, 2014, 11:27:59 am by groston »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SMTP not working?
November 16, 2014, 10:49:10 am
Does your Drupal SMTP also use port 587?

Perhaps the From address is different?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: SMTP not working?
November 16, 2014, 11:35:05 am
Hershel,

Thanks for the reply.

Regarding your first suggestion: For Drupal, I could not get SMTP working, so I installed the Mandrill module. I do not know which port it uses.

Regarding your second suggestion: I did not see anything that suggests that Mandrill looks at the From email address, especially since the login credentials are needed to send via their service.

planetwebb

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
  • CiviCRM version: 4.5.8
  • CMS version: Joomla 2.5.28 / Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.22
Re: SMTP not working?
November 16, 2014, 12:31:09 pm
Last time I worked with Mandrill, you needed to use ssl: in front of the server name to connect.  Have you tried that?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • SMTP not working?

This forum was archived on 2017-11-26.