Backup Exec, Volume Shadow Copy, Permissions etc


Ok, long story short, it all started with a Backup Exec 12.0 job suddenly failing.. One part of the whole job is backuping Exchange Server 2007 using a remote agent and the exchange server. In the job log of Backup Exec, i got a ‘Final error: 0xe000fed1 – A failure occurred querying the Writer status. ‘ ok, initially i thought, this is nothing new.. querying the writer status and seeing what this one’s reporting .. Logo_winlogo

Continue reading

Exchange 2007 – Enumerate all public folders and their email addresses using Exchange Management Shell (EMS)

Ever wanted to enumerate all Public Folders and their email addresses? here’s a way to do this using Microsoft Exchange Management Shell (EMS)

Get-Mailpublicfolder | select name , alias ,EmailAddresses | foreach {
"Name: "+$_.name
"Alias: "+$_.alias
 
$_.EmailAddresses | foreach {
if($_.SmtpAddress){
if($_.IsPrimaryAddress){
"Primary SmtpAddress: $($_.SmtpAddress)"
} else {
"SmtpAddress: $($_.SmtpAddress)"
}
}
}
 
write-output ""
}

or redirect the output into a file for analysis, whatever..

Get-Mailpublicfolder | select name , alias ,EmailAddresses | foreach {
"Name: "+$_.name
"Alias: "+$_.alias
 
$_.EmailAddresses | foreach {
if($_.SmtpAddress){
if($_.IsPrimaryAddress){
"Primary SmtpAddress: $($_.SmtpAddress)"
} else {
"SmtpAddress: $($_.SmtpAddress)"
}
}
}
 
write-output ""
} | out-file -filepath c:\publicFolders.txt -encoding ASCII

Exchange 2007 – Get Email Addresses for each Mailbox using Exchange Management Shell (EMS)

Ever needed to export the list of mailbox of your Microsoft Exchange 2007 with all alias and all the smtp addresses? Try this with this command:

Get-Mailbox | select name , alias ,EmailAddresses | foreach {
"Name: "+$_.name
"Alias: "+$_.alias
 
$_.EmailAddresses | foreach {
if($_.SmtpAddress){
if($_.IsPrimaryAddress){
"Primary SmtpAddress: $($_.SmtpAddress)"
} else {
"SmtpAddress: $($_.SmtpAddress)"
}
}
}
 
write-output ""
} > c:\smtp.txt

or use the out-file cmdlet..

######### Using Out-File Cmdlet ############
 
Get-Mailbox | select name , alias ,EmailAddresses | foreach {
"Name: "+$_.name
"Alias: "+$_.alias
 
$_.EmailAddresses | foreach {
if($_.SmtpAddress){
if($_.IsPrimaryAddress){
"Primary SmtpAddress: $($_.SmtpAddress)"
} else {
"SmtpAddress: $($_.SmtpAddress)"
}
}
}
write-output ""
} | out-file -filepath c:\smtp.txt -encoding ASCII

Remove / Uninstall Exchange – This server is the Recipient Update Server RUS for the domain

When you try to uninstall or remove Microsoft Exchange 2003, you’re getting the error message:

Microsoft Exchange Installation Wizard

The component Microsoft Exchange Messaging and Collaboriation Server cannot be assigned the action “Remove” because:

– This server is the Recipient Update Server for the domain “someDomain.tld”. You cannot uninstall this server until you select a different Recipient Update Server for this domain.

Exchange_2003_removal_RUS_assigned

Exchange_2003_removal_RUS_assigned

Continue reading

Microsoft Exchange Server 2007 – 530 5.7.1 Client was not authenticated – Solution

If you install Microsoft Exchange Server out of the box and you get the following error message when trying to receive an email:

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
 test@christiano.ch
SMTP error from remote mail server after MAIL FROM:<sunny@christiano.ch> SIZE=6841:
host xyz.christiano.ch [194.123.18.170]: 530 5.7.1 Client was not authenticated

Continue reading

Missing Microsoft Exchange 2007 Anti Spam Agents? Here’s the how to: Install anti-spam agents on Hub Transport server

If you’re using Exchange Server 2007 in a topology with an Edge Transport server, the anti-spam agents – Connection Filtering, Content Filter, Sender ID, Sender Filter, Recipient Filter, and Protocol Analysis – are installed on the Edge server. You do not need these agents installed on the Hub server(s).

In environments without an Edge server role, these need to be installed manually on the Hub Transport server(s).

Continue reading

Microsoft Exchange 2007 Catch all Transport Agent

This is a little tutorial about how to install a Microsoft Exchange Catch All Agent / Mailbox. ‘Catch all’ is the ability of an SMTP server to redirect messages to non-existing recipients to a specific address. For example, your domain is like @christiano.ch. Someone sends an email to sunny@christiano.ch and you don’t have a mailbox with the corresponding email address, the email can’t be delivered. The sender get’s a notification (NDR – Non Delivery Receipt,  STMP RFC Error Code 550) similiar to this one:

Continue reading