phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Board mails intermittently failing on Gmail - Not RFC 2822


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Tue Apr 30, 2013 1:35 pm 
Post subject: Board mails intermittently failing on Gmail - Not RFC 2822

We've noticed that the board mailer is intermittently failing for some G mail users

Sample return

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

XXXXXXX (removed)

SMTP error from remote mail server after end of data:
host gmail-smtp-in.l.google.com [173.194.76.26]:
550-5.7.1 [209.86.89.62 11] Our system has detected that this message is
550-5.7.1 not RFC 2822 compliant. To reduce the amount of spam sent to Gmail,
550-5.7.1 this message has been blocked. Please review
550 5.7.1 RFC 2822 specifications for more information. j8si21025703qes.31 - gsmtp

Any ideas?

_________________
http://www.jlaforums.com
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Wed May 01, 2013 12:05 pm 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

Does any of this help http://productforums.google.com/forum/#!topic/gmail/pIhqQ8JCgGI

Jim
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Wed May 01, 2013 6:10 pm 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

1st glimpse seems to be approx Line 195 in emailer.php

There is an extra $this->extra_headers toward the end that seems to add an additional from line in the headers toward the bottom.

Anyone can confirm?

_________________
http://www.jlaforums.com
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 449
Location: Québec


flag
PostPosted: Thu May 02, 2013 8:38 am 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

The From line doesn't seem to be duplicated (though it's early and I didn't get too much sleep), but I did see something weird.
Quoting for emphasis:
Quote:
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '');

To be honest, I don't know what that means, because the way I see it $this->extra_headers should be empty up to that point anyway...
Back to top
veloepic
Board Member



Joined: 16 May 2013

Posts: 1



PostPosted: Thu May 16, 2013 11:29 am 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

We are having the problem when sending out emails to GMail accounts...
Does anyone have a simple solution for this?
Thanks!
Dan
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Thu May 23, 2013 6:30 pm 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

Solved by removing the last $this->extra_headers in the line below found in emailer.php

Code:
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '');

_________________
http://www.jlaforums.com
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Fri May 24, 2013 2:56 am 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

Would that be removal of:-
$this->extra_headers
or
. $this->extra_headers

Jim
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 175
Location: Germany


flag
PostPosted: Sat May 25, 2013 6:53 am 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

To answer your question:

CHANGE:
Code:
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '');

TO:
Code:
$this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : '');
Back to top
Jim_UK
Board Member



Joined: 19 Nov 2008

Posts: 656
Location: North West UK


flag
PostPosted: Sat May 25, 2013 7:10 am 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

In other words "Yes" it should include the period either before or after icon_wink.gif
Strange that I have not experienced any problems as I do have a few users that use Gmail

Jim
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 451
Location: U.S.A


flag
PostPosted: Mon May 27, 2013 10:18 pm 
Post subject: Re: Board mails intermittently failing on Gmail - Not RFC 28

Jim_UK wrote:
In other words "Yes" it should include the period either before or after icon_wink.gif
Strange that I have not experienced any problems as I do have a few users that use Gmail

Jim


We calculated only about 20 to 30% of emails that went out to Gmail users were affected by the problem. To be honest - even with the fix - not sure what was causing the problem. It seemed in the headers that the second variable (the one removed) was triggered intermittently inserting an additional (if I remember right) "from" instance which in turn caused the gmail rejection.

_________________
http://www.jlaforums.com
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0531 seconds using 16 queries. (SQL 0.0144 Parse 0.0009 Other 0.0379)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo