Skip to content

Migrating from legacy mail system ?

There are lot of tools which allow you to migrate from older mail system to Exchange. Most of them are not free, but there is 1 tool which i found very useful and it’s free.

Introducing Imapsync.

This is a Linux opensource tool, you need to download it, untar and install it.

The command will look like this:

imapsync --host1 --user1 --password1 Myp@ssw0rd -authmech1 LOGIN --host2 --user2 --password2 Dtbqzgd6 -authmech2 PLAIN

to capture the log file :

imapsync --host1 --user1 --password1 Myp@ssw0rd -authmech1 LOGIN --host2 --user2 --password2 Dtbqzgd6 -authmech2 PLAIN >  log6 2>&1 &

host1,user1,password1,authmech1 are compulsory fields, they denote the source. host2,user2,password2,authmech2 denote the destination.

Take note that the destination authentication method is “Plain Text”, hence in Exchange you need to change the method(imap) to plain and not SSL or TLS. I just migrated 700 users from surgemail and for surgemail authentication method, it will be “Login”.

After running the command, the result will either be failed or passed, here some examples :

Example 1-Passed:

++++ Statistics
Transfer started on               : Sat Jun  1 16:45:36 2013
Transfer ended on                 : Sat Jun  1 17:48:17 2013
Transfer time                     : 3760.5 sec
Messages transferred              : 2049
Messages skipped                  : 0
Messages found duplicate on host1 : 0
Messages found duplicate on host2 : 0
Messages void (noheader) on host1 : 0
Messages void (noheader) on host2 : 0
Messages deleted on host1         : 0
Messages deleted on host2         : 0
Total bytes transferred           : 463829614 (442.34 MiB)
Total bytes duplicate host1       : 0 (0.00 KiB)
Total bytes duplicate host2       : 0 (0.00 KiB)
Total bytes skipped               : 0 (0.00 KiB)
Total bytes error                 : 0 (0.00 KiB)
Message rate                      : 0.5 messages/s
Average bandwidth rate            : 120.5 KiB/s
Reconnections to host1            : 0
Reconnections to host2            : 0
Memory consumption                : 295.6 MiB
Biggest message                   : 19460824 bytes
Initial difference host2 – host1  : -2049 messages, -463829614 bytes (-442.34 MiB)
Final   difference host2 – host1  : -11 messages, -103207319 bytes (-98.43 MiB)
Detected 0 errors

Example 2-Failed:

log57:Failure: error login on [] with user [] auth [LOGIN]: 2 NO login failed password wrong or not a valid user

Take note of the mentioned IP, the above example indicate the source ip, it could mean the password is wrong, the user dont exist or the account was suspended. Hence, please verify the source account.  If the ip is referring to the destination, check the account, unlock the password, reset the password if necessary.

That’s all for now, thanks for reading.

Exchange 2013 , POP , IMAP and SMTP

If you have problem sending mail for client who uses imap or pop , you need to configuring some changes on your Exchange 2013.

1: Select Client Proxy Connector and click on the Pencil


2:  Tick Exchange users check box and Click save.


3: Under scoping, notice the listening port is 465.

connector scope

4: In Outlook, select TLS and port will be 465

outlook advance

5: Click on Test setting. The result will show completed.


Exchange 2013 : Reset user password in ECP

Have you ever wanted to reset user password via ECP ? For Exchange 2010 and below, it is not possible, you have to login to server and do it.  But with Exchange 2013, you can reset user password via the browser, also known as EAC.

Let me introduce you the RBAC !

You heard of it, but have you ever use it? You should !

OK, let’s get started !

1:  Before you can add the “Reset Password” role, you need to install it. Let’s see if this role is installed by default :

Get-ManagementRole "reset password"
The operation couldn't be performed because object 'reset password' couldn't be found on ''.
    + CategoryInfo          : NotSpecified: (:) [Get-ManagementRole], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : F1EF706,Microsoft.Exchange.Management.RbacTasks.GetManagementRole

Notice by default, this role is not installed.  Let's install it now.


  • Launch Exchange Management shell.
  • Type Add-pssnapin microsoft* and hit enter.
  • Type Install-CannedRbacRoles and hit enter.
  • Type Install-CannedRbacRoleAssignments and hit enter.
  • Close and relaunch EMS.

3:  Let’s verify.

Get-ManagementRole “reset password”

Name                                                    RoleType
—-                                                        ——–
Reset Password                                ResetPassword

If you performed step 2 correctly, you should see the new role.

4:  Now, we would like to add resetpassword role to Help Desk.

New-ManagementRoleAssignment -SecurityGroup “Help Desk” -Role “Reset Password”

(you can do this in ECP too)

5:  Next, open the EAC. For example

6:  Click on permission, select a user and click edit.

7:  Viola !! You are done !