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) »
  • SMTP Broke after PHP upgrade
Pages: [1]

Author Topic: SMTP Broke after PHP upgrade  (Read 2988 times)

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
SMTP Broke after PHP upgrade
August 05, 2010, 05:23:10 am
Hmmm...  Last night I upgraded my server to PHP 5.2.14 and now my SMTP mail won't work in CiviCRM.  I get the :

Code: [Select]
authentication failure [SMTP: Authentication failed. (code: 221, response: my.server.com)]
I'm guessing it's a PHP setting or something I need to set, but I thought I'd post here in case anyone ran into an SMTP issue after upgrading PHP.

It can't be an issue with the SMTP server.  I was using SendGrid...and I even tried my own SMTP server...snd got the same results.

I'm still digging...but for now I'm just using sendmail.

And ideas ?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: SMTP Broke after PHP upgrade
August 06, 2010, 03:50:49 am
Quote from: Conga3.com on August 05, 2010, 05:23:10 am
Hmmm...  Last night I upgraded my server to PHP 5.2.14 and now my SMTP mail won't work in CiviCRM.

Do you remember which PHP version worked?

Quote
I get the :

Code: [Select]
authentication failure [SMTP: Authentication failed. (code: 221, response: my.server.com)]
[…]

I'm still digging...but for now I'm just using sendmail.

Does this mean that sending with sendmail works, but with PHP’s mail() and SMTP doesn’t?

Also: do you use CiviMail? If so, is the problem the same with CiviMail as with the send-email-to-contact functionality?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: SMTP Broke after PHP upgrade
August 06, 2010, 09:31:51 am
My old PHP version was 5.2.9

Sendmail does work.

I knew the SMTP emails were failing because I stopped getting auto-notifications from CiviCRM during contribution submission...etc..  I went into the Mail/SMTP config page to send a test email.

It took a LONG time to process for both my SendGrid SMTP settings, and my local SMTP server settings, but both eventually failed with the error mentioned above.  After I switched it to Sendmail, it worked fine.

I'm wondering if it is a PERL issue in general...or something specific to CiviCRM integration of the SMTP lib..  I haven't had time to narrow it down yet, and so far I haven't noticed another PEAL function failing on another site.

I had two CiviCRM installs on the server (both 3.1.5), and both failed the same way regarding the SMTP outbound emails.
---

I haven't yet tested PHP mail() function, but that's Sendmail anyway right?

I haven't yet tested a Bulk mail through CiviMail using SMTP to see if they go through.  Mainly because SMTP setting can't send a Test email from the config page....

----
Just in case, it could possibly be related to my issue I performed these actions during the upgrade, I upgraded PHP, MySQL and installed MCRYPT and MHASH modules.

« Last Edit: August 06, 2010, 02:06:21 pm by Conga3.com »

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: SMTP Broke after PHP upgrade
August 06, 2010, 09:37:03 am
And just for fun... here is the PHP upgrade print out :

Code: [Select]
Downloading Packages:
(1/16): php-mysql-5.2.14- 100% |=========================|  76 kB    00:00
(2/16): php-odbc-5.2.14-1 100% |=========================|  47 kB    00:00
(3/16): php-ncurses-5.2.1 100% |=========================|  35 kB    00:00
(4/16): php-pgsql-5.2.14- 100% |=========================|  61 kB    00:00
(5/16): php-cli-5.2.14-1. 100% |=========================| 2.3 MB    00:01
(6/16): php-5.2.14-1.el4. 100% |=========================| 1.2 MB    00:00
(7/16): php-xml-5.2.14-1. 100% |=========================| 102 kB    00:00
(8/16): php-ldap-5.2.14-1 100% |=========================|  32 kB    00:00
(9/16): php-devel-5.2.14- 100% |=========================| 571 kB    00:00
(10/16): php-snmp-5.2.14- 100% |=========================|  25 kB    00:00
(11/16): php-mbstring-5.2 100% |=========================| 1.0 MB    00:00
(12/16): php-common-5.2.1 100% |=========================| 272 kB    00:00
(13/16): php-xmlrpc-5.2.1 100% |=========================|  49 kB    00:00
(14/16): php-imap-5.2.14- 100% |=========================|  48 kB    00:00
(15/16): php-pdo-5.2.14-1 100% |=========================|  64 kB    00:00
(16/16): php-gd-5.2.14-1. 100% |=========================| 113 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : php-common                   ##                      [ 1/32]warning: /etc/php.ini created as /etc/php.ini.rpmnew
  Updating  : php-common                   ####################### [ 1/32]
  Updating  : php-pdo                      ####################### [ 2/32]
  Updating  : php-cli                      ####################### [ 3/32]
  Updating  : php                          ####################### [ 4/32]
  Updating  : php-mysql                    ####################### [ 5/32]
  Updating  : php-odbc                     ####################### [ 6/32]
  Updating  : php-ncurses                  ####################### [ 7/32]
  Updating  : php-pgsql                    ####################### [ 8/32]
  Updating  : php-xml                      ####################### [ 9/32]
  Updating  : php-ldap                     ####################### [10/32]
  Updating  : php-devel                    ####################### [11/32]
  Updating  : php-snmp                     ####################### [12/32]
  Updating  : php-mbstring                 ####################### [13/32]
  Updating  : php-xmlrpc                   ####################### [14/32]
  Updating  : php-imap                     ####################### [15/32]
  Updating  : php-gd                       ######################  [16/32]warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  Updating  : php-gd                       ######################  [16/32]warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
  Updating  : php-gd                       ####################### [16/32]
  Cleanup   : php-mysql                    ####################### [17/32]
  Cleanup   : php-odbc                     ####################### [18/32]
  Cleanup   : php-ncurses                  ####################### [19/32]
  Cleanup   : php-pgsql                    ####################### [20/32]
  Cleanup   : php-cli                      ####################### [21/32]
  Cleanup   : php                          ####################### [22/32]
  Cleanup   : php-xml                      ####################### [23/32]
  Cleanup   : php-ldap                     ####################### [24/32]
  Cleanup   : php-devel                    ####################### [25/32]
  Cleanup   : php-snmp                     ####################### [26/32]
  Cleanup   : php-mbstring                 ####################### [27/32]
  Cleanup   : php-common                   ####################### [28/32]
  Cleanup   : php-xmlrpc                   ####################### [29/32]
  Cleanup   : php-imap                     ####################### [30/32]
  Cleanup   : php-pdo                      ####################### [31/32]
  Cleanup   : php-gd                       ####################### [32/32]

Updated: php.i386 0:5.2.14-1.el4.art php-cli.i386 0:5.2.14-1.el4.art php-common.i386 0:5.2.14-1.el4.art php-devel.i386 0:5.2.14-1.el4.art php-gd.i386 0:5.2.14-1.el4.art php-imap.i386 0:5.2.14-1.el4.art php-ldap.i386 0:5.2.14-1.el4.art php-mbstring.i386 0:5.2.14-1.el4.art php-mysql.i386 0:5.2.14-1.el4.art php-ncurses.i386 0:5.2.14-1.el4.art php-odbc.i386 0:5.2.14-1.el4.art php-pdo.i386 0:5.2.14-1.el4.art php-pgsql.i386 0:5.2.14-1.el4.art php-snmp.i386 0:5.2.14-1.el4.art php-xml.i386 0:5.2.14-1.el4.art php-xmlrpc.i386 0:5.2.14-1.el4.art
Complete!

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: SMTP Broke after PHP upgrade
August 07, 2010, 09:05:36 am
I can't send SMTP emails through Joomla either...so that rules out a bug in CiviCRM...and leaves my server as the issue I think.


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: SMTP Broke after PHP upgrade
August 09, 2010, 06:13:14 am
mail() should be a wrapper for sendmail, yes. If Joomla sending doesn’t work as well (but sendmail does), then you need to check with your hosting provider and/or see the mailserver’s logs for the error message associated with the failures.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: SMTP Broke after PHP upgrade
August 09, 2010, 07:30:03 am
Quote from: Piotr Szotkowski on August 09, 2010, 06:13:14 am
mail() should be a wrapper for sendmail, yes.

<bikeshed color="whatever">
sendmail uses a system() or exec() of sendmail. ie. the overhead is probably higher than mail(). On windows, mail() tries to use the smtp configured in php.ini if I recall properly, but don't have a running php on win so can't confirm.
</bikeshed>

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • SMTP Broke after PHP upgrade

This forum was archived on 2017-11-26.