Re: [INTERNALS-WIN] mail() sending local hostname instead of fully-qualified hostname as HELO
| From: | Pierre Joye | Date: | Sat, 27 Jun 2009 09:37:44 +0000 |
| Subject: | Re: [INTERNALS-WIN] mail() sending local hostname instead of fully-qualified hostname as HELO | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-523@lists.php.net to get a copy of this message | ||
hi Rick, Kalle,
Please post a link to the patch in the bug report, so we will not loose it :)
Cheers,
On Fri, Jun 26, 2009 at 6:45 PM, Rick Yorgason<rick@longbowgames.com> wrote:
> Hi Kalle,
>
> I've created a new patch which makes the following changes:
>
> * Fixes a small bug in your last patch which would inadvertently set the
> host name to "]".
> * Performs some overflow checks.
> * It turns out that host names are technically allowed to start with (or
> even be entirely composed of) numbers, so I've taken your suggestion and
> used inet_pton for better IP detection.
>
> Here's the patch:
>
> http://pastie.org/525609
>
> I've tested it by forcing ent->h_name to an IPv4 or IPv6 number, and all
> three scenarios (including not forcing it) seem to provide valid data.
>
> Cheers,
>
> -Rick-
>
>
--
Pierre
http://blog.thepimp.net | http://www.libgd.org