Export Mailbox ,password and email adress to file

Discussion forum for Enterprise Edition.
Post Reply
Posts: 2
Joined: Tue Jan 17, 2017 12:10 pm

Export Mailbox ,password and email adress to file

Post by Stratoliner » Mon May 18, 2020 10:14 am

How can I export mailbox ,password and email adress to file?
The management console has export to file, but does not export email addresses assigned to mailbox :(
mail.png (25.2 KiB) Viewed 2986 times

Site Admin
Posts: 9455
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: Export Mailbox ,password and email adress to file

Post by MailEnable-Ian » Mon May 25, 2020 12:43 am


There is no option to export the addresses in the admin console. You are best using a Power Shell script using the MailEnable API. A script example can be found below. You can add/edit the script to add other values to export. I.e: mailbox name, password etc.

Code: Select all

# Ensure the snapin module is loaded (if it is not already)
if ((Get-PSSnapin -Name MailEnable.Provision.Command -ErrorAction SilentlyContinue) -eq $null)
    Add-PSSnapin MailEnable.Provision.Command

# Get the list of mailboxes in the postoffice
$lstMailboxes = Get-MailEnableMailbox -Postoffice "example.com"

ForEach($oMailbox in $lstMailboxes)
    $oItem = Get-MailEnableAddressMap -Postoffice "example.com" -Mailbox $oMailbox.MailboxName
    Out-File -FilePath c:\psout.txt -NoClobber -Append -InputObject $oItem.SourceAddress
Powershell reference guide: https://www.mailenable.com/developers/MailEnable%20PowerShell%20Reference.pdf

Ian Margarone
MailEnable Support

Post Reply