powershell domain provisioning with a catchall

Discussions on webmail and the Professional version.
Post Reply
phollows
Posts: 5
Joined: Tue Jul 21, 2020 8:26 pm

powershell domain provisioning with a catchall

Post by phollows »

Any MailEnable / Powershell gurus on here?

ME Pro 10.39.

I can provision postoffices and domains and mailbox maps using powershell -- except, AFAICT, the domain's catchall setting.

Adding *@<domain> via the New-MailEnableAddressMap cmdlet appears to be insufficient, so I'm stuck.

The ability to programmatically define a new domain with a catchall is essential to our use case.

Anyone done this?

Thx

Phil

phollows
Posts: 5
Joined: Tue Jul 21, 2020 8:26 pm

Re: powershell domain provisioning with a catchall

Post by phollows »

Thanks to Peter at support, here's the solution:

New-MailEnableAddressMap -EmailAddress "[SMTP:*@example.com]" -Postoffice "example.com" -Mailbox "catchall"

The trick is specifying the email address as above, as simply using "*@example.com" (w/o SMTP[...]) doesn't work in the current rev (a fix is en route apparently).

Post Reply