php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12385 getmxrr returns an invalid false message when...
Submitted: 2001-07-25 22:27 UTC Modified: 2002-04-27 15:43 UTC
From: willwong at samurai dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: FreeBSD
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:
41 - 20 = ?
Subscribe to this entry?

 
 [2001-07-25 22:27 UTC] willwong at samurai dot com
getmxrr is designed to return a list of mx records found for a host.

According to smtp rfcs, if no mx records are found, then the hostname's A record is considered to be the lowest mx.

Take for example the following hostname:
genet.sickkids.on.ca

This is a separate zone which does not have any MX records.  It has an A record and that suffices for people to receive email on that hostname.

getmxrr should be changed so that it should also return true if:

no mx records are found, BUT an A record exists for the hostname.

Why?
Because smtp rfc's state that if there are no mx records, the A record should be considered to be the lowest priority "mx" record.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-26 02:25 UTC] andy@php.net
reclassified
 [2002-04-27 15:43 UTC] jimw@php.net
getmxrr() returns mx records. the standards simply indicate where to send mail when there is no mx record, which is outside the scope of what this function does.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 12:01:32 2024 UTC