This commit is contained in:
paulwer 2024-06-26 19:00:09 +02:00
parent 96b60f4ee2
commit 8616adb437

View File

@ -32,11 +32,14 @@ class InboundMailEngine
use SerializesModels, MakesHash; use SerializesModels, MakesHash;
use GeneratesCounter, SavesDocuments; use GeneratesCounter, SavesDocuments;
private ?bool $isUnknownRecipent = null; private array $globalBlacklist;
private array $globalBlacklist = explode(",", config('global_inbound_blocklist')); 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
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
public function __construct() 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 * if there is not a company with an matching mailbox, we only do monitoring