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) »
  • Properly Configuring Setting for CiviMailProcessor.php
Pages: [1]

Author Topic: Properly Configuring Setting for CiviMailProcessor.php  (Read 1667 times)

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Properly Configuring Setting for CiviMailProcessor.php
April 15, 2009, 01:49:57 pm
There are 4 bounced email notices in my dedicated inbox for the return channel.  They are not processing.

I first setup CiviCRM » Administer CiviCRM » Mail Accounts using IMAP.  When I run the command:
Code: [Select]
/usr/bin/curl 'http://localhost:80/administrator/components/com_civicrm/civicrm/bin/CiviMailProcessor.php?name=...I get
Quote
connecting to localhost, authenticating as membermail and selecting INBOX

When no bounces reported, I switched the setup to Maildir (which is my mail box format) set the path correctly to /home/membermail/Maildir and the output to the curl command was:
Quote
creating /public/www/htdocs/imagescivicrm/custom//CiviMail.ignored/cur
creating /public/www/htdocs/imagescivicrm/custom//CiviMail.ignored/new
creating /public/www/htdocs/imagescivicrm/custom//CiviMail.ignored/tmp
creating /public/www/htdocs/imagescivicrm/custom//CiviMail.processed/cur
creating /public/www/htdocs/imagescivicrm/custom//CiviMail.processed/new
creating /public/www/htdocs/imagescivicrm/custom//CiviMail.processed/tmp

Again, no bounces reported.  I can see the IMAP inbox via a test account setup in my mail client. Any suggestions?
Lead Developer, C3 Design.
Twitter: @FatherShawn

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Properly Configuring Setting for CiviMailProcessor.php
April 15, 2009, 03:52:50 pm
I got those symptoms and no processing.

I eventually figured out the username my ISP required was username@domain.com (not just username).

 (in the civiCRM field on this page CiviCRM » Administer CiviCRM » Mail Account )

It is an authentication not happening error as far as I could figure out. What revealed it to me was logging onto my ISPs webmail and finding the username I had configured wasn't working
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Properly Configuring Setting for CiviMailProcessor.php
April 16, 2009, 06:54:26 am
OK, since the last set of settings was for Maildir, I thought I'd work on that approach.  I realized that the permissions on membermail's Maildir and subdirectories were likely blocking the script.  I added group based permissions to the appropriate directories.  The script moved all the mail into /CiviMail.ignored/cur and still shows no bounces on the report.

I'll change the settings to IMAP and follow Eilleen's suggestion and use the command line to move the messages back to Maildir/new

Lead Developer, C3 Design.
Twitter: @FatherShawn

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Properly Configuring Setting for CiviMailProcessor.php
April 16, 2009, 07:13:34 am
Changes settings to IMAP as above.  Moved messages back to Maildir and they are visible via my IMAP client.  Issued the following on the command line with the output indicated:
Quote
sudo /usr/bin/curl 'http://localhost:80/administrator/components/com_civicrm/civicrm/bin/CiviMailProcessor.php?name=xxxxx&pass=xxxxx&key=xxxxx'
connecting to localhost, authenticating as membermail@trinityhamburg.org and selecting INBOX

No change reflects in the report or in the IMAP inbox.
Lead Developer, C3 Design.
Twitter: @FatherShawn

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Properly Configuring Setting for CiviMailProcessor.php
April 16, 2009, 01:02:04 pm
I also had errors in my apache log I think - see if anything is there
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Properly Configuring Setting for CiviMailProcessor.php
April 16, 2009, 01:57:48 pm
Thanks for pointing out the obvious!  Now I know the problem.  My IMAP server is configured without plain text password support - it requires MD5 for security.  The error message in the apache log indicates that there is no supported authentication mechanism, so I'm guessing the IMAP client in the php script doesn't include MD5 support.

The Maildir method is having permission problems. The script runs as the user that owns the apache process, but the mail messages belong to the email account user.  I'm not sure how to resolve that since new messages are always going to belong to the mail user.
Lead Developer, C3 Design.
Twitter: @FatherShawn

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: Properly Configuring Setting for CiviMailProcessor.php
April 16, 2009, 02:06:33 pm

u might want to investigate ezComponents and see if there is md5 authentication support in their mail package (http://ezcomponents.org/docs/tutorials/Mail). I bet there is support for that.

If so, you might want to see what needs to change to enable MD5 support and we can potentially add it into a future release

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

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Properly Configuring Setting for CiviMailProcessor.php
April 16, 2009, 02:37:57 pm
Well, there's clearly md5 support in their SMTP client, but nothing listed in their IMAP.  I guess I'll keep working on the Maildir permissions issue.
Lead Developer, C3 Design.
Twitter: @FatherShawn

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Properly Configuring Setting for CiviMailProcessor.php

This forum was archived on 2017-11-26.