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) »
  • [SOLVED] EmailProcessor.php sends all emails to 'CiviMail.ignored'
Pages: [1]

Author Topic: [SOLVED] EmailProcessor.php sends all emails to 'CiviMail.ignored'  (Read 4086 times)

elifarley

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 6
  • MySQL version: 5.1.5.3
  • PHP version: 5.3.4
[SOLVED] EmailProcessor.php sends all emails to 'CiviMail.ignored'
December 13, 2011, 07:49:40 pm
We have CiviCRM 4.0.4

Every hour, a cron job calls the EmailProcessor script:

Code: [Select]
CIVI_PARAMS="-sdefault -u$CIVI_USER -p$CIVI_MAILPROCESS_PW"
(cd $CIVI_ROOT && $PHP "bin/civimail.cronjob.php" $CIVI_PARAMS)
(cd $CIVI_ROOT && $PHP "$CIVI_ROOT/bin/EmailProcessor.php" $CIVI_PARAMS)
All emails sent to a POP3 account that CiviMail polls are retrieved and stored in a 'CiviMail.ignored' folder. (See one example below)

  • What could be wrong in our configuration? I'd like to have future emails correctly processed and corresponding email activities autofilled, as described at http://wiki.civicrm.org/confluence/display/CRMDOC40/Autofiling+email+activities+via+EmailProcessor
  • Regarding the emails that were ignored, how can I make them be re-processed? Is there a 'retry' option?

Example of an ignored email:

Code: [Select]
cat sites/default/files/civicrm/custom/CiviMail.ignored/2011/12/13/cur/13918-1323832495-1
Quote
Delivered-To: contact@my.domain
Received: by blah with SMTP id blah;
        Tue, 13 Dec 2011 19:14:33 -0800 (PST)
Received: by blah with SMTP id blah;
        Tue, 13 Dec 2011 19:14:31 -0800 (PST)
Return-Path: <user@dedi222.your-server.de>
Received: from dedi222.your-server.de (dedi222.your-server.de. [blah])
        by blah
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 13 Dec 2011 19:14:31 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of user@dedi222.your-server.de designates blah as permitted sender) client-ip=blah;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of user@dedi222.your-server.de designates blah as permitted sender) smtp.mail=user@dedi222.your-server.de
Received: from localhost ([127.0.0.1] helo=dedi222.your-server.de)
        by dedi222.your-server.de with esmtps (TLSv1:AES256-SHA:256)
        (Exim 4.74)
        (envelope-from <user@dedi222.your-server.de>)
        id 4Takgc-0004aR-O0
        for contact@my.domain; Wed, 14 Dec 2011 04:14:30 +0100
Received: from user by dedi222.your-server.de with local (Exim 4.74)
        (envelope-from <user@dedi222.your-server.de>)
        id 1dsRIc-0011cY-Ab
        for contact@my.domain; Wed, 14 Dec 2011 04:14:30 +0100
To: ContactForm <contact@my.domain>
Subject: Contact message (from a-test)
MIME-Version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Mailer: MediaWiki mailer
From: a-test <valid.email.sender@gmail.com>
Message-Id: <blah@dedi222.your-server.de>
Date: Wed, 14 Dec 2011 04:14:30 +0100

test civimail 36496763
« Last Edit: December 15, 2011, 04:44:06 am by elifarley »

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: EmailProcessor.php sends all emails to 'CiviMail.ignored'
December 14, 2011, 09:21:32 am

a couple of questions and cmments:

1. Might want to upgrade to 4.0.7 or 4.0.8 (being released this week). has got quite a few bug fixes and improvements

2. the below email does not seem like a bounce, it just seems like a random email

3. EmailProcessor has 2 options:

* process bounces/replies for civimail. This uses verp to figure out what job/email/contact was affected
* file email as activities

I suspect u r running EmailProcessor in the first mode. The mailbox has a setting which tells EmailProcessor whch mode to use. I dont think you can use the same mailbox for both (right now)

4. to process the email again, u can just move the email from the .ignored to the main mailbox

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

elifarley

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 6
  • MySQL version: 5.1.5.3
  • PHP version: 5.3.4
Re: EmailProcessor.php sends all emails to 'CiviMail.ignored'
December 14, 2011, 10:32:45 am
Hi Donald, thanks for your reply.

1) Great, I'll upgrade to 4.0.8 in a month or two.
2) It's a regular email, not a bounce
3) I'm using EmailProcessor to file email as activities only

4) by "move to the main mailbox" you mean something like this ?
Code: [Select]
mv sites/default/files/civicrm/custom/CiviMail.ignored/2011/12/13/cur/13918-1323832495-1 sites/default/files/civicrm/custom/CiviMail.processed/2011/12/13/cur/13918-1323832495-1

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: EmailProcessor.php sends all emails to 'CiviMail.ignored'
December 14, 2011, 01:36:40 pm

2. Did u mark the mailbox as processing activities when u configured the mailbox and send the right args when u invoked EmailProcessor to process activities only?

4. Not sure what mail protocol u r using, but if using IMAP, i would do it via a imap client

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

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: EmailProcessor.php sends all emails to 'CiviMail.ignored'
December 14, 2011, 03:01:45 pm
Hi,

You really should have a mailbox to manage the bounces if you do mailings (and you seem to) and the syntax you have is correct *to process bounces*

If you want to process incoming emails, add a param activities

 
Code: [Select]
*When runing script from cli :
 * 1. By default script is being used for civimail processing.
 * eg : nice -19 php bin/EmailProcessor.php -u<login> -p<password> -s<sites(or default)>
 *
 * 2. Pass "activities" as argument to use script for 'Email To Activity Processing'.
 * eg : nice -19 php bin/EmailProcessor.php -u<login> -p<password> -s<sites(or default)> activities
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

elifarley

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 6
  • MySQL version: 5.1.5.3
  • PHP version: 5.3.4
Re: EmailProcessor.php sends all emails to 'CiviMail.ignored'
December 15, 2011, 04:38:00 am
Hmm... I'll read about bounce processing then, thanks :)

And adding the 'activities' parameter made the email-to-activity processing work, thanks a lot !

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • [SOLVED] EmailProcessor.php sends all emails to 'CiviMail.ignored'

This forum was archived on 2017-11-26.