Last modified: 2012-07-24 10:39:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8147, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6147 - mail() call should specify -f option in addition to From header
mail() call should specify -f option in addition to From header
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.6.x
PC Linux
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 23838 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-31 01:23 UTC by Andrew Gaffney
Modified: 2012-07-24 10:39 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andrew Gaffney 2006-05-31 01:23:49 UTC
I have an address on a mail server where postfix's sender address verification
is in use. Even though I have $wgPasswordSender set to a real email address, the
Return-Path still ends up as apache@mydomain.com. When the postfix server with
sender address verification receives the mail, it connects back to my server
which then informs it that apache@ can't receive mail. This causes the mail to
be rejected.

My "solution" to the problem was to add a fifth parameter to the call to mail()
in includes/UserMailer.php:

"-f " . $from->toString()

This causes the Return-Path header to match the From header, which allows it to
pass sender address verification when set to a valid email address.

I actually had the same issue when trying to create an account on this bugzilla.
I never got the password email. When I had my account excluded from the sender
address verification, I was able to get the "Forgot password" email just fine.
Comment 1 Brion Vibber 2006-05-31 01:44:21 UTC
Note that you can set this in php.ini (or, probably, with 
ini_set())
Comment 2 Brion Vibber 2010-12-27 03:50:25 UTC
*** Bug 23838 has been marked as a duplicate of this bug. ***
Comment 3 Adrian von Bidder 2010-12-27 07:42:51 UTC
Needs to be documented then.  Not everybody who needs MediaWiki knows PHP ini parameters.
Comment 4 matanya 2012-07-24 10:39:06 UTC
is this still an issue?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links