NotifySend.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 3 Feb 2012 02:56:22 +0000 (10:56 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 3 Feb 2012 02:56:22 +0000 (10:56 +0800)
NotifySend.php

index a313de2..c38027c 100644 (file)
@@ -276,6 +276,11 @@ class Pman_Core_NotifySend extends Pman
             }
             // what type of error..
             $code = empty($res->userinfo['smtpcode']) ? -1 : $res->userinfo['smtpcode'];
+            if (!empty($res->code) && $res->code == 10001) {
+                // fake greylist if timed out.
+                $code = 421;
+            }
+            
             if ($code < 0) {
                 $this->debug(print_R($res,true));
                 continue; // try next mx... ??? should we wait??? - nope we did not even connect..