Exchange 2007 Mail Store didn't change after cleanup

Went through and deleted some users, one of which exchange said was half of its mail store size. It was deleted since its not needed. After running the cleanup commands the mail store file size is still the same. Also I notice alot of log files sitting out there in the mail store directory. Whats the best way to clean both?
sraleyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

waleedaCommented:
you need to check the event id 1221 on you exchange server, to see how size the white space on each database, if you want to clean that, then you should do offline defragmentation but it will require downtime


check the below steps URLs:

http://technet.microsoft.com/en-us/library/aa997972(v=exchg.80).aspx

0
Muzafar MominCommented:
this is due the Deleted Mailbox and Deleted Item Retention policy on exchange
refer below link to setup the policy as per your choice
http://technet.microsoft.com/en-us/library/bb125266(EXCHG.80).aspx

You will need to purge Deleted mailbox to free up space pls refer below
http://technet.microsoft.com/en-us/library/bb125266(EXCHG.80).aspx
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_23578080.html
0
UrlrynCommented:
As the previous Experts have suggested you may need to manually purge the mailboxes or at least setup the mailbox retention policy and so on.  Though I do not believe this will actually reduce the physical database size.

Depending on how you have the databases setup...the log files should automatically delete once a backup has been completed.  This will be something you will need to verify in your settings.

There are a lot of options for cleaning up the wasted space or white space left behind from moved/deleted mailboxes and such.

In a conversation with Microsoft they have recommend (and has worked fine for us) is to move all the mailboxes out of the problem storage group.  Suspend the LCR Copy and Dismount the Database.  Delete all the log files and database files including the LCR Copy ones.  Remount the database which will then prompt a new empty database and then enable the LCR copy again.  

Urlryn
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

sraleyAuthor Commented:
I don't know if I want to take on the last paragraph. You said database backup the log files will be deleted. is this a backup through exchange management or are you talking a windows backup which is what is done every night.
0
UrlrynCommented:
After a full Windows backup the Exchange Transaction logs should delete unless you have circular logging enabled.

The alternative to my suggestion would be to dismount the databases and running offline defrags and database checks.  These options are very slow and then it also brings down email for your users.

The above process is actually pretty easy as long as you have a database to move the existing mailboxes to and enough space for all the log files.  

Urlryn
0
sraleyAuthor Commented:
I can dismount tomorrow and run all the offline defrags. Windows backup does  full backup each night but log files are not being removed.
0
lucid8Commented:
As Waleeda pointed out your nightly online maintenance needs to run and you will see a 1221 in the event log designating the amount of space that can be recovered more here http://technet.microsoft.com/en-us/library/aa996226(EXCHG.65).aspx

However that said within Exchange 2007 there is a setting  under - Mailbox properties--mailbox settings- storage quotas

* Look under deleted item retention there is a setting that says "Do not permanently delete items until you backup the database"   So if your backups have not been finishing then your deleted item retention id never cleared.   Now you can change this if you like by de-selecting that option and saving the settings and then wait for you nightly maintenance to run. And as stated above you will see the 1221.  HOWEVER be aware that A. this will limit your ability to recover items within the deleted item retention range if your backups are not completing and B. this will only free space within the EDB for other items, i.e. the physical size of the EDB will not shrink unless you do an offline defrag.

MORE IMPORTANTLYIf your logs are not being truncated then you either don't have it configured properly OR your backups are not finishing correctly.

1. As asked above do you have circular logging enabled?
2. How many logs are we talking about?
3. Whats the oldest and newest log date?
4. Are you running a straight stand alone 2007 server, or do you have LCR, CCR, or SCR enabled?

NOTE: IMO Before you consider doing a DB defrag or MB move OR changing the deleted item backup retention setting I would figure get the backup situation resolved.  Check your event logs that occur during the backup process and at the end and this will give you a good starting point as to whats happening
0
sraleyAuthor Commented:
The backup verification gives an error on the mailbox file but the file backed up fine. So the logs are still there.
0
sraleyAuthor Commented:
I see now that I have some rule in exchange to send a submission/copy of every email to a journal account that is one that I deleted but I don't know or can't find wheret he rule is. I see that I have 8200 messages sitting in a submission queue that can't be delivered and i can't delete

Identity: TPP-MAIL\Submission\373615
Subject: {MetLife Secure Message}  Re: Requested information
Internet Message ID: <c74dc0e3-4503-450c-a0b6-7ff50638a7ac@journal.report.generator>
From Address: <>
Status: Retry
Size (KB): 12
Message Source Name: Journaling
Source IP: 255.255.255.255
SCL: 0
Date Received: 2011-04-06 16:54:25
Expiration Time:
Last Error: Categorization failed. The message will be deferred and retried because it was marked for retry if rejected.
Queue ID: TPP-MAIL\Submission
Recipients:  journal@
0
sraleyAuthor Commented:
I reran backup and logs are taken care of now. I don't know what the verification error was about before.
0
sraleyAuthor Commented:
running stand alone exchange 2007. Don't know what your asking about the LCR, CCR< SCR?
I'm runnding defrag now.
0
UrlrynCommented:
Are the queue for journaling still building up?

The rules for that are typically under Organization...Journaling Tab.

If you already have deleted this rule then you will need to manually purge the queue since it has no where to go now.  Just highlight them all and delete without NDR or With NDR.  Your Choice.

if you need the journaling...then you will have to recreate it here and send it to the correct place.
0
UrlrynCommented:
If your keeping the journaling then don't purge the queue.  Only if your not needing them anymore!
0
sraleyAuthor Commented:
found the tab and removed the journaling rule. It was already disabled but there is a queue called Submission, delivery type unknown. I suspended it since that was my only option. I can't deleted the messages. I can just do properties on them.
0
UrlrynCommented:
I've found this online a while back when we ran into a similar issue and saved it.  Unfortunately I don't remember the exact site:

In order to clear the Exchange 2007 submission queue you will have to create a new queue database from scratch. This may cause some mail loss since this will delete whats currently in the queue.

Open computer services via Start --> Run --> Services.msc
Locate and stop the Microsoft Exchange Transport Service (this service is new to Exchange 2007).
Navigate to the Queue folder location. By default the folder is in C:\Program Files\Microsoft\Exchange Server\Transport Roles\Data\.
Right click on the Queues folder and choose Rename. Rename the folder to something like Queue.old.
Create a new folder and name it: Queue
Start the Microsoft Exchange Transport Service.
Confirm mail flows both inbound and out of your server

Open in new window

0
sraleyAuthor Commented:
i'll try it as soon as they will let me take email down again. the director's address book is corrupte again after running the cleanup/defrag.
0
sraleyAuthor Commented:
okay ran the cleanup and it got rid of 4 gigs
0
sraleyAuthor Commented:
I don't know if this is the place to ask this question or start a new one but we were having a problem with one person when typing in an address in outlook and it popped up in the TO line cache she clicked the email woudl come back because it replaced theredomain.com with localdomain.com even though its spelled right in cache. We thought it was her but this morning in outlook web mail, it did it to the administrator account as well. Is this an exchange issue since all contact lists are stored in exchange?
0
UrlrynCommented:
Sounds like the address book is having a issue....have you tried rebuilding it or creating a new one from scratch?
0
sraleyAuthor Commented:
how do you go into exchange and rebuild an address book? I've tried creating a new one but that will be a file on the hard drive, the default is in the exchange profile.
0
UrlrynCommented:
in EMC

Select the Organization > Mailbox > Offline address book.

Right click and select Update

If your still having issues...just create a second one and do some further testing to see if you get the same issues or not.
0
sraleyAuthor Commented:
okay other than the prompt that this could take a few minutes what should i see because I saw something flash on the screen after clicking okay to that message and its been at least 5 minutes and nothing else in EMC has popped up.
0
sraleyAuthor Commented:
oh and I forgot to mention these problems with appending the domain.local instead of the domain.com appears to only happen to 2 accounts out of 12.
0
UrlrynCommented:
Take them out of cache mode and see if you get the same results.
If nobody else is having the issue but those 2 then its probably not a Global Address Issue.  Maybe redo the profile?  or Have you tried deleting the .NK2 file from the PC? this is the file that stores all the cache email addresses and stuff?
0
sraleyAuthor Commented:
for one account yes we deleted profile from the computer which cleared the nk2 file and her problems still exist. unless she types in the full email address it isn't sending to a few people in her contacts.
0
sraleyAuthor Commented:
okay deleted teh n2k file and only tested a couple email addresses. She will be back monday to try it out some more.
0
UrlrynCommented:
All the mail stores good now? Replication going correctly?  All the databasecopys healthy?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
UrlrynCommented:
Oops forgot your not doing 2010! ignore that last comment! :)
0
sraleyAuthor Commented:
not sure if all the cache and mailstore is cleared. log files gone. mailstore decreased by 4 gig but mailbox was 17gig that was deleted. will wait and see.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.