WebsitePanel error – Unable to create email alias in SmarterMail – Could not check whether mail alias exists

You may receive an error “Could not check whether mail alias exists” while creating email alias from WebsitePanel. The following is the complete error message:

WHMCS Complete Billing and Support

Page URL: http://IP:9001/Default.aspx?pid=SpaceMailForwardings&mid=86&ctl=edit_item&SpaceID=50
Logged User: myuser
Work on Behalf: myuser
Hosting Space: 50
Stack Trace: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error executing 'ADD' task on 'mail@mydomain.com' MAIL_FORWARDING ---> System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Could not check whether mail alias exists ---> Object reference not set to an instance of an object.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebsitePanel.Providers.Mail.MailServer.MailAliasExists(String mailAliasName)
at WebsitePanel.EnterpriseServer.MailServerController.AddMailForwarding(MailAlias item)
--- End of inner exception stack trace ---
at WebsitePanel.EnterpriseServer.MailServerController.AddMailForwarding(MailAlias item)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at WebsitePanel.EnterpriseServer.esMailServers.AddMailForwarding(MailAlias item)
at WebsitePanel.Portal.MailForwardingsEditForwarding.SaveItem()

I have noticed this error while using SmarterMail with WebsitePanel. If you upgrade SmarterMail from the old version (5.5, 6.0 etc.) to latest version, you may receive the above error while creating an email alias.

Solution to resolve this problem:

To resolve this problem, you will have to edit the email provider from WebsitePanel database. When you upgrade SmarterMail version, there is no way you can change the provider from WebsitePanel hence you will have to edit it from WebsitePanel database directly. Before you perform any task on your database, make sure that you take the full backup of your WebsitePanel database.

Once you take the backup, go to “providers” table in your database and find the providerID for your installed SmarterMail version. Now open your “services” table, find your existing SmarterMail service (let’s say SmarterMail 5.x service), and change the description to Smartermail x.x (matching with new providerID) and update the providerID to the one above.

This should fix your problem.

Kailash Aghera

Posted in WebsitePanel and tagged , , .

Leave a Reply

Your email address will not be published. Required fields are marked *