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 »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • SMTP helo failure
Pages: [1]

Author Topic: SMTP helo failure  (Read 9572 times)

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
SMTP helo failure
December 13, 2010, 02:46:25 pm
Quick question, that's probably obvious.

I'm trying to get outgoing email to work using our Mail server. But our mail server is configured to deny invalid HELO domains. Seems CiviCRM (or Drupal) is passing "localhost" as the hostname when it's trying to send email through the SMTP server (which isn't on the same machine).

I see this from CiviCRM:

Failed to add recipient: systems@example.com [SMTP: 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). (code: 504, response: 5.5.2 : Helo command rejected: need fully-qualified hostname)]

And on the mail server, I see:

Dec 13 13:37:08 rowell postfix/smtpd[56906]: NOQUEUE: reject: RCPT from www.example.com[111.222.333.444]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<systems@example.com> to=<systems@example.com> proto=ESMTP helo=<localhost>

Any idea why the hostname isn't being set to www.example.com?

Thanks!

shane

  • I post frequently
  • ***
  • Posts: 265
  • Karma: 16
Re: SMTP helo failure
December 16, 2010, 08:34:59 pm
Hi,  is this question related to using CiviSMTP?  It does not appear to be.  you might get a better response by posting this to a different topic or in the general using CiviMail area.

thanks.

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: SMTP helo failure
December 16, 2010, 08:59:17 pm
I really don't know actually. I figured civismtp was responsible for all smtp traffic out of civicrm.

Is that not the case? Feel free to move this topic if it's better posted somewhere else.

Thanks!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: SMTP helo failure
December 17, 2010, 09:18:11 am
Not an expert on this, but one problem I've seen is mail servers not wanting to send mail FROM mail accounts that don't exist on the mail server and esp from domains they don't recognize. Hence systems@example.com might be a problem. The CiviCRM SMTP test uses the default FROM email address (Administer > CiviMail > From Email Address for the test.
Protect your investment in CiviCRM by  becoming a Member!

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: SMTP helo failure
December 17, 2010, 09:21:34 am
Yeah, that's not the issue. The issue is CiviSMTP (or whatever) is passing the hostname "localhost" when it attempts to send through the SMTP server, which is set to deny any SMTP traffic from servers with invalid FQDN's (which, localhost is), and I can't seem to find a place to change this.

I'll dig into this more next week, as getting this to work is kind of critical. And I'd have to imagine it's something with my setup, since this seems like it would have stopped other people before me.

Will post back when I know more.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: SMTP helo failure
December 17, 2010, 06:17:29 pm
Check domain value in Administer > CiviMail > Mailer Accounts
Protect your investment in CiviCRM by  becoming a Member!

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: SMTP helo failure
March 10, 2011, 04:40:42 pm
So I just checked this again, and configured Administer > CiviMail > Mailer Accounts, but it's still sending localhost.

Here's the SMTP entry.


Mar 10 16:34:46 rowell postfix/smtpd[34454]: NOQUEUE: reject: RCPT from www.example.com[xxx.xxx.xxx.xxx]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<systems@example.com> to=<systems@example.com> proto=ESMTP helo=<localhost>

So the "RCPT from" is being set, but the helo is not.

This is with CiviCRM 4.0a2, but I'd imagine 3.x does the same thing.

Thoughts?

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 helo failure
March 10, 2011, 11:13:57 pm
What's your configuration for outbound ? SMTP or mail() ?


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

staze

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
    • staze.org
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7
  • MySQL version: 5.0.67
  • PHP version: 5.2.9
Re: SMTP helo failure
March 10, 2011, 11:23:10 pm
Quote from: xavier on March 10, 2011, 11:13:57 pm
What's your configuration for outbound ? SMTP or mail() ?

smtp. mail would probably work, but I'd really prefer send all mail through our mail server, rather than having individual systems generating mail. =/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • SMTP helo failure

This forum was archived on 2017-11-26.