I have a new installation of SugarCRM 6.5.11 on Amazon using a Turnkey image. The "bounced messages, Invalid email" are not getting picked up but the "bounced message, other" are getting registered in the campaign. I have looked at everything and cannot figure out what is wrong. Any help would be appreciated.
In this function the bounced email is read and 1st it is checked whether it comes from any MAILER-DAEMON or POSTMASTER by
if (preg_match('/MAILER-DAEMON|POSTMASTER/i',$emailFromAddress))
If this fails it is not recognized as a bounced email.
Later the body of the email is checked to find the target address.
In some newer mail servers the from address is no more POSTMASTER or MAILER-DAEMON but mail-service or something else.
And the original message is not part of the body of the bounced mail but attached to the bouncing mail.
If this happens it will not be recognized at a bounced mail if you do not change the code of the module.
Hello, i have the same problem, so what is the part of code to modify in ProcessBouncedEmails.php to make it work ?
Function campaign_process_bounced_emails.
The condition for bounced emails is OOTB:
if (preg_match('/MAILER-DAEMON|POSTMASTER/i',$emailFromAddress))