You are here: Re: unavailable email question « PHP Programming Language « IT news, forums, messages
Re: unavailable email question

Posted by Bob Bedford on 12/19/07 07:26

"Rik Wasmus" <luiheidsgoeroe@hotmail.com> a ιcrit dans le message de news:
op.t3jbbxfj5bnjuv@metallium.lan...
> On Tue, 18 Dec 2007 15:13:02 +0100, Jerry Stuckle
> <jstucklex@attglobal.net> wrote:
>> Rik Wasmus wrote:
>>> On Tue, 18 Dec 2007 13:35:13 +0100, Captain Paralytic
>>> <paul_lautman@yahoo.com> wrote:
>>>
>>>> On 18 Dec, 12:26, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>>>>> You could set up a cron job testing for the following:
>>>>> - find the MX record for the domain
>>>>> - try a RCPT TO in a socket connection
>>>>> - flag emailaddres as unavailable on error
>>>>> - decide your logic wether to delete the emailaddres or recheck it
>>>>> (perhaps a limited number of times) later
>>>>>
>>>>> See the comments at:
>>>>> <http://nl2.php.net/manual/en/function.getmxrr.php>
>>>> More improtantly see the Notes:
>>>> Note: This function should not be used for the purposes of address
>>>> verification. Only the mailexchangers found in DNS are returned,
>>>> however, according to >> RFC 2821 when no mail exchangers are listed,
>>>> hostname itself should be used as the only mail exchanger with a
>>>> priority of 0.
>>> .. which you can add yourself in the code or as last item to the
>>> returned MX records if none exist/can be found. If you code with that
>>> fallback in mind, I see no reason why you couldn't(/shouldn't from a
>>> technical standpoint, load is something else) write a script that makes
>>> use of this function to validate an emailaddress. True, it cannot be
>>> done by this function _alone_, that's what IMHO this note is about.
>>
>> Because the check is not reliable. It is perfectly possible for the a
>> check like this to succeed but the mail still be bounced, for instance -
>> i.e. when the main mail server is just a mail proxy and passes the
>> message on to others to handle. In this case the proxy may accept
>> everything and later the "real" server can reject it.
>
> Hmm, true, hadn't thought about 'accept everything' proxies...
> --
> Rik Wasmus

This will anyway reduce the number of really undeliverable email as this is
actually the main problem. The opposite would be a harder problem (telling
is not available and in fact it is)....as we would delete such address and
the customer want to receive our newsletter.
Anyway we are aware that there is no magic way to know if an email is still
active or not but we may use the 2 solutions to check it (MX and also
analyse the returned emails).

Thank you

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация