Message Size Restrictions

Would like to have all users have message size restrictions set to 10MB send/receive. Except for some users the limit will be larger.

Set-Mailbox "alias" -MaxSendSize 10mb -MaxReceiveSize 10mb - can this be run on all mailboxes:

Set-Mailbox -MaxSendSize 10mb -MaxReceiveSize 10mb ??? If I don't specify individually.

Maybe?? Get-Mailbox -ResultSize Unlimited | Set-Mailbox -MaxSendSize 10mb -MaxReceiveSize 10mb

I would then need to change settings on receive connector and transport service setting

to allow 25MB limit.

Then change setting on individual mailboxes that are allowed to accept 25MB.


July 17th, 2015 7:03pm

Do you have a question?

The way I would do it is to write a script that reads in all the names that are exempt and store them.  Then I'd get all mailboxes, and for each one, if it's not in the list, enforce the limits if they're not already correctly set.

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 7:33pm

unfortunately I'm not good with scripts :)

Will this command work? Get-Mailbox -ResultSize Unlimited | Set-Mailbox -MaxSendSize 10mb -MaxReceiveSize 10mb.

I only have a few individuals that are allowed to receive more than 10mb.

July 17th, 2015 7:38pm

That will set all mailboxes to those limits, including all that you want set higher.
Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 7:43pm

Yes, since I only have 5 users to change to higher limit, after I change all then I can change the 5 individually.

Just want to confirm that this command will only change settings on user mailboxes and not affect anything else (Get-Mailbox -ResultSize Unlimited | Set-Mailbox -MaxSendSize 10mb -MaxReceiveSize 10mb) true??

Thanks!

July 17th, 2015 8:03pm

Theoretically between the time you restrict them, then set them back, they could miss a message.

You could set one of the custom attributes to some value for the 5 and the do something like this:

Get-Mailbox -ResultSize Unlimited | Where {$_.CustomAttribute15 -ne "25GBLimit"} | Set-Mailbox...

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 8:25pm

Sorry, not sure what this will do, newbie :(
{$_.CustomAttribute15 -ne "25GBLimit"}

July 17th, 2015 8:34pm

Assign that value (or a different value of your choosing) to the custom attribute to users who are exempt from the limit.  Then the modified script won't touch them.  You can use a different custom attribute if you want.
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2015 1:13am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics