NotifySend.php
authorAlan <alan@roojs.com>
Wed, 11 Oct 2023 04:26:49 +0000 (12:26 +0800)
committerAlan <alan@roojs.com>
Wed, 11 Oct 2023 04:26:49 +0000 (12:26 +0800)
NotifySend.php

index 6775f5c..91bdc7e 100644 (file)
@@ -521,7 +521,11 @@ class Pman_Core_NotifySend extends Pman
             }
             
             if ($res->userinfo['smtpcode'] == 550) {
-                $this->server->checkSmtpResponse($errmsg, $core_domain);
+                if ($this->server->checkSmtpResponse($errmsg, $core_domain)) {
+                    $ev = $this->addEvent('NOTIFY', $w, 'BLACKLISTED  - ' . $errmsg);
+                    $this->server->updateNotifyToNextServer($w,  strtotime('NOW + ' . $retry . ' MINUTES'),true);
+                    $this->errorHandler( $ev->remarks);
+                }
             }