Sort e-mail by sender's domain - Outlook 2007

Not open for further replies.


Outlook version
Email Account
Exchange Server
I need a way to sort through several GB of old e-mails by sending domain name. I'm sure there must be a script or small app that can do this, but I haven't found one.

I'm using Exchange 2007 & Outlook 2007. Making rules isn't practical in this situation, because I'm looking at 5+ GB of e-mail, from hundredes of senders.

If there were a way to make a rule that automatically put messages from a particular domain into subfolders, created when the search finds a new domain, that would work well for what I have to do, or sorting in Outlook by domain name by using a custom sort field.

I'm sure someone has develped a script for this, unfortunately I haven't been able to find one.


Senior Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
I'm not aware of any script - there are programs like NEO and ClearContext and can sort by address into folders (and more). IMO, its really not the best way to organize mail though. You end up with messages from threads scattered all over the place.

If the messages are already downloaded and it's basically something you need for a few domains, you could use search folders to group mail by domain then move ot a folder if you really want them sorted into different folders.

There is a cfg at Add custom field to outlook that will expose the sender's address and you can group by it - it's not by domain though, only full address. (A custom field that shows just the domain won't be groupable or sortable.)

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
After reading the link (which larry apparently didn't. You really should have repeated it here too) -

Basically, this is a forensic issue. A high level executive left without warning and I'm trying to make sense of his e-mails. Being able to sort by the sender's domain, ideally by using a new column, would help greatly.

If there were a way to make a rule that automatically put messages from a particular domain into subfolders, created when the search finds a new domain, that would work too

There is no way to make a script that moves mail automatically following a search, you would need to do it yourself. I doubt the cfg (as cool as it is) will help - although once the mail is sorted by domain, it might be useful. If this is something important (ie, you suspect hanky-panky, rather wondering if everything was kosher), there are ediscovery tools available.

NEO or clearcontext might work for you - they each have a trial available. (I think they are full featured trials.)
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
B Macro to Change sort and collapse groups in Mail folder Outlook VBA and Custom Forms 9
A How to Sort by Unread and then Read mail in Outlook 2007 Using Outlook 7
A Any way to force sort by/group by on search results with VBA? Outlook VBA and Custom Forms 1
Witzker print-list-of-outlook-folders with sort posibility Outlook VBA and Custom Forms 7
King Mustard Sort search groups by amount of items? Using Outlook 1
A Custom VBA to sort emails into folders Outlook VBA and Custom Forms 0
D Sort Problem with Sent Folders Using Outlook 1
D [TOOL] QuickModules to sort emails very quickly to multiple folders Outlook VBA and Custom Forms 1
E Outlook 2010 Subject sort uses Thread-Topic for grouping Using Outlook 2
A Sort emails into subfolders based on sender and deleting emails automatically Outlook VBA and Custom Forms 3
Diane Poremsky Sort messages by Sender domain Using Outlook 1
J Can I sort meeting requests by the date of meeting? Using Outlook 4
T VBA to Sort Rules [A-Z] - code provided Outlook VBA and Custom Forms 9
P Is it possible to sort emails by COUNT of "From" field? Using Outlook 2
L Sort bar at top of inbox preview outlook 2013 Using Outlook 1
C Outlook 2010, Need to restrict domain users from installing any sort of a addin in outlook Using Outlook 2
J How to sort incoming email that is sent to a different address to my main one? Using Outlook 1
D Contacts Sort Order Using Outlook 0
kburrows Office 365 - Contacts Sort First, Last instead of Last, First. How to Reset? Using Outlook 4
I 2013 Calendar sort date Using Outlook 3
F Not keep sort order after re-change column Using Outlook 1
J outlook having sort by date or from unable to display sender name. Using Outlook 2
J Macro to periodically sort emails by flag status? Using Outlook 1
2 Sort taks by folder then by date? Using Outlook 5
S Outlook 2007 Sort Column Shading Using Outlook 1
S Public FolderEmail Sort Problems Outlook 2010/Migration from 2003 SBS to 2011S Using Outlook 3
B outlook sort by Using Outlook 2
A Sorting of existing contact in Outlook 2003 just will not sort Using Outlook 2
J Outlook 2010 Inbox sort FROM column not working Using Outlook 29
S changing number sort BCM (Business Contact Manager) 1
L Interating throught a task list, respecting sort rules in the view Outlook VBA and Custom Forms 1
S How do i sort email by Domain? Outlook VBA and Custom Forms 2
K sort over flagstatus Outlook VBA and Custom Forms 4
D Gmail mail is being delivered to a different email inbox in Outlook App 2021 Using Outlook 2
P What is your strategy for dealing with SPAM and Junk Mail? Using Outlook 1
C Code to move mail with certain attachment name? Does Not work Outlook VBA and Custom Forms 3
T 1:1 Datatransfer from incoming mail body to customs form body Outlook VBA and Custom Forms 0
O Mail rule issue Using Outlook 3
A manual rule sends mail to wrong folder Using Outlook 5
Aussie Outlook 365 Rule runs manually but returns the error code "an unexpected error has occurred" when incoming mail arrives Using Outlook 1
D ISOmacro to extract active mail senders name and email, CC, Subject line, and filename of attachments and import them into premade excel spread sheet Outlook VBA and Custom Forms 2
Witzker Outlook 2019 Macro to answer a mail with attachments Outlook VBA and Custom Forms 2
D Outlook 2003 Mail Fails Using Outlook 1
Cathy Rhone Mail merge error message Using Outlook 2
R Sent emails show iCloud mail account not the alias Using Outlook 2
D Advanced e-Mail search on from/to contact group only searches for first 20 contacts in group Using Outlook 0
P Print attachments automatically and move the mail to an existing folder called "Ted" Outlook VBA and Custom Forms 4
P Importing other e-mail accounts into Outlook Using Outlook 1
lcarpay Stay in the mail folder pane after ctrl-1 Using Outlook 1
O Exchange Sync period only (e.g. last years mail) Using Outlook 0

Similar threads