NotifySend.php
authorAlan Knowles <alan@akkbhome.com>
Wed, 6 Apr 2011 15:52:50 +0000 (23:52 +0800)
committerAlan Knowles <alan@akkbhome.com>
Wed, 6 Apr 2011 15:52:50 +0000 (23:52 +0800)
NotifySend.php

index 045d700..47c6668 100644 (file)
@@ -101,7 +101,8 @@ class Pman_Core_NotifySend extends Pman
             if ($code < 0) {
                 continue; // try next mx... ??? should we wait??? - nope we did not even connect..
             }
-            if ($code == 451) {
+            // give up after 2 days..
+            if ($code == 451 || $next_try_min > (2*24*60)) {
                 // try again later..
                 // check last event for this item..
                 $this->addEvent('NOTIFY', $w, 'GREYLISTED');