Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: IP Address Change cant connect to server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
thampson
Newbie
Newbie
Avatar

Joined: 15 May 2015
Location: Australia
Online Status: Offline
Posts: 2
Posted: 15 May 2015 at 6:51am | IP Logged Quote thampson

I am running version 7.3.0.3 of the Webmail LIte on Centos 6.6. I have a mail server on a separate physical server.

I recently had to change the IP address of the mail server from 192.168.200.40 to 192.168.200.30.

I went into the Admin Panel and changed the default domain settings for incoming mail and outgoing mail to 192.168.200.30. These changes are saved and reflected in the settings.xml file

<-- snip -->
<WebMail>
               <AllowWebMail>On</AllowWebMail>
               <IncomingMailProtocol>IMAP4</IncomingMailProtocol>
               <IncomingMailServer>192.168.200.30</IncomingMailServer>
               <IncomingMailPort>143</IncomingMailPort>
               <IncomingMailUseSSL>On</IncomingMailUseSSL>
               <OutgoingMailServer>192.168.200.30</OutgoingMailServer>
               <OutgoingMailPort>25</OutgoingMailPort>
               <OutgoingMailAuth>AuthCurrentUser</OutgoingMailAuth>
<-- snip -->

I have restarted the httpd service to reload the config

I get the error "Error while connecting to mail server" when I try to log into the webmail webpage.

I enabled debug logging in the admin panel and get the following

<-- snip -->
Debug Output
IMAP[NOTICE]: exception 'MailSo\Net\Exceptions\SocketCanNotConnectToHostException' with message 'Can't connect to host "192.168.200.40:143"' in /var/www/webmail/libraries/MailSo/Net/NetClient.php:220

<-- snip -->

So it seems that it still trying to connect to the old mail IP address instead of the new IP address. I ahve tried this several times making sure I save the config, its visible in the settings.xml file and I restart the httpd service, clear the debug log but IM still getting the same error.

Is there anywhere else I need to update the IP address of the mail server ?

Thank for any help

-todd-
Back to Top View thampson's Profile Search for other posts by thampson
 
Raymond
AfterLogic Support
AfterLogic Support


Joined: 14 April 2015
Online Status: Offline
Posts: 9
Posted: 15 May 2015 at 7:06am | IP Logged Quote Raymond

You need to update MySQL database table awm_accounts and set mail_inc_host and mail_out_host fields for all the accounts so that those reflect correct mailserver hostname or IP address.

Regards Andrew
AfterLogic Support
Back to Top View Raymond's Profile Search for other posts by Raymond
 
thampson
Newbie
Newbie
Avatar

Joined: 15 May 2015
Location: Australia
Online Status: Offline
Posts: 2
Posted: 15 May 2015 at 7:46am | IP Logged Quote thampson

Andrew,

Thank you very much for the fast reply. I updated the fields directly in the MySQL table as you suggested and it worked first go.

Much appreciated ...:)

regards
-todd-
Back to Top View thampson's Profile Search for other posts by thampson
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide