When Exchange Server rejects incoming email with: 452 4.3.1 Insufficient system resources

Exchange Server logo

Intro

So we were working on a project for a customer who has 6 Exchange servers, 3 CAS and 3 MBX. The customer have an Exchange Server 2013 organization and about 200 users.

Basically it all sounded easy and quick project, however their Exchange Server has other saying on this! After we configured the co-existence scenario on their Exchange Server, we had an issue where their local anti-spam application started to block incoming email messages from Google.

This is a normal behavior of course as those emails might be considered spoofed emails. So we added Google IP address ranges for outbound SMTP. Once we did that and some other settings on their Exchange Servers we were able to get their email traffic going between G Suite and on-premises Exchange Servers.

This was the easy part… However there was something else being cooked for us by the Exchange Server

The

Read the rest “When Exchange Server rejects incoming email with: 452 4.3.1 Insufficient system resources”

How to search and delete users email messages in their mailboxes before a specific date/time – Exchange 2010

Exchange Server logo

Little intro

I’ve got a case where the customer wanted to delete all of his users’ data in their mailboxes on the Exchange Server, that they got before 1-JAN-2018. He has an incident happened with some leaked critical email messages and he wanted to prevent it by taking this action!

The way to do this of course is pure PowerShell. So I first had to analyze the requirements then build an image in my brain for how the work is going to happen, then test it. And finally implement the needed changes.

Basically what I came to put together is, first I need to backup the data that I will delete. Then I need to delete the data.

To backup the data I need to export the mailboxes to a PST file. And the delete the data I have to use the Search-Mailbox cmdlet with -SearchQuery property.

That was the … Read the rest “How to search and delete users email messages in their mailboxes before a specific date/time – Exchange 2010”

What to do when New-MailboxExportRequest stuck on “Queued” status

Exchange Server logo

Intro

This is just the back story for this incident and the Exchange Server environment setup. Skip to The issue section for the actual stuff

I recently had a project started to migrate an Exchange Server 2010 organisation to G Suite. The customer had 4 (very old) servers, 2 DAG and 2 CAS. While we were preparing for the data migration phase we hit a very hard brick wall. 3 hard disks on one of the servers decided it was time for them to smoke. Luckily they had 6 disks on that server, and they were using RAID5. Few days after replacing these drives, another different drive on the same server followed its fallen brothers!

So they managed to keep their servers up and were quick to replace the damaged disks at the end. However this was not the case for the databases on the server. Once of the databases … Read the rest “What to do when New-MailboxExportRequest stuck on “Queued” status”

PS: A small script to list Office 365 groups and members

in Office 365 you get three types of groups: distribution groups, dynamic distribution groups, and Office 365 groups (unified groups)…

The first two of those are based on Exchange Server and are very straight and easy to use for anyone who is familiar with Exchange Server… However the third type might look something new to them despite being at the same level of ease and straight forward!

When using Exchange Online PowerShell to list the groups, there are three commands to use for this:

Similar to the first two commands, Get-UnifiedGroup works the same way… You will get the group, then check its members attribute or property to get the other member users…

Below is a small script that I made will do the required job for you. Once the process is completed, you will get a file named O365GroupMembers.csv … Read the rest “PS: A small script to list Office 365 groups and members”

PS: Get all active directory groups with their member users

A quick and nice script to get all groups and their member users exported in PowerShell… you might need that for multiple reasons, and getting them quick is a nice thing…

Today I needed that for a customer who asked for it because he was cleaning his 1000 users active directory, and lucky me, the force of PowerShell can just do anything!

Script:

The above will just display the output on the screen, so in order to have it in a file, … Read the rest “PS: Get all active directory groups with their member users”

Guide to decommissioning old Exchange 2007 server

This is just a quick guide to decommission an old Exchange server 2007, since now 2010 and 2013 and even Office365 are everywhere, 2007 is considered obsolete same as 2003 during the days of 2010…

I am not going to get in details about this, just I will summarize the guide by putting the steps and the link to information/how to do it… the whole process consists of the following steps:

Step 1: Remove old OAB: http://social.technet.microsoft.com/Forums/en-US/f26f4d92-4792-4d28-9617-ff9095d94596/exchange-server-2007-error?forum=exchangesvrsecuremessaginglegacy (follow the first part steps 1, 2, 3, 4 from the answer).

Step 2: Remove the folders replicas from the public folders database if it exists: http://technet.microsoft.com/en-us/library/bb201664%28v=exchg.80%29.aspx (follow the section “To delete user and system public folders)

Possible (almost sure) errors: Object is read only because it was created by a future version of Exchange: http://social.technet.microsoft.com/Forums/en-US/f26f4d92-4792-4d28-9617-ff9095d94596/exchange-server-2007-error?forum=exchangesvrsecuremessaginglegacy (follow the last part steps 1, 2, 3 from the Read the rest “Guide to decommissioning old Exchange 2007 server”

PS: Read and output mailboxes and their sizes

In order to get a list of all (or part) of the mailboxes and view their sizes, simply use the following PS script:

The above command, will get all the mailboxes, and list their sizes and the database they are member or, then output the result to a text file called mbx_sizes.txt…

You can change the sorting to be Ascending, to have the smallest mailbox on top…

Also, you can get the sizes for mailboxes in a specific database by:

Read the rest “PS: Read and output mailboxes and their sizes”

CMS replication issues between Lync 2013 FE and Edge when using internal CA for Edge

Hi, so I had an implementation for Lync 2013, consist of an FE and Edge server, of course the front-end went smooth and was ready in no time, but I had an annoying problem on the Edge after I installed it, that kept me busy for 2 days, until I found out what was going on, on it…

The replication was not working between my FE and the Edge server, and when I type:

I see false on the Edge server, even if I run Invoke-CsManagementStoreReplication many times, I still don’t get anything on the Edge…

Because internal certificates are internal only, I used a local CA to issue the certificates on FE, and on the private side of the Edge as well, my CA was an intermediate one for a root CA on the same domain, so the certificate chain had 2 certificates in it, … Read the rest “CMS replication issues between Lync 2013 FE and Edge when using internal CA for Edge”

PS: Bulk forwarding mailboxes to external addresses

Sometimes you get a sudden need to forward bulk users’ mail to external destination… in normal days, you would create a mail contact, then forward the selected user’s mail to the new external contact.

Now what if you got a large number of contacts to forward? well, you can either:

  1. Manually create all the required mail contacts, then assign each user to each contact.
  2. OR THE BETTER WAY: Use the magic of PowerShell!

This is a very simple and quick procedure…

First, you will need to create the contacts, which you can find how in the following post: PS: Creating bulk mail contacts

Then with another script, you will forward each user to his corresponding mail contact item:

You can Read the rest “PS: Bulk forwarding mailboxes to external addresses”

PS: Creating bulk mail contacts

Below is a useful script to create bulk contacts in Exchange Management Shell:

You need to have the following prepared before you use the script:

  1. A CSV file contains 2 headers: Name, ExternalAddress, with all the contacts list that you want to create.
  2. Save the CSV file in C:\ (to be completely complied with the script above, otherwise save it where you want, but make sure you specify it’s full path in the script above instead of “C:\NameList.csv”.

To make it a bit easier, here is the script ready, just open EMS and run it from there after you make sure the file is ready…

Bulk-MailContactRead the rest “PS: Creating bulk mail contacts”