Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic MailSuite

 AfterLogic Forum : AfterLogic MailSuite
Subject Topic: Ubuntu Install Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
kiwidigital
Newbie
Newbie
Avatar

Joined: 03 February 2009
Location: China
Online Status: Offline
Posts: 3
Posted: 03 February 2009 at 8:07pm | IP Logged Quote kiwidigital

I would like to install in Ubuntu 8.04LTS server, what are the minimum requirements (packages) to be able to do this?

I assume that I will need to comile from source.
So far, after following the instrctions from SourceForge I get


dmin@mail1:~/afterlogic-xmail-lite-3.2.0$ make -f Makefile.lnx
g++   -I. -D__UNIX__ -D__LINUX__ -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -DSYS_HAS_SENDFILE -DOPENSSL_NO_ENGINE=0 -O2 -c MkMachDep.cpp
g++ -o MailRoot/bin/MkMachDep MkMachDep.o -lssl -lcrypto -ldl -lpthread
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [MailRoot/bin/MkMachDep] Error 1

Also, If I install Lite can I easily upgrade to Pro?

Regards.
Back to Top View kiwidigital's Profile Search for other posts by kiwidigital
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 February 2009 at 1:25am | IP Logged Quote Igor

The error message states that OpenSSL is not installed. In order to install it from repository, you should use the following command as super-user:
Code:
apt-get install openssl libssl-dev

If this doesn't work for you for some reason, you can compile OpenSSL from scratch according to the following article:

Installing OpenSSL on Ubuntu Linux

There is another option, you may convert binary RPM package to DEB format using alien utility, for example:

Code:
alien -k afterlogic-xmail-lite-3.2.1-1.i386.rpm

Then you'll need to install it as follows:

Code:
dpkg -i afterlogic-xmail-lite-3.2.1-1.i386.deb


Quote:
Also, If I install Lite can I easily upgrade to Pro?


Yes.

Regards,
Igor
Back to Top View Igor's Profile Search for other posts by Igor
 
kiwidigital
Newbie
Newbie
Avatar

Joined: 03 February 2009
Location: China
Online Status: Offline
Posts: 3
Posted: 04 February 2009 at 9:20pm | IP Logged Quote kiwidigital

Hi Igor,

I already had openssl installed so just had to add the libssl-dev to get it to compile.

Followed all the other steps and looking good until I try to login to the web site. I just get

    Connect() - Error: Can't connect to XMail Server


I checked the other post in this section and sure enough the xmail daemon is not running.
If I just run /etc/xmail start then the process simply hangs.
If I run as sudo, then it appears to work but no process.
So in to debug mode as per the post I ran

    sudo MAIL_ROOT=/var/MailRoot /var/MailRoot/bin/XMail -debug -Md >xmail.debug


The result of which is

    XMail 3.1.0-imap4-dk FING: Port=79, isDisabled=1, isLogged=0
    ErrCode   = -17
    ErrString = Unable to create directory


I also needed to create a user apache as the Ubuntu install create www-data as the apache user and added the apache user to the www-data group.

Regards,
Derek.
Back to Top View kiwidigital's Profile Search for other posts by kiwidigital
 
kiwidigital
Newbie
Newbie
Avatar

Joined: 03 February 2009
Location: China
Online Status: Offline
Posts: 3
Posted: 11 February 2009 at 11:53pm | IP Logged Quote kiwidigital

Any more information on this issue???
Back to Top View kiwidigital's Profile Search for other posts by kiwidigital
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 12 February 2009 at 1:10am | IP Logged Quote Igor

Before you start XMail from any low-privelegied user (e.g. - Apache), /var/MailRoot/spool folder must be cleared from all content except for "local" and "temp" folders. Also you may need to clear MX cache directory: /var/MailRoot/dnscache/mx.

These groups of folders must be created during startup of AfterLogic XMail Server with the same rights as for system user from whom mail server works (apache/apache).

Actually, it's not necessary to add apache user, you may use www-data user/group, just modify server.tab file and specify user and group you need. Make sure this user has write permissions for all files and folders under MailRoot directory.

Regards,
Igor
Back to Top View Igor's Profile Search for other posts by Igor
 
james118
Newbie
Newbie


Joined: 04 April 2009
Online Status: Offline
Posts: 2
Posted: 04 April 2009 at 4:14am | IP Logged Quote james118

Hi,

I have the same problem I would like to install the server on ubuntu 8.10 server edition.

I used alien to make the rpm into a deb file but it didnt have scripts to install so i used the --scripts command to make it work.

Then i used dpkg to install it. but it said invalid user apache:apache

What should i do?

And if possible could i have a ready made copy of the .deb version (that has been created correctly!)

so far i have been very pleased with your software (I have used mailbee lite on windows)

I wouldent want my faith in you to fail.

Thanks

Back to Top View james118's Profile Search for other posts by james118
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 April 2009 at 8:57am | IP Logged Quote Igor

Currently, we cannot guarantee that the package for RPM-based distribution will work just fine on DEB-based distribution if XMail Server was converted, not compiled from source as the package structure may be different, especially regarding runlevel-based scripts. However, we have an experience of running XMail Server on both Debian 5.* and Ubuntu 8.*.

With regard to the issue you've encountered, please make sure you have specified the proper user/group in server.tab file ("User" and "Group" values respectively), they should be the same as the system user/group Apache is running under. As far as I can tell, "www-user" account is used instead of "apache" in Ubuntu Linux. Please let us know if this helps. By the way, are you trying to run Lite or Pro version of AfterLogic XMail Server?

We're going to release a new version of XMail Server within a few days, it will have totally new binary installer which automatically recognizes many popular Linux distributions (including both DEB-based and RPM-based of course). I am going to test it personally on both Ubuntu 8.10 and Debian 5.

NB: Please note that the forum is a community resource, requests submitted via forum are not guaranteed to be answered by our support staff. If you need help from AfterLogic Support Team, we recommend using our Helpdesk instead.

Regards,
Igor
Back to Top View Igor's Profile Search for other posts by Igor
 
james118
Newbie
Newbie


Joined: 04 April 2009
Online Status: Offline
Posts: 2
Posted: 04 April 2009 at 9:25am | IP Logged Quote james118

Thanks for the reply.

To avoid the hassle i think i will wait for the new version that has a deb package.

I am trying to use the lite version.
Back to Top View james118's Profile Search for other posts by james118
 

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