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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arzie at gmx dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 15:01:35 2025 UTC