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) »
  • VERP > labeled as spam
Pages: [1]

Author Topic: VERP > labeled as spam  (Read 1670 times)

madjoe

  • Guest
VERP > labeled as spam
March 29, 2008, 11:02:41 am
Hello! I've just upgraded to CiviCRM 2.0.1 and some of my emails never reach desired addresses because of the following message on their server: *Recipient address rejected: Invalid sender *(in reply to RCPT TO command)).

I assume that it's because of the VERP and the ISP that reported this error message suggested me to switch VERP to an existing email address.

From: bounce.1.4.3.1b5695055b86de78cf47bd3a2c9fd5560d12d97a-name=domain.com@domain.com
To: existing_username@domain.com

How can I solve this issue? Any suggestions?

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: VERP > labeled as spam
March 29, 2008, 11:55:50 am

your best option is to hack the code at: CRM/Mailing/BAO/Mailing.php, line 861

Code: [Select]
        $headers = array(
                         'Reply-To'  => CRM_Utils_Verp::encode($verp['reply'], $email),
                         'Return-Path' => CRM_Utils_Verp::encode($verp['bounce'], $email),
                         'From'      => "\"{$this->from_name}\" <{$this->from_email}>",
                         'Subject'   => $this->subject,
                         );

and fix the reply-to, return-path as needed. Note that changing them would invalidate the bounce / reply to parts of the code. There is also a bug with the length of the VERP addresses we generate ( > 64 chars). This will be fixed in 2.1

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

madjoe

  • Guest
Re: VERP > labeled as spam
March 30, 2008, 02:17:51 pm
I guess this would do the trick:
Code: [Select]
        $headers = array(
                         'Reply-To'  => $this->from_email,
                         'Return-Path' => $this->from_email,
                         'From'      => "\"{$this->from_name}\" <{$this->from_email}>",
                         'Subject'   => $this->subject,
                         );

Quote from: Donald Lobo on March 29, 2008, 11:55:50 am

your best option is to hack the code at: CRM/Mailing/BAO/Mailing.php, line 861

Code: [Select]
        $headers = array(
                         'Reply-To'  => CRM_Utils_Verp::encode($verp['reply'], $email),
                         'Return-Path' => CRM_Utils_Verp::encode($verp['bounce'], $email),
                         'From'      => "\"{$this->from_name}\" <{$this->from_email}>",
                         'Subject'   => $this->subject,
                         );

and fix the reply-to, return-path as needed. Note that changing them would invalidate the bounce / reply to parts of the code. There is also a bug with the length of the VERP addresses we generate ( > 64 chars). This will be fixed in 2.1

lobo

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • VERP > labeled as spam

This forum was archived on 2017-11-26.