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 »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Adding site key to civicrm.settings.php prevents all outgoing emails
Pages: [1]

Author Topic: Adding site key to civicrm.settings.php prevents all outgoing emails  (Read 2615 times)

jubex

  • Guest
Adding site key to civicrm.settings.php prevents all outgoing emails
January 11, 2010, 12:39:35 pm
The subject basically explains it.

I recently attempted to set up CiviMail for mass mailings, and everything works just fine until it came time to set up the cron. I generated an md5 hash for the key and added it to the URL for cron, and added it to the civicrm.settings.php file. Everything in CiviCRM works just fine, but now NO emails send. When I try to send an email (activity) to an individual, I get an error
Code: [Select]
authentication failure [SMTP: Authentication failed. (code: 221, response: roger.asmallorange.com closing connection)]
Simply replacing the key with NULL again, and everything works.
The key value 'a' doesn't work, nor does 'abcd1234'.

Is there a way to fix this so I can use my md5 key? Is there a way to get the civimail cron job to run without a site key?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding site key to civicrm.settings.php prevents all outgoing emails
January 12, 2010, 01:25:03 am
Quote
authentication failure [SMTP: Authentication failed. (code: 221, response: roger.asmallorange.com closing connection)]

This error is related your SMTP settings. So first you should check if you able to send test email using above smtp settings.

Kurund
Found this reply helpful? Support CiviCRM

jubex

  • Guest
Re: Adding site key to civicrm.settings.php prevents all outgoing emails
January 12, 2010, 08:28:37 am
The SMTP settings work perfectly without a sitekey. When the site key is set, SMTP cannot authenticate. (Or at least that's the error message that's provided.)

Note that I get this error with a key set even when I send an individual email to a contact, logged in as the admin user.

If I change the key back to NULL, I can send one-off emails (as activities), and I can force CiviMail by navigating to the URL http://<site>/index.php?q=civicrm/mailing/queue&reset=1 when logged in with CiviMail Access.

When we add the name, pass, and key to that URL, (so, http://maculele.org/index.php?q=civicrm/mailing/queue&reset=1?name=name&pass=pass&key=key) in the browser it tries to open the page as an Anonymous user. Does the same when run as a cron job.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Adding site key to civicrm.settings.php prevents all outgoing emails
January 12, 2010, 08:41:22 am

1. r u using 2.2 (which is no longer supported). if so u might want to upgrade to 3.1.beta4 (or beta5 coming out this week)

2. the below is a really wierd error, and seems like some config is getting messed up because of the site key. Would be great for you to add debugging statements and figure out whats getting messed up and why when u add the site key

ping us on irc and we can help u get started with the debugging

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jubex

  • Guest
Re: Adding site key to civicrm.settings.php prevents all outgoing emails
January 12, 2010, 08:54:41 am
I'm actually running 3.1.beta2 on Drupal 6.15. I'll look for you on IRC.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Adding site key to civicrm.settings.php prevents all outgoing emails

This forum was archived on 2017-11-26.