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) »
  • Failed to add recipient: - SMTP error 550
Pages: [1] 2

Author Topic: Failed to add recipient: - SMTP error 550  (Read 24722 times)

bubbasheeko

  • Guest
Failed to add recipient: - SMTP error 550
June 27, 2007, 04:51:00 pm
When ever I try to send an email via CiviMail I receive the following error:

Please correct the following errors in the form fields below:

    * The test mailing could not be delivered due to the following error:
      Failed to add recipient: info@leedsgrenvilleliberals.ca [SMTP: Invalid response code received from server (code: 550, response: Verification failed for No Such User Here Sender verify failed)]

I have confirmed the password is correct in civicrm.settings.php and there is no duplicate file that has any other settings specified.  I have verified that the sending account exists - I can send and receive in Outlook on the sender account.  I have verified that the account is set up correctly in the Global Settings of Civicrm.

I am at a loss.

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: Failed to add recipient: - SMTP error 550
June 27, 2007, 05:04:45 pm

this message:

"550, response: Verification failed for No Such User Here Sender verify failed)"

is sent by your smtp server. If you are familiar with PHP you could instrument the PEAR smtp.php code and ensure it has the right values for authenticating. You can also ask your hosting provider to give you more details / check their log files for the above error and that might help you debug/fix the issue

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

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
June 28, 2007, 07:01:17 am
Thanks for your response Lobo.  I have one issue with this.  Is there that much of a difference between 1.6 and 1.7?  I was able to send email with this host on 1.6 and now I can't on 1.7.

Where can I find smtp.php?
« Last Edit: June 28, 2007, 07:05:14 am by bubbasheeko »

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: Failed to add recipient: - SMTP error 550
June 28, 2007, 07:59:19 am

check this forum topic for location of smtp.php and some debugging tips

http://forum.civicrm.org/index.php/topic,374.0.html

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

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
June 28, 2007, 10:52:46 am
Lobo,

I checked that, my issue is not causing any hanging.  To put in an echo statement is overkill as you see the error it is receiving and it is stopping at PEAR_MAIL_SMTP_ERROR_AUTH.  My host states that it is not a problem on their end as I can send and receive email with the account so it is working.  They have put a ticket into their support group to make sure there is no issues.

I just want to make something clear, as it might cause issues.  This site moved from a PHP4 server to a PHP 5 server.  Civicrm was removed and reinstalled with the PHP 5 version.

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: Failed to add recipient: - SMTP error 550
June 28, 2007, 10:56:20 am

yes i know :) the link to that forum was to give you an idea of how other people go about debugging smtp issues. this is a system specific issue so u'll have to give into the code (or get someone to do it for you) and figure out what the error is and why

please do update the forum on what the fix was.

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

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
June 29, 2007, 09:06:20 am
Hi Lobo.

I am starting to lean towards my domain set up.  I had to enter the new information for their PHP5 server.
My host provider had provided me with the Name Server and the IP.  After checking the IP addresses out, they do not match up with the Name Server.  I had seen something in a few other forums about this type of issue.  I have removed the IP's from my domain registration.  I will report back my findings as soon as the DNS updates.

Kevin

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
June 30, 2007, 06:02:28 am
While this took care of another issue I was having with my webmail with my host, it did not fix my issue with the SMTP error in CiviCRM.  Starting to go through the code now.  I will also be making my own basic smtp.php file to test my smtp server.  Will post that as a troubleshooting option when I have it complete.

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
June 30, 2007, 08:29:44 am
I set up a smtp test, similar to the one that you can find at phpclasses.org.

Code: [Select]
Resolving SMTP server domain "mail.domain.com"...
Connecting to host address "000.000.000.000" port 25...
Connected to SMTP server "mail.domain.com".
S 220-HOST ESMTP Exim 4.66 #1 Sat, 30 Jun 2007 11:09:39 -0400
S 220-We do not authorize the use of this system to transport unsolicited,
S 220 and/or bulk e-mail.
C EHLO localhost
S 250-HOST Hello localhost [000.000.000.000]
S 250-SIZE 52428800
S 250-PIPELINING
S 250-AUTH PLAIN LOGIN
S 250-STARTTLS
S 250 HELP
C AUTH PLAIN  [i]Login Info[/i]
S 535 Incorrect authentication data
C AUTH PLAIN  [i]Login Info[/i]
S 235 Authentication succeeded
C MAIL FROM:<my2@testeremail.com>
C RCPT TO:<my@testemail.com>
C DATA
S 250 OK
S 250 Accepted
S 354 Enter message, ending with "." on a line by itself
C From: my2@testeremail.com
To: my@testemail.com
Subject: Testing SMTP relay with HOST
Date: Sat, 30 Jun 2007 11:09:39 EDT


C Hello my@testemail.com,

This is a quick message to let you know that your SMTP is working just fine.

Bye.

C
.
S 250 OK id=1I4eZw-0005lo-16
C QUIT
S 221 HOST closing connection
Disconnected.
Message sent to my@testemail.com OK.

This at least shows my smtp is working and is authenticated.  I will have to do a comparison with the code that I have here to the packages/mail/smtp.php and find out why the civicrm can not get the job done.

Will post my findings, but again, if anybody has an idea where this might be caused...please post it!

Thanks,

Kevin

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Failed to add recipient: - SMTP error 550
June 30, 2007, 09:35:57 am
Kevin, can you try re-running your test with info@leedsgrenvilleliberals.ca in place of my@testemail.com?
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.

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
June 30, 2007, 06:13:31 pm
Sorry, I get used to replacing items in a post.  This was tested with the info@leedsgrenvilleliberals.ca with an email to another leedsgrenvilleliberals email account.   The exact address that I am trying to send to in civimail.

In addition, is SASL used for authenticating the smtp account?  ------> NM...i see that it does.
« Last Edit: July 01, 2007, 10:59:50 am by bubbasheeko »

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
July 01, 2007, 05:50:26 am
Okay, so I turned on debug in Net/SMTP.php, here are the results.

Code: [Select]
DEBUG: Recv: 220-host.com ESMTP Exim 4.66 #1 Sun, 01 Jul 2007 08:16:20 -0400
DEBUG: Recv: 220-We do not authorize the use of this system to transport unsolicited,
DEBUG: Recv: 220 and/or bulk e-mail.
DEBUG: Send: EHLO localhost
DEBUG: Recv: 250-host.com Hello localhost [127.0.0.1]
DEBUG: Recv: 250-SIZE 52428800
DEBUG: Recv: 250-PIPELINING
DEBUG: Recv: 250-AUTH PLAIN LOGIN
DEBUG: Recv: 250-STARTTLS
DEBUG: Recv: 250 HELP
DEBUG: Send: AUTH LOGIN
DEBUG: Recv: 334 VXNlcm5hbWU6
DEBUG: Send: aW5mb0BsZWVkc2dyZW52aWxsZWxpYmVyYWxzLmNh
DEBUG: Recv: 334 UGFzc3dvcmQ6
DEBUG: Send: bGliNGV2ZXI=
DEBUG: Recv: 235 Authentication succeeded
DEBUG: Send: MAIL FROM:
DEBUG: Recv: 250 OK
DEBUG: Send: RCPT TO:
DEBUG: Recv: 550-Verification failed for
DEBUG: Recv: 550-No Such User Here
DEBUG: Recv: 550 Sender verify failed
DEBUG: Send: RSET
DEBUG: Recv: 250 Reset OK

Hmmm.  Where is the email account information for Mail From: and Rcpt To: ???  This should be seen in debug and they are not there.  It looks like it is sending no data at all.
« Last Edit: July 01, 2007, 07:02:20 am by bubbasheeko »

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: Failed to add recipient: - SMTP error 550
July 01, 2007, 08:53:45 am

You might want to start tracing the code upwards and tracking the parameters and see where the from/to email address appear and disappear

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

bubbasheeko

  • Guest
Re: Failed to add recipient: - SMTP error 550
July 01, 2007, 11:01:47 am
Hey Lobo,

What is the file that stores the values for the email?  I want to take a close look at that too.

As another added note.  When I use the email function when viewing the contact information in Civicrm, I am able to send an email to that person.

Thanks,

Kevin
« Last Edit: July 01, 2007, 09:15:43 pm by bubbasheeko »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Failed to add recipient: - SMTP error 550
July 01, 2007, 08:57:12 pm
Quote from: bubbasheeko on July 01, 2007, 05:50:26 am
Code: [Select]
DEBUG: Recv: 220-host.com ESMTP Exim 4.66 #1 Sun, 01 Jul 2007 08:16:20 -0400
[…]
DEBUG: Send: MAIL FROM:
DEBUG: Recv: 250 OK
DEBUG: Send: RCPT TO:
DEBUG: Recv: 550-Verification failed for
DEBUG: Recv: 550-No Such User Here
DEBUG: Recv: 550 Sender verify failed
DEBUG: Send: RSET
DEBUG: Recv: 250 Reset OK

Hmmm.  Where is the email account information for Mail From: and Rcpt To: ???  This should be seen in debug and they are not there.  It looks like it is sending no data at all.

Yeah, that’s the problem.

MAIL FROM should be set to a bounce address at your domain, with the destination email encoded in VERP. In my case, when trying to send a test to shot@localhost, it gets set to <bounce.DOMAIN.JOB.QUEUE.HASH-shot=localhost@devielle>.

RCPT TO gets set to the destination email, <shot@localhost>.
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.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Failed to add recipient: - SMTP error 550

This forum was archived on 2017-11-26.