[wp-trac] [WordPress Trac] #25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names

WordPress Trac noreply at wordpress.org
Mon May 8 14:55:18 UTC 2017

#25239: $_SERVER['SERVER_NAME'] not a reliable when generating email host names
 Reporter:  layotte                              |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  reviewing
Component:  Mail                                 |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch dev-feedback needs-        |     Version:  3.8
  testing                                        |  Resolution:
                                                 |     Focuses:

Comment (by pigdog234):

 Indeed.  And so in a multidomain environment it seems to me that exposing
 **$sitename** for this purpose as a configuration element is useful.

 BTW, it might be possible to test an outbound email by creating a little
 workflow along the following lines:

 1.  User enters the address
 2.  Address set to unverified (do not use yet)
 3.  Email is sent to a drop box on some picky email gateway like Gmail
 4.  Local installation sets an event to check validation with WP.com (or
 some service)
 5.  WP.com (or some service) has a little process that pulls email from
 the box and validates DKIM/SPF and that the message got through
 6.  Local installation polls WP to validate the address.

 It can't happen all at once because of grey listing effects (that's a fair
 amount of work).  It also may be more trouble than it's worth.  At the end
 of the day it would be nice if notifications happened in a WP app.

Ticket URL: <https://core.trac.wordpress.org/ticket/25239#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list