diff --git a/app/Services/InboundMail/InboundMailEngine.php b/app/Services/InboundMail/InboundMailEngine.php index d9a6deb8423c..bd3b95d865d7 100644 --- a/app/Services/InboundMail/InboundMailEngine.php +++ b/app/Services/InboundMail/InboundMailEngine.php @@ -32,11 +32,14 @@ class InboundMailEngine use SerializesModels, MakesHash; use GeneratesCounter, SavesDocuments; - private ?bool $isUnknownRecipent = null; - private array $globalBlacklist = explode(",", config('global_inbound_blocklist')); - private array $globalWhitelist = explode(",", config('global_inbound_whitelist')); // only for global validation, not for allowing to send something into the company, should be used to disabled blocking for mass-senders + private array $globalBlacklist; + private array $globalWhitelist; // only for global validation, not for allowing to send something into the company, should be used to disabled blocking for mass-senders public function __construct() { + + $this->globalBlacklist = explode(",", config('global_inbound_blocklist')); + $this->globalWhitelist = explode(",", config('global_inbound_whitelist')); // only for global validation, not for allowing to send something into the company, should be used to disabled blocking for mass-senders + } /** * if there is not a company with an matching mailbox, we only do monitoring