FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Duplicate From header, emails rejected by gmail/hotmail
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Duplicate From header, emails rejected by gmail/hotmail [message #187028] Tue, 29 December 2015 10:16 Go to next message
Nux is currently offline  Nux   United Kingdom
Messages: 9
Registered: April 2012
Karma: 0
Junior Member
Hello,

Apparently my 3.0.6 fudforum is sending emails with duplicate From headers, it is rejected by gmail and others:

Our system has detected that this message is 550-5.7.1 not RFC 5322 compliant. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked.


Can anyone give me some pointers as to how to fix this?
Re: Duplicate From header, emails rejected by gmail/hotmail [message #187029 is a reply to message #187028] Tue, 29 December 2015 10:59 Go to previous messageGo to next message
Nux is currently offline  Nux   United Kingdom
Messages: 9
Registered: April 2012
Karma: 0
Junior Member
What I've noticed is that emails are delivered if sent via mail(), but not if external SMTP is used.
Re: Duplicate From header, emails rejected by gmail/hotmail [message #187032 is a reply to message #187029] Thu, 31 December 2015 05:00 Go to previous messageGo to next message
GaryM is currently offline  GaryM   United States
Messages: 118
Registered: May 2013
Location: Seattle
Karma: 3
Senior Member
Don't believe it's a fud software issue but a domain configuration issue, you may need to add a SPF statement to your record for google gmail to accept any of your emails..

Re: Duplicate From header, emails rejected by gmail/hotmail [message #187089 is a reply to message #187028] Fri, 18 March 2016 10:07 Go to previous messageGo to next message
ulrith is currently offline  ulrith   Latvia
Messages: 15
Registered: September 2015
Karma: 0
Junior Member
Hi!

I can confirm that feature 'Use SMTP To Send E-mail' is unusable currently (v. 3.0.6).

Mails cause bans with error like the following:

status=bounced (host gmail-smtp-in.l.google.com[64.233.162.26] said: 550-5.7.1 [188.120.250.223      11] Our system has detected that this message is 550-5.7.1 not RFC 5322 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 5322 specifications for more information. l73si6051874lfg.249 - gsmtp (in reply to end of DATA command))


This is the source fo the email sent using PHP mail() function:

Return-Path: vetusware(at)host1(dot)suppo(dot)ru
Received: from mx.mydomain.com (LHLO mx.mydomain.com)
 (213.239.207.154) by mx.mydomain.com with LMTP; Fri, 18 Mar 2016
 13:54:49 +0400 (MSK)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx.mydomain.com (Postfix) with ESMTP id 90A331A17EF
	for <admin(at)mydomain(dot)com>; Fri, 18 Mar 2016 12:54:49 +0300 (MSK)
X-Virus-Scanned: amavisd-new at mydomain.com
X-Spam-Flag: NO
X-Spam-Score: -2.008
X-Spam-Level:
X-Spam-Status: No, score=-2.008 tagged_above=-10 required=10
	tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001,
	T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
Authentication-Results: mx.mydomain.com (amavisd-new);
	dkim=pass (2048-bit key) header.d=vetusware.org
Received: from mx.mydomain.com ([127.0.0.1])
	by localhost (mx.mydomain.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 9qTjSY_KvpkC for <admin(at)mydomain(dot)com>;
	Fri, 18 Mar 2016 12:54:42 +0300 (MSK)
Received: from host1.suppo.ru (host1.suppo.ru [78.47.18.52])
	by mx.mydomain.com (Postfix) with ESMTP id 93AFB1A1233
	for <admin(at)mydomain(dot)com>; Fri, 18 Mar 2016 12:54:42 +0300 (MSK)
Received: by host1.suppo.ru (Postfix, from userid 532)
	id 76AFF25294; Fri, 18 Mar 2016 11:54:42 +0200 (EET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vetusware.org;
	s=2015; t=1458294882;
	bh=HVHTvub+FRQE5HqN5Y5nAdIXBznDvbCGQHLdYEIO/08=;
	h=To:Subject:From:Date;
	b=WxfNPsu//AW4KvPTPyUlAHF9Lz8AUxRZ6oIdrgPyB5uUIR8cnjvf9IeQn7nm4Fltt
	 w1diS/kogmO4pt6RRaMeN2HmfjhuySYsdkDRFk3uQVTLNc56E3M5yTZq3X++85aLD0
	 AOcLTuQ0ek5R3bcQmCQmKzAR1reCt8omotJ1BpIs8Hu63rQucvb0U6BoOFRmwxZB6Z
	 nPTVmA5uHRZX+1p41hdraaTw1q52q7ELsVTc2i8QYJfVNuJZIEal64SzfSZmTNAHBF
	 i4cCG3pGCac307bPJzrL6cFTsG1XgMjVnNDja0xuSRuuY4aXYTQl0bGMcTQc6asqDK
	 8oJK0K7xCmJuw==
To: admin(at)mydomain(dot)com
Subject: Reset Password
X-PHP-Originating-Script: 532:reset.php
From: hostmaster(at)vetusware(dot)org
Errors-To: hostmaster(at)vetusware(dot)org
X-Mailer: FUDforum v3.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Message-Id: <20160318095442(dot)76AFF25294(at)host1(dot)suppo(dot)ru>
Date: Fri, 18 Mar 2016 11:54:42 +0200 (EET)

Hello,

You have requested for your password to be reset. To complete the process,
please go to this URL:

http://vetusware.org/index.php?t=reset&reset_key=4a85e9e979b868e84c9f05ada88dc1d1

NOTE: This forum stores the passwords in a one-way encryption mechanism, which means that
once you have entered your password it is encoded so that there is NO WAY to get it back.
This works by comparing the encoded version we have on record with the encoded version of what you type into the Login prompt.
(If you are interested in how this mechanism works, read up on MD5 HASH algorithm)

If you received this message in error, please ignore it. If you are receiving multiple copies of this e-mail, which you have not requested, please contact the forum administrator at hostmaster(at)vetusware(dot)org

This request was initiated from: 194.19.228.155.



And this one is sent by external SMTP server (Mailgun):

Return-Path: bounce+77c277(dot)309dc-admin=mydomain(dot)com(at)mg(dot)vetusware(dot)org
Received: from mx.mydomain.com (LHLO mx.mydomain.com)
 (213.239.207.154) by mx.mydomain.com with LMTP; Fri, 18 Mar 2016
 13:50:06 +0400 (MSK)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx.mydomain.com (Postfix) with ESMTP id CB8FC1A17F2
	for <admin(at)mydomain(dot)com>; Fri, 18 Mar 2016 12:50:05 +0300 (MSK)
X-Quarantine-ID: <Pm50b58j6W8V>
X-Virus-Scanned: amavisd-new at mydomain.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "From"
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-10 required=10
	tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_MSPIKE_H2=-0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mx.mydomain.com (amavisd-new);
	dkim=pass (1024-bit key) header.d=mg.vetusware.org;
	domainkeys=pass (1024-bit key)
	header(dot)sender=hostmaster=vetusware(dot)org(at)mg(dot)vetusware(dot)org
	header.d=mg.vetusware.org
Received: from mx.mydomain.com ([127.0.0.1])
	by localhost (mx.mydomain.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Pm50b58j6W8V for <admin(at)mydomain(dot)com>;
	Fri, 18 Mar 2016 12:49:59 +0300 (MSK)
Received: from rs224.mailgun.us (rs224.mailgun.us [209.61.151.224])
	by mx.mydomain.com (Postfix) with ESMTPS id 97C9E1A17EF
	for <admin(at)mydomain(dot)com>; Fri, 18 Mar 2016 12:49:58 +0300 (MSK)
DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.vetusware.org; q=dns/txt;
 s=pic; t=1458294598; h=Content-Transfer-Encoding: Content-Type:
 MIME-Version: From: From: To: Date: Subject: Message-Id: Sender;
 bh=/2JgRe9FHZNsyhhd0UF+VvOA2czZQ8zst99M0ph+qHQ=; b=SoYTVbdVABbMbTp+AjrkyicaaCgwUXSWz7QqZ+uzrMsSyM4Fma33qmCGgat2u1gIgwqYKfv4
 JWyIccDuvyQs6RQuRQujlVWqc+T7PPIr497cugl7VdQoHFS3WNyfZOmrdwhNC41DHMLYomX9
 NUJ7u5yHGgTzkGkYYqwUuq8g8H4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=mg.vetusware.org; s=pic;
 q=dns; h=Sender: Message-Id: Subject: Date: To: From: From:
 MIME-Version: Content-Type: Content-Transfer-Encoding;
 b=EAGaPpAMDMUxVMdLYSreLpTZdF+yD9ueIVd9C6DHvATL22sPfVR0h7HQDPFdwrjltHXQ1J
 0lHfuysxe9WGgRp+EBUbialnV9yxR+OsFCfVmUvwDa3ZBvEhu/AAnJY4Mczv1Zs6DSK0pcww
 MYTw74uaeqs0r3dChoeydPjHXnL/I=
Sender: hostmaster=vetusware(dot)org(at)mg(dot)vetusware(dot)org
X-Mailgun-Sid: WyI3ZWZkOSIsICJhZG1pbkBzb2xhci1zdGFmZi5jb20iLCAiMzA5ZGMiXQ==
Message-Id: <20160318094957(dot)48762(dot)16164(dot)7F1E7C58(at)mg(dot)vetusware(dot)org>
Received: from vetusware.org (host1.suppo.ru [78.47.18.52])
 by mxa.mailgun.org with ESMTP id 56ebcf45.7f2a5833cc70-in3;
 Fri, 18 Mar 2016 09:49:57 -0000 (UTC)
Subject: Reset Password
Date: Fri, 18 Mar 2016 12:49:56 +0300
To: admin(at)mydomain(dot)com
From: hostmaster(at)vetusware(dot)org
X-Mailer: FUDforum v3.0.6
From: hostmaster(at)vetusware(dot)org
Errors-To: hostmaster(at)vetusware(dot)org
X-Mailer: FUDforum v3.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

Hello,

You have requested for your password to be reset. To complete the process,
please go to this URL:

http://vetusware.org/index.php?t=reset&reset_key=e05bad83f713b7d2c5366149052112d7

NOTE: This forum stores the passwords in a one-way encryption mechanism, which means that
once you have entered your password it is encoded so that there is NO WAY to get it back.
This works by comparing the encoded version we have on record with the encoded version of what you type into the Login prompt.
(If you are interested in how this mechanism works, read up on MD5 HASH algorithm)

If you received this message in error, please ignore it. If you are receiving multiple copies of this e-mail, which you have not requested, please contact the forum administrator at hostmaster(at)vetusware(dot)org

This request was initiated from: 194.19.228.155.



As you can see, there are duplication of several headers.

[Updated on: Fri, 18 March 2016 10:09]

Report message to a moderator

Re: Duplicate From header, emails rejected by gmail/hotmail [message #187095 is a reply to message #187089] Fri, 18 March 2016 19:38 Go to previous message
ulrith is currently offline  ulrith   Latvia
Messages: 15
Registered: September 2015
Karma: 0
Junior Member
Okay I've managed how to fix that.

You need to remove the lines 138-139 from /FUDforum_home_dir/src/smtp.inc.t file:

                $this->wts('From: '. $this->from);
               	$this->wts('X-Mailer: FUDforum v'. $GLOBALS['FORUM_VERSION']);


(They cause duplication of the 'From' and 'X-Mailer' headers when using external SMTP-server.)

Then don't forget to rebuild your theme.

I've tested this fix with the inner mailer (PHP mail() function) also and everything works fine here.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: maillist.php and base64 encoded emails
Next Topic: Several bugs - willing to help with fix
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:02:05 GMT 2024

Total time taken to generate the page: 0.02612 seconds