Skip messages that originate from a node in a zone we dont know.

This commit is contained in:
Deon George 2023-01-01 13:50:12 +11:00
parent 06f814395c
commit d825f71a15

View File

@ -140,6 +140,12 @@ class MessageProcess implements ShouldQueue
// Else we are echomail
} else {
Log::debug(sprintf('%s:! Looking for echomail area [%s] for mail from [%s]',self::LOGKEY,$this->msg->echoarea,$this->msg->fboss));
if (! $this->msg->fboss_o) {
Log::error(sprintf('%s:! Cannot process message for echomail area [%s] for mail from [%s] with msgid [%s] - no boss object?',self::LOGKEY,$this->msg->echoarea,$this->msg->fboss,$this->msg->msgid));
return;
}
$ea = Echoarea::where('name',strtoupper($this->msg->echoarea))
->where('domain_id',$this->msg->fboss_o->zone->domain_id)
->single();