zone-eu / zone-mta

📤 Modern outbound MTA cross platform and extendable server application
European Union Public License 1.2
606 stars 96 forks source link

Routing based on sender domain and sub-domain #416

Closed pydubreucq closed 3 months ago

pydubreucq commented 3 months ago

Hi, I would like to know if it's possible to route based on sender domain and sub-domain ? I would like to block a sender domain and all their sub-domain.

I tried to use a wildcard but it don't work:

'sending-zone': {
    ...
    senderDomains: ['*.example.com']
}

Thanks by advance Bye

andris9 commented 3 months ago

It's an exact match check, so you would have to list all known subdomains in the list. Or write a plugin for the queue:route hook that sets it.