php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25344 regular domain 'localhost.com' used in php.ini
Submitted: 2003-09-01 10:46 UTC Modified: 2003-09-01 11:26 UTC
From: arzie at gmx dot de Assigned:
Status: Closed Package: Mail related
PHP Version: Irrelevant OS: Win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 - 28 = ?
Subscribe to this entry?

 
 [2003-09-01 10:46 UTC] arzie at gmx dot de
Description:
------------
php.ini-dist and php.ini-recommended contain following bad line:
sendmail_from = me@localhost.com

The domain localhost.com is a regular registerd domain and shoud not be used as default from.

You should change that line to: 
sendmail_from = me@example.com
(see also RFC 2606)

The main problem is, that some smtp server reject this 'from' because localhost.com and ghost.localhost.com (MX)gets resoved to 10.11.12.13 which is a LAN-IP Adress.

Another problem are bounces caused by users passing a non existing email address to a web formular. 

I'm sure you can think of many more examples ;-)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-01 11:26 UTC] sniper@php.net
Changed to "me@example.com" and commented the option out.
(people REALLY should modify php.ini :)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 20:01:28 2024 UTC