Updates now that we have updated our_address() to differentiate public/mailer advertised addresses with all our addresses
This commit is contained in:
@@ -89,7 +89,7 @@ class PacketProcess implements ShouldQueue
|
||||
}
|
||||
|
||||
// Check the packet is to our address, if not we'll reject it.
|
||||
if (! our_address($pkt->tftn->zone->domain)->contains($pkt->tftn)) {
|
||||
if (! our_address($pkt->tftn->zone->domain,FALSE)->contains($pkt->tftn)) {
|
||||
Log::error(sprintf('%s:! Packet [%s] is not to our address? [%s]',self::LOGKEY,$this->filename,$pkt->tftn->ftn));
|
||||
|
||||
// @todo Notification::route('netmail',$pkt->fftn)->notify(new UnexpectedPacketToUs($this->filename));
|
||||
@@ -123,7 +123,7 @@ class PacketProcess implements ShouldQueue
|
||||
Log::info(sprintf('%s:- Netmail from [%s] to [%s]',self::LOGKEY,$msg->fftn->ftn,$msg->tftn?->ftn ?: $msg->set_tftn));
|
||||
|
||||
// If we dont have a destination, we need to bounce it, if we would be the parent of the address
|
||||
if ((! $msg->tftn) && our_address()->contains(Address::newFTN($msg->set_tftn)?->parent())) {
|
||||
if ((! $msg->tftn) && our_address(NULL,FALSE)->contains(Address::newFTN($msg->set_tftn)?->parent())) {
|
||||
Log::alert(sprintf('%s:! Netmail destination [%s] doesnt exist, bouncing back to [%s]',self::LOGKEY,$msg->set_tftn,$pkt->fftn->ftn));
|
||||
|
||||
Notification::route('netmail',$msg->fftn)->notify(new NetmailNoDestination($msg));
|
||||
|
Reference in New Issue
Block a user