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) »
  • STMP mail error
Pages: [1]

Author Topic: STMP mail error  (Read 4789 times)

mattrick00

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Joomla 1.5.15
  • MySQL version: 5.1.58-community-log
  • PHP version: 5.2.17
STMP mail error
October 05, 2011, 12:24:22 pm
When I attempt to do a mailing and I send a test email (step 4 of 5), I get this error:
"Sorry. A non-recoverable error has occurred. Invalid response code received from SMTP (outbound mail) server while attempting to send email. This is often caused by a misconfiguration in the CiviCRM Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP)."

However, when I check my SMTP settings (administer/Configure/Global Settings/Settings-Outbound Mail) by clicking on the "Save and Send Test Email" button, it works fine. I see "Your SMTP settings are correct. A test email has been sent to your email address," and then if I check the email it was sent to, I do indeed receive the email. Why am I having trouble with mailings?

All help appreciated!

Matt Martin
Community Bike Project Omaha

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: STMP mail error
October 05, 2011, 02:20:13 pm
I would suggest you ask your host to tell you what response code is being sent from the SMTP server.
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.

mattrick00

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Joomla 1.5.15
  • MySQL version: 5.1.58-community-log
  • PHP version: 5.2.17
Re: STMP mail error
October 12, 2011, 12:51:36 pm
Ok, spent a bunch of time with Bluehost tech support, and they tell me that, as is evidenced by the fact that I can send out a test email through the Administer>>Configure>>Global Settings>>Outbound Email screen, that the problem is not with Bluehost (my hosting service), but with CiviCRM.

Why would it work when I send a test email through the Global Settings>>Outbound Email screen, but not when I try to send a test email in the Mailings>>New Mailing>>Test(step 4 of 5) screen? Isn't it using the same SMTP info?

Still confused...

Matt

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: STMP mail error
October 12, 2011, 01:58:02 pm

The big different is the from/reply-to headers we set when sending a civimail. I suspect bluehost is rejecting those email because of that

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

mattrick00

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Joomla 1.5.15
  • MySQL version: 5.1.58-community-log
  • PHP version: 5.2.17
Re: STMP mail error
October 14, 2011, 05:16:57 pm
Ok, just talked with Bluehost again. Apparently, even though I have entered a valid email address, password, SMTP server, and SMTP Port in both Joomla and CiviCRM (hence, why it works when I send a test email), the Bluehost tech looked up the error message generated when I try to send a test mailing in CiviMail and it fails--and to Bluehost, it looks like the email is coming from a completely different username.

I have setup info@communitybikeproject.org as the FROM email address, yet Bluehost sees the email as from b.79.3142.33725ac05f6ba4c8@communitybikeproject.org. Since that is not a valid username, Bluehost is rejecting the email.

Why is CiviCRM generating this username when I send out a test mailing, and how do I fix this?

Thanks much for all the help so far.

Matt

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: STMP mail error
October 14, 2011, 07:26:33 pm
@mattrick00,

On step 2 of the mailing wizard, there is a checkbox labeled 'Track Replies?'. Try unchecking that.

When that is checked, the REPLY TO header is set to the VERP address which Bluehost says is invalid, and the FROM header is set to one you enter at Step 3. When unchecked, the REPLY TO and FROM addresses are both set the one you set at Step 3.

You will lose the ability for CiviCRM to track who replied to your email, and some bounces you will need to process by hand (eg, when the failure is not reported at the time CiviCRM sends the email).

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: STMP mail error
October 15, 2011, 12:33:20 am
Quote from: mattrick00 on October 14, 2011, 05:16:57 pm
Ok, just talked with Bluehost again. Apparently, even though I have entered a valid email address, password, SMTP server, and SMTP Port in both Joomla and CiviCRM (hence, why it works when I send a test email), the Bluehost tech looked up the error message generated when I try to send a test mailing in CiviMail and it fails--and to Bluehost, it looks like the email is coming from a completely different username.

I have setup info@communitybikeproject.org as the FROM email address, yet Bluehost sees the email as from b.79.3142.33725ac05f6ba4c8@communitybikeproject.org. Since that is not a valid username, Bluehost is rejecting the email.


It means that you haven't properly configured the mail account. To be able to track who bounces, civimail uses a technique called VERP, where each sender email is unique.

You need to create a mailbox (different than info) and set up the bounce processing.

It was described on the previous version of the book, couldn't find it right now, I've asked the updated where they put it (check out the wiki, that's probably there too).

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

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: STMP mail error
October 15, 2011, 05:40:36 am
Xavier's right - the VERP address lacks the prefix 'account+' eg info+b.79.3142.33725ac05f6ba4c8@communitybikeproject.org

That's set up in (and I'm doing this from memory as I'm not in CiviCRM) Administer > CiviMail > Email Accounts

mattrick00

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Joomla 1.5.15
  • MySQL version: 5.1.58-community-log
  • PHP version: 5.2.17
Re: STMP mail error
October 16, 2011, 10:41:20 am
So, I have never had the "Track Replies" box checked at all...or any of the boxes on step 2 of the mailing wizard.

I did try setting up a new account: bounce@communitybikeproject.org and put that info in the Administer > CiviMail > Mail Accounts setup. However, I'm still getting the same error...Clearly, I still have something setup wrong...

Here's how Administer > CiviMail > Mail Accounts is set up:

Name: Default
Server: mail.communitybikeproject.org
Username: bounce@communitybikeproject.org
Password: xxxxxx
Localpart: bounce+
Email Domain: communitybikeproject.org
Return Path: (blank)
Protocol: LocalDir
Source: (blank)
Use SSL?: (unchecked)
Default Option?: (checked)

And my Configure > Global Settings > Outbound settings:

SMTP Server: mail.communitybikeproject.org
SMTP Port: 26
Authentication?: Yes
SMTP Username: info@communitybikeproject.org
SMTP Password: xxxxxxxxx

And my Joomla > Site > Global Configuration > Server > Mail Settings settings:

Mailer: SMTP Server
Mail from: info@communitybikeproject.org
From name: CBPO
Sendmail Path: /usr/sbin/sendmail
SMTP Authentication: Yes
SMTP Security: None
SMTP Port: 26
SMTP Username: info@communitybikeproject.org
SMTP Password: xxxxxxx
SMTP Host: mail.communitybikeproject.org


Now, I feel like I'm missing something simple...

Matt

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: STMP mail error
October 16, 2011, 01:01:28 pm
Hi,

Is the email sent the same or is this bounce+b.xxxx@ ?

Try sending an email to info+test@bike see if bluehost supports the plus notation.

Btw, can't you use mail() instead of smtp?

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

mattrick00

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Joomla 1.5.15
  • MySQL version: 5.1.58-community-log
  • PHP version: 5.2.17
Re: STMP mail error
October 16, 2011, 06:31:49 pm
Hi Xavier,

Not sure I understand the first question - I sent the test mailing from the same info@ address. Is this what you mean?

I tried sending email to info+test@ - it failed permanently with a 550 No Such User Here error.

I switched over to try using mail() and now get this error when I try to send a test message through CiviMail: "Sorry, a non-recoverable error has occurred. mail() returned failure."

(NB: When I send a test email through Administer > Configure > Global Settings > Outbound Email, it does work using mail().)

Matt

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: STMP mail error
October 20, 2011, 05:17:47 pm
Matt,

I think Xavier's nailed it. Bluehost don't support the '+' notation in the email address.

The other options are to use a catch-all address (an address that receives all mail not picked up by other accounts - Bluehost may not support that as it is a SPAM bucket) or to use another provider (eg, Gmail). Google allows you to set up Gmail as the mail provider for your domain, so people don't need to be aware that your using them.

Ken

mattrick00

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Joomla 1.5.15
  • MySQL version: 5.1.58-community-log
  • PHP version: 5.2.17
Re: STMP mail error
October 20, 2011, 07:35:26 pm
Rats. Can't get there from here!

Thanks for all the replies and insights - I appreciate the time and thoughts.

Matt

gsoundsgood

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Wordpress
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.16
Re: STMP mail error
August 13, 2012, 10:50:24 am
I'm on Bluehost, and I followed the suggestions mentioned in this post:
http://forum.civicrm.org/index.php?topic=24242.0

everyhting is working fine now.
« Last Edit: August 13, 2012, 11:31:07 am by gsoundsgood »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • STMP mail error

This forum was archived on 2017-11-26.