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) »
  • Email Addresses on Hold Issue
Pages: [1]

Author Topic: Email Addresses on Hold Issue  (Read 2253 times)

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Email Addresses on Hold Issue
June 07, 2010, 10:46:14 am
Hey Guys!!!

I am facing the same email addresses getting on hold status issue on CiviCRM version 3.1.4 but after a bit of proper testing etc. I have realised that when I use Gmail SMTP it works fine but when I use sendmail, all the emails bounce.

Is there a simple way to test sendmail? Although when I configure outgoing emails in Administer>> Settings and select "save and send test email". The test email works fine. But when I try to send test email to myself (from CiviMail); it returns  sendmail error code 64.

I thought it is different from what others are getting so created a separate thread.

Any help appreciated.

Thanks
Rohit
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Email Addresses on Hold Issue
June 07, 2010, 11:16:44 am
Quote from: polestar on June 07, 2010, 10:46:14 am
I have realised that when I use Gmail SMTP it works fine but when I use sendmail, all the emails bounce.

Is there a simple way to test sendmail?

I’m not sure. :| If you have SSH access to your server you can try running sendmail from the commandline; alternatively you can check the mail logs to see what exactly does not work (whether it’s the mailserver or sendmail itself that throws a fit).
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.

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: Email Addresses on Hold Issue
June 11, 2010, 11:27:52 am
Thanks Piotr,

Sendmail was working fine on the old server as well as the new server.

I upgraded CiviCRM to 3.1.5 and tested on a different server. Emails are going out now and are being delivered as well but CiviCRM is still marking them as bounced and changing the email addresses to "ON HOLD".

I have tested it using multiple servers with different ISPs so can't be a problem with anything but CiviCRM bounce handling script.

Any other thoughts?
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: Email Addresses on Hold Issue
June 11, 2010, 11:37:21 am
Another update - Bounce Type is Invalid but all the emails have been delivered...
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Email Addresses on Hold Issue
June 14, 2010, 04:25:07 am
Quote from: polestar on June 11, 2010, 11:27:52 am
I upgraded CiviCRM to 3.1.5 and tested on a different server. Emails are going out now and are being delivered as well but CiviCRM is still marking them as bounced and changing the email addresses to "ON HOLD".

Hm, this is very strange; can you check whether they’re considered bounces right away (i.e., upon sending, even though they get sent) or after you run your return channel script (CiviMail Processor)?

I assume the former; if so, it’d mean that sendmail is returning an error code even though it delivers – can you check whether sendmail invoked from the shell returns 0 (no errors)?
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.

code_tweetie

  • Guest
Re: Email Addresses on Hold Issue
June 15, 2010, 04:06:43 am
Quote from: Piotr Szotkowski on June 14, 2010, 04:25:07 am
Quote from: polestar on June 11, 2010, 11:27:52 am
I upgraded CiviCRM to 3.1.5 and tested on a different server. Emails are going out now and are being delivered as well but CiviCRM is still marking them as bounced and changing the email addresses to "ON HOLD".

Hm, this is very strange; can you check whether they’re considered bounces right away (i.e., upon sending, even though they get sent) or after you run your return channel script (CiviMail Processor)?

I assume the former; if so, it’d mean that sendmail is returning an error code even though it delivers – can you check whether sendmail invoked from the shell returns 0 (no errors)?

Hi Piotr,

I'm working with polestar, and here is what I found.

  • I tried sending mail from shell with the same headers & content as it is generated/formed in CiviMail

    /usr/sbin/sendmail -i -fb.33.537.1c220b7f6c2c07ea@ -- abc@def.com

    The mail got sent but with error code 64 and with the following error.

    b.33.537.1c220b7f6c2c07ea@... Hostname required

    Again I tried sending mail from shell with the same headers & content, but without -f option

    /usr/sbin/sendmail -i -- abc@def.com

    This also sent the mail, but successfully without any errors and return code was 0.
  • From what I can understand from the code, sendmail returns error code 64 because of the following code piece (administrator/components/com_civicrm/civicrm/packages/Mail/sendmail.php) :

            // use Return-Path for SMTP envelopeâs FROM address (if set), CRM-5946
            if (!empty($headers['Return-Path'])) {
                $from = $headers['Return-Path'];
            }
  • And finally, the Bounce is being set because sendmail returns error code 64.

Any ideas where we are going wrong ?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Email Addresses on Hold Issue
June 15, 2010, 04:15:21 am
Hi,

you haven't put your domain name "somewhere". Either in your domain setting ? or your URL ? or your mail ?

Not sure 100% where it is set, probably your mailbox (as set for the bounce)

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

code_tweetie

  • Guest
Re: Email Addresses on Hold Issue
June 15, 2010, 06:23:10 am

Found the problem. Problem was we didn't have any entry in civicrm_mail_settings table.
I added a default entry with a valid domain name & the sendmail now works perfectly without any errors.

Thanks to piotr & xavier.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Email Addresses on Hold Issue

This forum was archived on 2017-11-26.