[wp-trac] [WordPress Trac] #60420: Default wordpress at site.com sender address can be problematic

WordPress Trac noreply at wordpress.org
Tue Dec 16 21:58:34 UTC 2025


#60420: Default wordpress at site.com sender address can be problematic
-----------------------------+------------------------------
 Reporter:  thinlinecz       |       Owner:  (none)
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Mail             |     Version:  1.5.1.2
 Severity:  normal           |  Resolution:
 Keywords:  close            |     Focuses:
-----------------------------+------------------------------

Comment (by michael.orlitzky):

 Replying to [comment:47 dmsnell]:
 > Thanks for clarifying. It’s a hot topic, so I am trying hard to stick
 with factual statements to avoid triggering different folks. I am led to
 believe that using `-f` in the `sendmail_path` is another one of these
 “invalid but standard” practices, and that it would be much easier for all
 parts of the system to cooperate if the return-path were set via
 `wp_mail_from`.

 It is certainly a bug that PHPMailer will blindly append a second `-f`,
 but passing parameters to sendmail has been a documented use case of
 `sendmail_path` in PHP forever.

 The reason these issues (there are many like this one) were opened is
 because guessing the "From" address is fundamentally wrong, and will cause
 mail to be lost. I said in my first message of the day that

 > Return-Path was never a problem for us to begin with:
 >
 >   1. It can be set in php.ini by using "sendmail -f" as your
 sendmail_path

 The reason you are getting complaints is because 6.9 invalidated this. Now
 the envelope sender is just as broken as the "From" address, so WP is
 losing even more mail than it was.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60420#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list