Author |
Message |
JLA Board Member
Joined: 30 Apr 2009
Posts: 451 Location: U.S.A
|
Posted: 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
|
|
Back to top |
|
|
JLA Board Member
Joined: 30 Apr 2009
Posts: 451 Location: U.S.A
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
|
Posted: 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
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
|
Posted: 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
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 |
|
|
|