Not enough information to even guess what is going on. In my apps when I accept an email address, I use a little bit of ajax to
verify the domain:
if ($email != '') {
$tmp = explode('@', $email);
if (isset($tmp[1])) {
$got_mx = getmxrr($tmp[1], $mxhosts);
if ($got_mx) {
echo json_encode(array('rc'=>true, 'feedback'=>"DOMAIN MX VERIFIED:
{$tmp[1]}"));
exit;
} else {
echo json_encode(array('rc'=>false, 'feedback'=>"DOMAIN MX NOT FOUND:
{$tmp[1]}"));
exit;
}
} else {
echo json_encode(array('rc'=>false, 'feedback'=>"DOMAIN MX NOT FOUND:
{$tmp[1]}"));
exit;
}
} else {
echo json_encode(array('rc'=>true, 'feedback'=>'no address'));
exit;
}
HTH,
Bill
On 3/2/2016 9:45 AM, lejeczek wrote:
on postfix?
I'm not a php developer but I look after a postfix server and I wonder if you might know what might be the cause for a
(simple) php app to sort of hang on email address bit when it is incorrect - and it is even not the app itself that validates
the address - web page sort of refreshes (when user clicks next) but won't go through, unless the address is a correct(real) one.
I'm obviously not asking to debug the app, I'm asking what are the chances this happens because of postfix? I ask because the
same app on a different (remote) box does not do it, simply goes by with nonexistent address.
Only difference is php app does not auth on postfix whereas on remote box it
does, I'm going to look into this bit.
many thanks for sharing your thoughts
p.