Posts Tagged ‘Exchange’

Exchange 2003: Reduce database size

November 13th, 2009 No comments

Deleted some accounts or cleared a load of emails from your Exchange server and wondering why the database size hasn’t reduced?

Well, after you’ve deleted Exchange accounts, you need to run the Cleanup Agent for them to actually be removed (and then only after the waiting period, typically 30 days, has passed).

To change the deleted mailboxes waiting period: In Exchange System Manager go to the First Storage Group, right click on your Mailbox Store and click Properties. On the Limits tab, at the bottom, change the number of ‘Keep deleted mailboxes for (days)’.

To run the Cleanup Agent: In Exchange System Manager, go to your Mailbox Store, right click on the Mailboxes folder and click Run Cleanup Agent.

The space you’ve cleared will only be available after the next online defrag has completed (typically overnight). However, the Exchange database files won’t actually be any smaller. Exchange keeps the space in it’s databases ready to use for new emails. You can see how much free space your Exchange server is holding by viewing your Exchange servers Application Event Log (in Event Viewer). Look for the Event ID 1221 that has your Mailbox Store name in it (not the Public Store). The Event description will tell you the megabytes of free space.

To actually make the Exchange database files smaller you need to run an offline defrag. This can only be done during downtime and really isn’t recommened unless you have a lot of free space in your database to release. To run you need to detach your Mailbox Store and run the Eseutil utitlity. More info can be found here.

Categories: Tips Tags: , ,

Exchange 2003: .edb and .stm?

October 30th, 2009 No comments

Want to know what the difference is between your exchange .edb and .stm files?

.edb: A rich-text database file containing message headers, message text, and standard attachments.

.stm: A streaming internet content file containing audio, video and other media that are formatted as streams of Multipurpose Internet Mail Extensions (MIME) data.

So now you know.

Categories: Tips Tags: , , ,

Restart Exchange 2003 script

October 21st, 2009 3 comments

If you need an easy way to restart Exchange 2003 services, copy and paste the following two scripts into text files and name them Exchange-stop.cmd and Exchange-start.cmd (alternatively combine them into one and call it Exchange-restart.cmd). Then run them to stop and start Exchange.

net stop “Microsoft Exchange Information Store” /y
net stop “Microsoft Exchange System Attendant” /y
net stop “Microsoft Exchange IMAP4” /y
net stop “Microsoft Exchange Routing Engine” /y
net stop “Microsoft Exchange POP3” /y
net stop “Microsoft Exchange Management” /y

net start “Microsoft Exchange Information Store”
net start “Microsoft Exchange System Attendant”
net start “Microsoft Exchange MTA Stacks”
net start “Microsoft Exchange IMAP4”
net start “Microsoft Exchange Routing Engine”
net start “Microsoft Exchange POP3”
net start “Microsoft Exchange Management”

Another quick little tip for you, if you’ve got Exchange installed on your Domain Controller with Active Directory, remember to stop Exchange before you shutdown (or add the script to the shutdown procedure) and it will increase the machines shutdown time immensely.

Categories: Tips Tags: ,

Exchange 2003: Switch off NDR

October 20th, 2009 No comments

Want to turn off Non-Delivery Reports (NDR) in Exchange 2o03? You can find the setting in the following location:

Exchange System Manager> Global Settings> Internet Message Format. Double click on ‘Default’ (or whatever you have listed there)> Advanced tab> Uncheck ‘Allow non-delivery reports’.


Categories: Tips Tags: , ,

Windows Exchange: Spam & SPF records

October 5th, 2009 No comments

Just thought I’d do a quick post on one of two things I’ve just been looking at for Windows Exchange 2003; SPF records.

Sender Policy Framework (SPF) is basically an email validation system used to prevent spam. If you own a domain, you create an SPF record in your DNS records detailing which machines are allowed to send mail as your domain (i.e. your exchange server and possibly your ISP too). Then, when an email server receives an email, it can check on the DNS records of the domain and see if the computer who sent the email is really allowed to send email as that domain. If it’s not, the the email will be marked as spam. It will help cut down the amount of spam you get that’s addresses from yourself!

If you need help creating an SPF record, check out this excellent SPF wizard.

I’ve also just been looking at Windows Exchange Server 2003 possibly being an open relay. Will do a post on that soon.

Categories: Tips Tags: , , , ,