Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Bald Stalin
Jul 11, 2004

Our posts
2 hours waiting for a message trace in 0365, criteria was 1 recipient 1 day earlier this month. This is almost as frustrating as waiting for mysterious un-configurable SharePoint online services to run once every 24 hours to see if a change you made upstream fixed a problem...

Adbot
ADBOT LOVES YOU

Old Binsby
Jun 27, 2014

it is, if you’re unlucky you get to wait even longer. I did a few extended message traces a couple months back when they broke OME message routing, an MS engineer was working with us while those traces ran, they clearly took ages. He really didn’t like waiting 5-10 hours, swearing up and down it used to be much less. I don’t remember such a time but he said he’d take it up with the product group or whatever they’re called now because potentially waiting an entire workday is insane. So yea this is still what is, :shobon:

Old Binsby fucked around with this message at 00:39 on Dec 21, 2017

ChromaticLlama
Sep 2, 2011

I'm hoping you guys might be able to help me with an issue a client of ours ran into the other day.

My client has an Exchange 2013 environment with about 60 mailboxes. The other day they managed to incorrectly implement a retention policy against all mailboxes which removed ALL mail prior to 9/1/17. I've spent about 4 hours troubleshooting this and I've removed the bad retention policy. I"m now trying to figure out if the old emails can be restored to each mailbox. I've found that the New-MailboxSearch command is able to see the older emails which is the good news.

My problem is that I don't know how best to scale this "fix". The New-MailboxSearch command requires you to copy everything over from the target inbox over to another inbox, you cannot specify the same inbox to restore to. This means I have to copy everything over to a temp mailbox and again back to the user mailbox. Additionally, it appears that the maximum concurrent searches is capped at 2 and there's no way to queue that up. Furthermore, this approach still requires users to drag all of the emails out of a recovery folder in their inbox and move them to whatever folder structure they had set up previously after the search and copy operation finishes.

Is there any easier way to go about this?

Will Styles
Jan 19, 2005
Are the messages not recoverable from Outlook? You could have the customers recover their own data if they want it or an admin can be given full mailbox access and recover for them. It'll take several hours but it will likely be faster than trying a programmatic approach with just 60 mailboxes.

If you're intent on some scripted solution you could do it through the ews api using a service account with full access to the mailboxes. Unless you're familiar with the api though it'll likely take a couple days to develop and test.

ChromaticLlama
Sep 2, 2011

Will Styles posted:

Are the messages not recoverable from Outlook? You could have the customers recover their own data if they want it or an admin can be given full mailbox access and recover for them. It'll take several hours but it will likely be faster than trying a programmatic approach with just 60 mailboxes.

If you're intent on some scripted solution you could do it through the ews api using a service account with full access to the mailboxes. Unless you're familiar with the api though it'll likely take a couple days to develop and test.

It appears that these messages have some sort of hidden attribute applied to them. Even their main administrator who has full inbox permissions cannot see the missing emails in his local inbox.

ChromaticLlama
Sep 2, 2011

I spoke to a exchange guru and got some sagely advice to help me with my problem.

In case anyone else is curious, the answer I got was to do a point in time restore to a temporary recovery database and then use PowerShell to copy from the recovery database into the current exchange database. The way I was doing it technically works, but it's time consuming and it won't retain the proper folder information for each email (everything would have to go under inbox).

A Pinball Wizard
Mar 23, 2005

I know every trick, no freak's gonna beat my hands

College Slice
Hoping someone can point me in the right direction here:

The program I support has an integrated e-mail client, Mailsender. One customer has Office 365. When they send an e-mail inside their domain, either from Outlook or Mailsender, all of the images in their signatures look fine. When they send from Outlook outside their domain, everything is fine. When they send from Mailsender outside their domain, the images show as attachments to the e-mail and the body of the message shows a broken image placeholder.

If I look at the source of an e-mail sent outside the domain using Outlook, the image tags look like what I would expect:

<img src="cid:image001.png@12345678.87654321">

The e-mails from Mailsender look like

<img src="cid:A73523B896F32342357ACD@CANPRD01.PROD.OUTLOOK.COM">

I'm at a loss as to why this is happening and if it's a bug in our program or something on their server they need to adjust. I can't really send it to the developers until I figure that out, and our organization doesn't have any o365 accounts to test with. Google turns up a lot of people asking how to embed images in their signatures, but the closest to this issue I can find is this and there's no real answer on it (the images are all being sent with the correct mime type).

Any thoughts?

anthonypants
May 6, 2007

by Nyc_Tattoo
Dinosaur Gum
What client are they using?

nielsm
Jun 1, 2009



What does the MIME structure of the outgoing mails look like? Especially any Content-Disposition headers for the image parts.
Also does Mailsender use SMTP or some Exchange-specific service to inject the messages?

A Pinball Wizard
Mar 23, 2005

I know every trick, no freak's gonna beat my hands

College Slice

anthonypants posted:

What client are they using?

Other than ours, Outlook 2016.


nielsm posted:

What does the MIME structure of the outgoing mails look like? Especially any Content-Disposition headers for the image parts.
Also does Mailsender use SMTP or some Exchange-specific service to inject the messages?

I'm trying to get the guy I'm working with at the client to send a message directly to Gmail, because I'm not sure how to check that in Outlook. But the e-mails he sent to my Exchange that I then forwarded to Gmail have this:

code:
Content-Type: image/png; name="image001.png"
Content-Description: image001.png
Content-Disposition: attachment; filename="image001.png"; size=8172; creation-date="Wed, 17 Jan 2018 15:01:55 GMT"; modification-date="Wed, 17 Jan 2018 15:01:56 GMT"
Content-ID: <0C7E268912A77547B2CAE21524EA02B9@myworkdomain.com>
Content-Transfer-Encoding: base64
Mailsender uses MAPI to basically use Outlook to send things. Sorry if I'm not stating this correctly, that's my understanding of how MAPI works.

anthonypants
May 6, 2007

by Nyc_Tattoo
Dinosaur Gum

A Pinball Wizard posted:

Other than ours, Outlook 2016.


I'm trying to get the guy I'm working with at the client to send a message directly to Gmail, because I'm not sure how to check that in Outlook. But the e-mails he sent to my Exchange that I then forwarded to Gmail have this:

code:
Content-Type: image/png; name="image001.png"
Content-Description: image001.png
Content-Disposition: attachment; filename="image001.png"; size=8172; creation-date="Wed, 17 Jan 2018 15:01:55 GMT"; modification-date="Wed, 17 Jan 2018 15:01:56 GMT"
Content-ID: <0C7E268912A77547B2CAE21524EA02B9@myworkdomain.com>
Content-Transfer-Encoding: base64
Mailsender uses MAPI to basically use Outlook to send things. Sorry if I'm not stating this correctly, that's my understanding of how MAPI works.
In Outlook 2016 you can see the entire email with headers, etc. if you open the email into its own window, then go to File, Info, Properties.

devmd01
Mar 7, 2006

Elektronik
Supersonik
And then paste the headers into https://testconnectivity.microsoft.com for a more easily parsed view of the data.

A Pinball Wizard
Mar 23, 2005

I know every trick, no freak's gonna beat my hands

College Slice
When I do that, all I get are the headers, none of the content. I can paste that here, but I'd rather not paste the whole thing since I'd have to redact a lot of stuff.

e. I found 3 other customers using o365 who have the same problem. That was enough for me to fob it off on development, so i'm happy now.

A Pinball Wizard fucked around with this message at 16:12 on Jan 24, 2018

Thanks Ants
May 21, 2004

#essereFerrari


I've been automapped to the root of a mailbox that I don't want to have access to (it's a room calendar, I'll just set the default permissions on the calendar folder to reviewer). But the permission seems to have been granted to a security group that I'm a member of, so I can't just remove myself from the account ACLs and have it detach from my Outlook, since I'm not explicitly granted permissions.

How do I remove this from my Outlook? I am an Exchange tenant admin so I'll have permissions to do whatever the solution ends up looking like. Not keen on revoking permissions for the entire group since that's going to affect other people.

Edit: Should have Googled harder. Explicitly adding access to the mailbox but setting automapping to false cleared it out after a short delay (cached Exchange). Then I just removed that explicit ACL.

Thanks Ants fucked around with this message at 22:43 on Jan 25, 2018

devmd01
Mar 7, 2006

Elektronik
Supersonik
One more month and our remaining exchange 2010 servers will be gone. Remaining on-prem exchange infrastructure will be two Exchange 2016 servers in HA for internal SMTP relay outbound to Proofpoint/O365 and ECP for user maintenance of attributes to sync to O365. :c00l:

Old Binsby
Jun 27, 2014

Thanks Ants posted:

I've been automapped to the root of a mailbox that I don't want to have access to (it's a room calendar, I'll just set the default permissions on the calendar folder to reviewer). But the permission seems to have been granted to a security group that I'm a member of, so I can't just remove myself from the account ACLs and have it detach from my Outlook, since I'm not explicitly granted permissions.

How do I remove this from my Outlook? I am an Exchange tenant admin so I'll have permissions to do whatever the solution ends up looking like. Not keen on revoking permissions for the entire group since that's going to affect other people.

Edit: Should have Googled harder. Explicitly adding access to the mailbox but setting automapping to false cleared it out after a short delay (cached Exchange). Then I just removed that explicit ACL.

you found it out already but groups should never automap (until this silently becomes a ‘feature’ one day)

Count Thrashula
Jun 1, 2003

Death is nothing compared to vindication.
Buglord
Quick dumb question - with a local Exchange 2016 server, if I create a junk mail rule in Outlook 2016, is that stored server side or client side?

Old Binsby
Jun 27, 2014

COOL CORN posted:

Quick dumb question - with a local Exchange 2016 server, if I create a junk mail rule in Outlook 2016, is that stored server side or client side?

server side, you can edit them server side as an admin too

Dr. Arbitrary
Mar 15, 2006

Bleak Gremlin
Does anyone know if there's an easy way to migrate PST files out of Microsoft Cloud? I'm half expecting there to be a powershell commandlet like Migrate-PSTFilesFromCloud.

I could have sworn I've heard people talking about it before, I can't remember if there was an easy way or if people just said "some 3rd party tool will do it for $5 per mailbox."

nexxai
Jul 17, 2002

quack quack bjork
Fun Shoe

Dr. Arbitrary posted:

Does anyone know if there's an easy way to migrate PST files out of Microsoft Cloud? I'm half expecting there to be a powershell commandlet like Migrate-PSTFilesFromCloud.

I could have sworn I've heard people talking about it before, I can't remember if there was an easy way or if people just said "some 3rd party tool will do it for $5 per mailbox."

https://technet.microsoft.com/en-us/library/ff607299(v=exchg.160).aspx

Submarine Sandpaper
May 27, 2007


What'd be the best method to capture a snapshot of a mailbox for audit purposes. On prem 16

Old Binsby
Jun 27, 2014

Submarine Sandpaper posted:

What'd be the best method to capture a snapshot of a mailbox for audit purposes. On prem 16

turn on litigation hold indefinitely so nothing gets deleted ever, use ediscovery search to stick the entire thing into a separate box the user can't reach if you need to give auditors access

Thanks Ants
May 21, 2004

#essereFerrari


Office 365 calendar delegate permission management in PowerShell :toot:

https://products.office.com/en-GB/business/office-365-roadmap?filters=&featureid=26355

devmd01
Mar 7, 2006

Elektronik
Supersonik
Just a sanity check, I have two exchange 2016 servers for managing attributes to sync to O365 and on prem SMTP. I can finally remove the last two exchange 2010 servers from the org. This isn’t going break exchange attributes, etc, correct?

Rick
Feb 23, 2004
When I was 17, my father was so stupid, I didn't want to be seen with him in public. When I was 24, I was amazed at how much the old man had learned in just 7 years.
Maybe someone can help, using exchange 2010.

There is a usergroup that all members should be able to edit each other's calendars. I found a powershell script and have adapted :

code:
[PS] C:\Windows\system32>$GroupMembers = Get-DistributionGroupMember GroupToEdit
[PS] C:\Windows\system32>foreach ($Groupmember in $GroupMembers) {Add-MailboxFolderPermission -Identity (""+ $GroupMember.Guid+ ":\Calendar") -User $Groupmember -AccessRights Editor}
But of course that just sets every user as "editor" of their own calendar.

Is there a way to change it so that I can somehow set them all to edit each other? Is there an easier way to do this?

Also, there is another group of people that are supposed to be able to edit the first usergroup, but not have the same reciprocal editing, but it's a small enough group of people I wouldn't mind doing it one by one.

Thanks Ants
May 21, 2004

#essereFerrari


Add all the users who need to edit each other’s calendars to a security group and then set edit permissions for the group to all group members.

Will Styles
Jan 19, 2005
^^

You're almost there, instead of giving the member permissions give the group permissions. This should work, just make sure your group "GroupToEdit" is a security group.

code:
[PS] C:\Windows\system32>$GroupMembers = Get-DistributionGroupMember GroupToEdit
[PS] C:\Windows\system32>foreach ($Groupmember in $GroupMembers) {Add-MailboxFolderPermission -Identity (""+ $GroupMember.Guid+ ":\Calendar") -User GroupToEdit -AccessRights Editor}
Of course you'd need to run the powershell every time you update the group membership. Also, removing someone from the group wouldn't take the group permissions away either so you'd need to come up with something for that.

nielsm
Jun 1, 2009



Will Styles posted:

You're almost there, instead of giving the member permissions give the group permissions. This should work, just make sure your group "GroupToEdit" is a security group.

Specifically, a security-enabled distribution group. I believe you make a security group in AD, then run Enable-DistributionGroup on it in Exchange.

Old Binsby
Jun 27, 2014

Rick posted:

Also, there is another group of people that are supposed to be able to edit the first usergroup, but not have the same reciprocal editing, but it's a small enough group of people I wouldn't mind doing it one by one.

Might be misunderstanding your intention here but if you want to delegate permissions to modify membership of the first group without giving the read access that the group grants to them, you can do that with Set-DistributionGroup -ManagedBy [list of users]. Managers of a group aren't members automatically but they can add themselves.

Thanks Ants
May 21, 2004

#essereFerrari


I assumed that there was a requirement for another group of users to have edit access to the original groups calendars, but not themselves grant edit access to anybody else.

Rick
Feb 23, 2004
When I was 17, my father was so stupid, I didn't want to be seen with him in public. When I was 24, I was amazed at how much the old man had learned in just 7 years.
Thanks everyone, I appreciate it!

I've definitely considered the annoyance of having to run it every time someone is added, and am going to see if there's a way to get it added to the client tracking software since this sort of thing is usually standard, but that might take a while.

Old Binsby posted:

Might be misunderstanding your intention here but if you want to delegate permissions to modify membership of the first group without giving the read access that the group grants to them, you can do that with Set-DistributionGroup -ManagedBy [list of users]. Managers of a group aren't members automatically but they can add themselves.

Thanks Ants posted:

I assumed that there was a requirement for another group of users to have edit access to the original groups calendars, but not themselves grant edit access to anybody else.

Yes, basically the supervisors want to be able to add things to everyone's calendars but have theirs left untouched. With that said, them being able to add members to the group would be nice so I'll probably still use that.

Mierdaan
Sep 14, 2004

Pillbug
Is EOP's quarantine page horrible for everyone, or is it just some tenant-specific thing? Every time I load it it's like loving error roulette. Probably loads successfully one out of every 20 tries.

devmd01
Mar 7, 2006

Elektronik
Supersonik
Last exchange 2010 server powered off prior to decommission next week, only thing left is two Exchange 2016 servers in HA for on prem SMTP relay and editing user mail attributes to sync to O365. It’s nice not having to give a poo poo about exchange, it just works now.

Beefstorm
Jul 20, 2010

"It's not the size of the tower. It's the motion of the airwaves."
Lipstick Apathy

devmd01 posted:

Last exchange 2010 server powered off prior to decommission next week, only thing left is two Exchange 2016 servers in HA for on prem SMTP relay and editing user mail attributes to sync to O365. It’s nice not having to give a poo poo about exchange, it just works now.

Just works ™

Old Binsby
Jun 27, 2014

Mierdaan posted:

Is EOP's quarantine page horrible for everyone, or is it just some tenant-specific thing? Every time I load it it's like loving error roulette. Probably loads successfully one out of every 20 tries.

it’s poo poo and being phased out in favor of the one at protection.office.com which is slightly snappier but annoying in different ways

Dans Macabre
Apr 24, 2004


Mimecast supremacy

Mierdaan
Sep 14, 2004

Pillbug

Old Binsby posted:

it’s poo poo and being phased out in favor of the one at protection.office.com which is slightly snappier but annoying in different ways

https://admin.protection.outlook.com/quarantine is the one i'm using :saddowns:

anthonypants
May 6, 2007

by Nyc_Tattoo
Dinosaur Gum
Same, and I haven't had a problem with it :confused:

Happiness Commando
Feb 1, 2002
$$ joy at gunpoint $$

I have a questionably correct hybrid setup (EAC and Azure GUIs report non hybrid, Get-HybridConfiguration reports otherwise). I'm also using AAD connect.

I have a user account that exists in Azure and onprem Ad and also O365, but not in the onprem Exchange mailboxes list.

One of our internal tools isn't sending mail to that mailbox. A message trace on O365 reports that mail isn't getting to their servers. A trace onprem shows a bazillion HAREDIRECTFAIL, DEFER, and FAIL errors.

I'm assuming it's because the there is no record of that mailbox on the onprem server (even though other internal mail is delivered fine, IDK)

How can I force a resync of the Exchange mailbox list or where else would I start looking at fixing this?

EDIT: it was Enable-RemoteMailbox and then Start-ADSyncSyncCycle. Thanks to all you rubber ducks out there

Happiness Commando fucked around with this message at 20:21 on Mar 2, 2018

Adbot
ADBOT LOVES YOU

Aunt Beth
Feb 24, 2006

Baby, you're ready!
Grimey Drawer
I've got an Exchange 2013 on-prem deployment and I've been working more and more with RBAC. I've created a new role based on MailRecipients with permissions to run the Get-Mailbox command, but it can't use the -Database flag to get a mailbox on a particular. How do I add particular flags to a command a role is assigned? Sorry for the dumb question, I'm a bit of an Exchange baby.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply