DataObjects/Core_notify_server.php
authorAlan <alan@roojs.com>
Fri, 6 Oct 2023 05:27:49 +0000 (13:27 +0800)
committerAlan <alan@roojs.com>
Fri, 6 Oct 2023 05:27:49 +0000 (13:27 +0800)
DataObjects/Core_notify_server.php

index 293a280..f71f61e 100644 (file)
@@ -209,6 +209,22 @@ class Pman_Core_DataObjects_Core_notify_server extends DB_DataObject
         $ff->Mail['helo'] = $this->helo;
         
     }
-    
+    function checkSmtpResponse($errmsg, $core_domain)
+    {
+        $bl = DB_DataObject::factory('core_notify_blacklist');
+        $bl->server_id = $this->id;
+        $bl->domain_id = $core_domain->id;
+        if ($bl->count()) {
+            return;
+        }
+        // dont have it..
+        if (!$bl->matchBlackList($errmsg)) {
+            return;
+        }
+        $bl->added_dt = $bl->sqlValue("NOW()");
+        $bl->insert();
+        
+        
+    }
     
 }
\ No newline at end of file