Category Archives: Exchange

How to Export Mailboxes with Exchange Server 2010

This i a Guide to export mailboxes from Exchange 2010 database to a pst files.
Frist, You will have to be SP3 intalled

  • grant de right: New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrador
  • Create a share with correct permissions \\server\pst
  • start the request: New-MailboxExportRequest -Mailbox name -FilePath \\server\pst\name.pst
  • check Status: Get-MailboxExportRequest
  • Delete the MailboxExportRequest: Get-MailboxExportRequest | where {$_.status -eq “Completed”}
    Facebooktwittergoogle_plusredditpinterestlinkedinmail
  • Read More ...

    Exchange 2010 Anti-Spam logs?

    To check the Anti-Spam logs on a Exchange 2010 server, you can do this:

    • The default logs files for the antispam agents are on: %exchangeinstallpath%TransportRoles\Logs\AgentLog
    • At this location you can see a lot of files (see the image)
    • logs1
    • on this files there are each email processed
    • for example in my domain “domain.com “:
    Facebooktwittergoogle_plusredditpinterestlinkedinmail

    Read More ...

    Adding Registered Block List (RBL) checking in Exchange 2010

    A usefull powershell command to add all of the most used black list servers:

    Add-IPBlockListProvider -Name bl.spamcop.net -LookupDomain bl.spamcop.net -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://www.spamcop.net/w3m?action=checkblock&ip={0} for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name dnsbl.sorbs.net -LookupDomain dnsbl.sorbs.net -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://www.au.sorbs.net/lookup.shtml for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name zen.spamhaus.org -LookupDomain zen.spamhaus.org -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://www.spamhaus.org/query/bl?ip={0} for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name cbl.abuseat.org -LookupDomain cbl.abuseat.org -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://cbl.abuseat.org/lookup.cgi?ip={0} for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name b.barracudacentral.org -LookupDomain b.barracudacentral.org -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://barracudacentral.org/lookups/ip-reputation for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name spam.dnsbl.sorbs.net -LookupDomain spam.dnsbl.sorbs.net -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://www.au.sorbs.net/lookup.shtml for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name spam.rbl.msrbl.net -LookupDomain spam.rbl.msrbl.net -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://www.msrbl.com/check?ip={0} for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name bl.spamcannibal.org -LookupDomain bl.spamcannibal.org -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://spamcannibal.org/cannibal.cgi for further information. This organization has no control over this RBL (Realtime Block List)."
    Add-IPBlockListProvider -Name psbl.surriel.com -LookupDomain psbl.surriel.com -Enabled $True -RejectionResponse "{1} has blocked your IP address ({0}) using the list '{2}'. Please see http://psbl.surriel.com/listing?ip={0} for further information. This organization has no control over this RBL (Realtime Block List)."
    
    Facebooktwittergoogle_plusredditpinterestlinkedinmail

    Read More ...

    Exchange: Send Out of Office notices more than one time per User

    when we activate the option out of office in exchange, only it allows us to send a mesage response by sender once the feature activated, sometimes it would be interesting to reset the counter of shipments (by user) to send the notice out of office again to the same sender.
    An elegant solution is:

    deactivate and reactivate the option of out of office by a task of powershell,

    for instance:

    ccreate a few scripts like this:

    roof.ps1

    Set-MailboxAutoReplyConfiguration mailbox1 -AutoReplyState Disabled;
    Set-MailboxAutoReplyConfiguration mailbox2 -AutoReplyState Disabled;
    Set-MailboxAutoReplyConfiguration mailbox3 -AutoReplyState Disabled;
    ....
    

    soof.ps1:

    Set-MailboxAutoReplyConfiguration mailbox1 -AutoReplyState Enabled;
    Set-MailboxAutoReplyConfiguration mailbox2 -AutoReplyState Enabled;
    Set-MailboxAutoReplyConfiguration mailbox3 -AutoReplyState Enabled;
    ....
    

    create 2 scheduled taks (wait 1 minute one to other) to execute ,you can configure the schedule like you want, ( each day, each week , each hour,…..)
    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    with the parameters for the first:
    -version 2.0 -command “. ‘c:\Exchange\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto;.\roof.ps1”
    with the parameters for the second:
    -version 2.0 -command “. ‘c:\Exchange\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto;.\soof.ps1”

    Facebooktwittergoogle_plusredditpinterestlinkedinmail

    Read More ...

    View exchange Mailbox Folders size

    A very useful command to see the sizes of the folders into a exchange mailbox:

    Get-MailboxFolderStatistics  [mailbox] | Select Name,FolderSize,ItemsinFolder | Sort-Object -Property FolderSize

    Facebooktwittergoogle_plusredditpinterestlinkedinmail

    Read More ...

    Categories

    Subscribe to my Newsletter