Answers.Body: <p>It looks like CiviCRM uses <a href="https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L160" rel="nofollow noreferrer">the domain specified in the bounce mailbox settings</a> to generate a regex to match incoming bounce messages.</p>
  
  <p>From the info in your question, I suspect CiviCRM is directing bounces to a (subtly) different domain name. As a result, it doesn't think the bounces are intended for CiviCRM to process, and moves them to the ignored folder (as CiviCRM would with other "not for me" email).</p>
  
  <p>See your mail account settings (Admin > CiviMail > Mail Accounts).</p>
  
  <p>Try ensuring both the return address and site domain match, and see if the problem persists.</p>
  
  <p>Once correctly configured (or, temporarily misconfigured to match the misspelled inbound address!), you can move those messages back from the CiviCRM.ignored mailbox to the INBOX, and re-process them.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-06T23:44:56.977Z
Answers.Text: Apparently the misspelling persisted after a domain change, possibly cached.  It is now gone.  I would hate to have that domain reinstalled.  I am planning on downloading and editing the emails to put the correct domain in them and then sending them back.  Do you happen to know if the bounce processor will handle multiple bounce info in one email or do they have to be separate emails?
Answers.UserDisplayName: Mike Ubell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-07T04:40:55.003Z
Answers.Text: You should [mark your question here as answered](http://civicrm.stackexchange.com/help/accepted-answer) :) ... I feel like it should be possible for you to reconfigure CiviCRM temporarily to accept the "wrong" domain for those bounces, move them from `CiviCRM.ignored` to `INBOX`, run the bounce processor, then configure CiviCRM back to use the "proper" domain. Downloading and uploading the previous set of bounces might not go as smoothly as you expect. (I don't know, haven't tried.)
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-07T17:41:22.517Z
Answers.Text: I am not clear where to change the domain.  It is not clear what it uses to generate the X-CiviMail-Bounce domain.  Is it the bounce email address or the domain of the site? When I switched my site from my hosting domain to my real one it was down till someone went in and edited the database, so I will not casually change it again.  If there are specific instructions on exactly what I should change I will do that.
Answers.UserDisplayName: Mike Ubell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-08T20:43:20.223Z
Answers.Text: Ok.  It seems that sending the mail to the b. generated address does the trick.  Glancing through the code it looked like just having the X-CiviMail-Bounce record should be sufficient, but I guess not.
Answers.UserDisplayName: Mike Ubell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-09T01:16:16.093Z
Answers.Text: Yay! Good work for persisting :D
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-06T01:57:01.087Z
Answers.LastActivityDate: 2016-12-06T01:57:01.087Z
Answers.UserDisplayName: Chris Burgess
Body: <p>I did a first mailing and then got the bounce processing job working.  It just moved all the bounce responses (about 100) to the ignore mailbox and did not mark any of my contacts.  How do I tell what went wrong? There is no info in the log other than saying that it rand the job successfully.  </p>
  
  <p>Also I got emails of the form:
  To: u.68.3087.7ed8aa555f763f19@californiacalvary.org
  iOS Mail sent this email to unsubscribe from the message “One Week To Go!”.</p>
  
  <p>Should these get processed?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-05T22:47:17.143Z
Comments.Text: The spelling in `californiacalvary.org` catches my eye (sorry, I'm like that). I wonder if your CiviCRM is ignoring the bounce emails because it's configured to expect bounces to `californiacavalry.org`? Looks like you have both domains registered - ✝ vs   ?
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-06T01:11:00.143Z
Comments.Text: Interesting point.  The person who came up with the name misspelled it and being a lousy speller I just trusted.  We have both domains with the calvary one parked on the correct spelling of cavalry.  It does seem that the bounced emails are to the wrong spelling.  I must have something still configured the other way.
Comments.UserDisplayName: Mike Ubell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-06T01:49:52.570Z
Comments.Text: Worth eliminating. If you enable debugging on your site, debug log will show when CiviCRM ignores some emails. [See relevant code here](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L238), look for `markIgnored()`.
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-06T01:50:56.057Z
Comments.Text: Suggests either CiviCRM [failed to parse the email](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L244), or [didn't match recipient](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L189) (possibly b/c wrong domain?).
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-06T03:59:42.863Z
Comments.Text: Being a newbie, I am not sure how to turn on debugging.  I tried Administrator->Debugging and Error Handling and turned on debugging. There is no additional output in the Bounce job log.
Comments.UserDisplayName: Mike Ubell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-06T04:26:50.840Z
Comments.Text: Administer > System Settings > Debugging & Error Handling will log debug output to the CiviCRM debug log. This is a file on your webserver's disk. See http://civicrm.stackexchange.com/questions/6399/how-do-i-debug-civicrm-when-i-hit-a-blank-page-white-screen-fatal-error/6400#6400 and look for "debug log".
Comments.UserDisplayName: Chris Burgess
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-06T06:06:40.997Z
Comments.Text: You are definitely correct, its the bad domain that is causing the problem.  I was able to fake up an email with the right domain and it got processed.  Now I need to figure out why that domain is being used, I cannot find it in any of the places where you set email addresses, etc.
Comments.UserDisplayName: Mike Ubell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-07T17:36:37.857Z
Comments.Text: I turned on debugging and found the log (not where the docs said it would be but here: www/wp-content/uploads/civicrm/ConfigAndLog/CiviCRM.7994af42d5e2f8c96986ad92.log).  No output is generated when I run the bounce job and my attempt to patch the 100 bounce messages did not work for some reason, it would be nice to know why.
Comments.UserDisplayName: Mike Ubell
Tags: <civimail>
Title: Why would bounce processing put all emails into CiviCRM.ignore mailbox?
ThreadText: # Why would bounce processing put all emails into CiviCRM.ignore mailbox?
  
  (Asked by: username_0 on 2016-12-05)
  
  I did a first mailing and then got the bounce processing job working. It just moved all the bounce responses (about 100) to the ignore mailbox and did not mark any of my contacts. How do I tell what went wrong? There is no info in the log other than saying that it rand the job successfully.
  
  Also I got emails of the form:
  To: u.68.3087.7ed8aa555f763f19@californiacalvary.org
  iOS Mail sent this email to unsubscribe from the message “One Week To Go!”.
  
  Should these get processed?
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: The spelling in `californiacalvary.org` catches my eye (sorry, I'm like that). I wonder if your CiviCRM is ignoring the bounce emails because it's configured to expect bounces to `californiacavalry.org`? Looks like you have both domains registered - ✝ vs   ?  
  > **username_0**: Interesting point.  The person who came up with the name misspelled it and being a lousy speller I just trusted.  We have both domains with the calvary one parked on the correct spelling of cavalry.  It does seem that the bounced emails are to the wrong spelling.  I must have something still configured the other way.  
  > **username_1**: Worth eliminating. If you enable debugging on your site, debug log will show when CiviCRM ignores some emails. [See relevant code here](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L238), look for `markIgnored()`.  
  > **username_1**: Suggests either CiviCRM [failed to parse the email](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L244), or [didn't match recipient](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L189) (possibly b/c wrong domain?).  
  > **username_0**: Being a newbie, I am not sure how to turn on debugging.  I tried Administrator->Debugging and Error Handling and turned on debugging. There is no additional output in the Bounce job log.  
  > **username_1**: Administer > System Settings > Debugging & Error Handling will log debug output to the CiviCRM debug log. This is a file on your webserver's disk. See http://civicrm.stackexchange.com/questions/6399/how-do-i-debug-civicrm-when-i-hit-a-blank-page-white-screen-fatal-error/6400#6400 and look for "debug log".  
  > **username_0**: You are definitely correct, its the bad domain that is causing the problem.  I was able to fake up an email with the right domain and it got processed.  Now I need to figure out why that domain is being used, I cannot find it in any of the places where you set email addresses, etc.  
  > **username_0**: I turned on debugging and found the log (not where the docs said it would be but here: www/wp-content/uploads/civicrm/ConfigAndLog/CiviCRM.7994af42d5e2f8c96986ad92.log).  No output is generated when I run the bounce job and my attempt to patch the 100 bounce messages did not work for some reason, it would be nice to know why.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-06. Score: 1 | Accepted answer
  
  It looks like CiviCRM uses [the domain specified in the bounce mailbox settings](https://github.com/civicrm/civicrm-core/blob/d40b6649e8af7fa55a5a71beee3483cdf6c68bf3/CRM/Utils/Mail/EmailProcessor.php#L160) to generate a regex to match incoming bounce messages.
  
  From the info in your question, I suspect CiviCRM is directing bounces to a (subtly) different domain name. As a result, it doesn't think the bounces are intended for CiviCRM to process, and moves them to the ignored folder (as CiviCRM would with other "not for me" email).
  
  See your mail account settings (Admin > CiviMail > Mail Accounts).
  
  Try ensuring both the return address and site domain match, and see if the problem persists.
  
  Once correctly configured (or, temporarily misconfigured to match the misspelled inbound address!), you can move those messages back from the CiviCRM.ignored mailbox to the INBOX, and re-process them.
  
  > **Comments:**
  > **username_0**: Apparently the misspelling persisted after a domain change, possibly cached.  It is now gone.  I would hate to have that domain reinstalled.  I am planning on downloading and editing the emails to put the correct domain in them and then sending them back.  Do you happen to know if the bounce processor will handle multiple bounce info in one email or do they have to be separate emails?  
  > **username_1**: You should [mark your question here as answered](http://civicrm.stackexchange.com/help/accepted-answer) :) ... I feel like it should be possible for you to reconfigure CiviCRM temporarily to accept the "wrong" domain for those bounces, move them from `CiviCRM.ignored` to `INBOX`, run the bounce processor, then configure CiviCRM back to use the "proper" domain. Downloading and uploading the previous set of bounces might not go as smoothly as you expect. (I don't know, haven't tried.)  
  > **username_0**: I am not clear where to change the domain.  It is not clear what it uses to generate the X-CiviMail-Bounce domain.  Is it the bounce email address or the domain of the site? When I switched my site from my hosting domain to my real one it was down till someone went in and edited the database, so I will not casually change it again.  If there are specific instructions on exactly what I should change I will do that.  
  > **username_0**: Ok.  It seems that sending the mail to the b. generated address does the trick.  Glancing through the code it looked like just having the X-CiviMail-Bounce record should be sufficient, but I guess not.  
  > **username_1**: Yay! Good work for persisting :D  
  
  ---
  
  