Monday, March 16, 2009

Confirmation emails not being received, fix is in here!!

Confirmation emails not being received, fix is in here!!

--------------------------------------------------------------------------------

An explanation of the issue....

Confirmation Emails not being Received
For alot of mail servers to accept an email it must have either a valid Return-Path: or Reply To:
If the Return Path is not valid (most corporate type sendmail configs set Return Path to something like anonymous@server2.hostingcompany.com wich a mail server never answers for) the receving server looks for a Reply To: if this is not a valid email address or simply not added to the email headers the mail server will reject the email as it will fail a basic whitelist check.

The problem PHP-Nuke runs into is even though where all putting valid emails in the admin email address setup box, the Reply-To never gets added to the email headers.
Check it out, this is from 3 different php-nuke sites
Quote:

X-Gmail-Received: 089cb957f04c9539052e79f75d3ad6764a052bd0
Delivered-To: REMOVED@gmail.com
Received: by 10.65.132.13 with SMTP id j13cs33124qbn;
Wed, 30 Nov 2005 14:40:28 -0800 (PST)
Received: by 10.70.40.13 with SMTP id n13mr861636wxn;
Wed, 30 Nov 2005 14:40:28 -0800 (PST)
Return-Path:
Received: from server2.REMOVED.com ([REMOVED])
by mx.gmail.com with ESMTP id i11si533938wxd.2005.11.30.14.40.27;
Wed, 30 Nov 2005 14:40:28 -0800 (PST)
Received-SPF: neutral (gmail.com: REMOVED is neither permitted nor denied by best guess record for domain of anonymous@server2.REMOVED.com)
Received: (qmail 9340 invoked by uid 48); 30 Nov 2005 17:42:25 -0500
Date: 30 Nov 2005 17:42:25 -0500
Message-ID: <20051130224225.9338.qmail@server2.REMOVED.com>
To: REMOVED@gmail.com
Subject: New User Account Activation
From: webmaster@REMOVED.com
X-Mailer: PHP/4.3.10


Change:
<?php
mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/" . phpversion());
?>


To:

mail($user_email, $subject, $message, "From: $adminmail\nX-Mailer: PHP/", "-odb -f $adminmail");


http://gala4th.blogspot.com/2009/03/php-mail-function-send-sendmail-slow.html

No comments: