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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Outbound Email Errors with CiviContribute Contribution confirmation emails
Pages: [1]

Author Topic: Outbound Email Errors with CiviContribute Contribution confirmation emails  (Read 1501 times)

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Outbound Email Errors with CiviContribute Contribution confirmation emails
December 19, 2011, 12:26:24 am
This is essentially a continuation of a very old posting of an error I am now experiencing having moved to a different SMTP server. The previous posting was http://forum.civicrm.org/index.php?topic=10368.0. This is happening on both 3.2.5 and 3.4.7 on Joomla 1.5.25 of which both exist on the same server as I am migrating domains and server space. I am using WebKeepers.com VPS with 512MB RAM on a shared quad core. (Plesk is a pain in the ass, BTW.)

I had been using a standard Sendmail standalone server but managing all the RBL lists and new reputation monitors blocking IP addresses was just too much work to deal with. I then moved to http://ElasticEmail.com in Canada. They have great prices and interface. They also do not throttle the relay whatsoever and will manage soft-bounces and greylisting.

But, now I am getting SMTP errors when receipts are sent after a Contribution is completed. CiviMail bulk mail broadcasts are working just fine as are CiviReports.

What file is being used to process the receipts and confirmations? Of all the forum postings and bug reports, there is no reference as if it is obvious. I can count three files that perform mail functions.
  • CiviMailProcessor.php
    EmailProcessor.php
    CiviReportMail.php

I have gone through all the CiviCRM settings to be sure all the 'From:' email addresses are the same as the one that is getting successfully sent through CiviMail bulk broadcasts.

Any ideas would be helpful. Thanks in advance.

Bruce
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
December 19, 2011, 01:42:36 am
Note: I have included both domains at authorized at ElasticEmail.com, so any email sent from these domains will work.
Also, using Plesk 8.6 on CentOS 5 on a VPS is not logging the transactions to any log files that I can see. Rsyslog is running and the config files seem correct.

Additionally, this is the error message received after the 'Confirmation' button is clicked on any contribution:

Code: [Select]
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:
authentication failure [SMTP: Authentication failed. (code: 221, response: Good bye)]

This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » Global 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.

Now, in the Outgoing Server settings, the correct settings are there, works with the Test button and all outgoing bulk CiviMail. But I only get this error on the Contributions.

I have changed the From: email address in the Contribution Page Thank You setting to match the domain name of that CiviCRM instance on the server. Result: No dice, same error.

Where can I find what sender email address it is using?
« Last Edit: December 19, 2011, 02:34:17 pm by bmw »
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
December 19, 2011, 02:29:35 am
UPDATE: One additional item. The SMTP port setting is 2525. Also, the password contains dashes.
I have found the SMTP.php files and hardcoded the SMTP server and port number in those files.
Still, no avail.

Second Update: Seems that this webhost Rsyslog is not logging to 'maillog' so I can't tell what is happening plus CiviCRM is offering no backtrace in this step.

Seems in /civicrm/packages/Net/SMTP.php, there is a listing of the authentication types being:
Code: [Select]
/**
     * List of supported authentication methods, in preferential order.
     * @var array
     * @access public
     */
    var $auth_methods = array('DIGEST-MD5', 'CRAM-MD5', 'LOGIN', 'PLAIN');

Could this be the issue?
Please advise.
« Last Edit: December 19, 2011, 02:34:09 pm by bmw »
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: Outbound Email Errors with CiviContribute Contribution confirmation emails
December 20, 2011, 01:17:20 pm
UPDATE: ElasticeEmail.com doesn't used DIGEST-MD5 authentication.

What I am finding now is that the test-drive sends a receipt perfectly but the headers show that SPF record is working and the DKIM record is NOT working. An error of 'softfail' is returned in the headers.
When I try to perform a live donation, I again get the SMTP errors on authentication.

Can someone tell me the process flow here in receipt sending? What authentication should it be using?
Also, which log files should I be checking to follow this process? (Exact file path please)
What SMTP.php file is it using for the live donation page?
Also, can I hard code the login info as an override into one of the SMTP.php files? I have tried it a number of combinations but I must be missing something. All is back to default now except for removing DIGEST-MD5 from /Net/SMTP.php

Thanx in advance.
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Outbound Email Errors with CiviContribute Contribution confirmation emails

This forum was archived on 2017-11-26.