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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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: Thu Apr 18 23:01:27 2024 UTC