email return-path set to email@example.com
Guys, here's a heads up on a small change I implemented today on our Postfix mail server.
In some instances the Commons' website (i.e. WordPress/BuddyPress) will try to send an email that, whether because it has an invalid recipient or because the recipient is temporarily MIA (say a Baruch mailbox while baruch.gc.cuny.edu was down), will either be delayed or fail.
(I'm including an example like this as an attachment to this issue)
In cases like this our outbound mail servers (proofagent.gc.cuny.edu and proofsender.gc.cuny.edu) will try and respond back to the sender notifying them that the message hasn't been delivered yet for reason X and that it will either keep trying again for Y amount of time or that it will stop trying now. So far so good. But sometimes the sender comes through as the website itself (e.g firstname.lastname@example.org or email@example.com) in those cases the response emails can't be routed correctly because neither firstname.lastname@example.org or email@example.com accept email.
To improve this I edited our
php.ini configuration to add a
return-path header of firstname.lastname@example.org to PHP-generated outbound emails. This way these notifications, and other potential email issues, will get send to email@example.com, which actually exists.
This change should not affect the visible "From:" header as
return-path is a "hidden" header. But I wanted you to be aware of this just in case.
Updated by Matt Gold about 10 years ago
please see this note from Steve Brier, whom I've added as a watcher:
Hi, Matt. A minor annoyance. Why does the "From:" line on email notification of a blog post say "WordPress" instead of "CUNY Academic Commons?" Just curious (I'd obvious prefer the latter; sorta pride of ownership).
From: WordPress [firstname.lastname@example.org]
Sent: Wednesday, November 14, 2012 6:30 AM
To: Brier, Steve
Subject: Steve Brier wrote a new blog post James Traub's November 12 Talk at and about CCNY Today in the group History of CUNY Research Seminar, Fall 2012 [CUNY Academic Commons]