Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Campaigns/ProcessBouncedEmails does not mark invalid mails as invalid #5898

Closed
gody01 opened this issue May 18, 2018 · 4 comments
Closed

Campaigns/ProcessBouncedEmails does not mark invalid mails as invalid #5898

gody01 opened this issue May 18, 2018 · 4 comments
Labels
Area: Emails Issues & PRs related to all things regarding emails & email module Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase Type:Duplicate Issues & PRs which are a duplicate of an existing issue/PR

Comments

@gody01
Copy link
Contributor

gody01 commented May 18, 2018

Campaign Bounce Mail processing does not mark bounced emails as invalid.

Issue

It seems that criteria for marikng bounced email as invalid is

//do we have the phrase permanent error in the email body.
if (preg_match('/permanent[ ]*error/',$email_description))

But nobody users such string any more.

It would be better, to check for "550 5.1.1" code in raw email as it seems somehow de-facto standard for Unknown user message.

Expected Behavior

If email bounce with User unknown message, SuiteCRM should mark such Email as invalid.

Actual Behavior

Practically no bounced Emails are marked as invalid

Possible Fix

change criteria or add check for "550 5.1.1" to the if statement.

Steps to Reproduce

  1. Send email campaigns with not existent email addresses
  2. Wait for bounce messages
  3. Check, if bounced emails are marked invalid

Context

Automatic bounced mail handling was very useful, since emails were automatically marked as invalid in case mail bounced.

Your Environment

  • SuiteCRM Version used: 7.10.4
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): All
  • Environment name and version (e.g. MySQL, PHP 7): All
  • Operating System and version (e.g Ubuntu 16.04): Linux - CentOS, OpenSuSE, ...
@Dillon-Brown Dillon-Brown added Type:Bug Bugs within the core SuiteCRM codebase Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Emails Issues & PRs related to all things regarding emails & email module labels May 21, 2018
@pgorod
Copy link
Contributor

pgorod commented Sep 5, 2018

@amariussi since you do a lot of Campaigns (I believe) can you try this change to see if it works well?

I mean, check for 550 5.1.1 instead of what is currently there.

@amariussi
Copy link
Contributor

@pgorod Just noticed this. Although lately I have been using a different method to send campaigns (unfortunately SuiteCRM is far from being fit for Campaigns at the moment) I will try it out and post my comments, if any.

Just a few quick comments on this subject:
. there should be several criteria to detect bounced messages
. admins should be allowed to select (or add) the criterias used (maybe in config_override,php or, even better, through a dedicated section of the Admin page)
. also the actions should be optional and, possibly multiple actions should be allowed (why would we, developers, impose the action to be taken, like mark email as invalid or delete it or put it in a blacklist to be verified: this should be decided autonomously by the single SuiteCRM users/administrators!!!)

@lazka
Copy link
Contributor

lazka commented Nov 19, 2018

I've created a fix for this: #6505

@samus-aran
Copy link
Contributor

This is now a duplicate and this issue supersedes this.
#6504
If able @gody01 Can you assess the proposed pull request that would be great to progress it!

@samus-aran samus-aran added the Type:Duplicate Issues & PRs which are a duplicate of an existing issue/PR label Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Emails Issues & PRs related to all things regarding emails & email module Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase Type:Duplicate Issues & PRs which are a duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

6 participants