Innovators in Mail server, Webmail and appliance solutions

 

March 31, 2005

 Restrict WebAdmin access to specific IP-addresses

If you want to restrict WebAdmin access to specified IP addresses, you can do the following:

- open up your httpd.conf file (commonly in /etc/httpd/conf/httpd.conf)
- add the following line at the bottom:

Options ExecCGI
AllowOverride All
Order deny,allow
Deny from all
Allow from yourdomain.com

- replace yourdomain.com with the IP/domain you want to allow.
- restart Apache:

# /etc/init.d/httpd restart

The IP/host you specified will now have exclusive access to the WebAdmin.


Filed under: OS — John Contad @ 4:16 am

 

 MySQL Error: “Can’t read dir of /root/tmp/”

When you install MySQL for @Mail, and you get the following error when starting the MySQL service:

/usr/sbin/mysqld: Can't read dir of '/root/tmp/'

This basically means that your systems $TMPDIR definition is set to the root directory. To fix, just do the following:

% export TMPDIR=/tmp/

This will then set the TMPDIR to the appropriate directory. Afterwards, try restarting [mysqld] again.


Filed under: Database — John Contad @ 2:54 am

 

March 24, 2005

 “lib-foo.so.12: cannot open shared object fi

When you recieve the following (or something similar) when installing @Mail:

libmysqlclient.so.12: cannot open shared object file: No such file or directory

This basically means that yur system, or compiler cannot find the appropriate library it is referring to. So, you can do either of the following:

1.) If the file does not exist in your filesystem, install the appropriate packages (MySQL-client-4.1.7.rpm, in this case):

% rpm -Uvh MySQL-client-4.1.7.rpm

2.) If the file exists, create a symlink from the file to your /usr/lib directory:

% ln -s /usr/lib/mysql/libmysqlclient.so /usr/lib/libmysqlclient.so.12

3.) Alternatively, add the path to the library in your /etc/ld.so.conf file. Then, run ldconfig:

% ldconfig -v

Afterwards, try reinstalling @Mail.


Filed under: OS — John Contad @ 6:23 am

 

 iconv.h Exim build errors on HP-UX

When building Exim on a HP-UX system, and you recieve the following error:

>/usr/ccs/bin/ld: Unsatisfied symbols:
>   libiconv (first referenced in java/parse.o) (code)
>   libiconv_open (first referenced in java/parse.o) (code)
>   libiconv_close (first referenced in java/parse.o) (code)
>collect2: ld returned 1 exit status

This basically means that your GCC installation is using the HP-UX native conv library, which then collides with the GCC iconv.h file.

This is easy to fix though. Just do the following:

- open up /usr/local/atmail/webmail/libs/src/exim-4.43/Local/Makefile
- add the following:

HAVE_ICONV=yes
CFLAGS=-O -I/usr/local/include
EXTRALIBS_EXIM=-L/usr/local/lib -liconv

(Where /usr/local/include and /usr/local/lib equate to your GCC paths)

- try to build Exim again:

% make
% make install

This should then build your Exim installation properly, sans errors.


Filed under: Exim — John Contad @ 6:22 am

 

March 4, 2005

 Force start-page to open on login

Question:

How do I enable @Mail to always show the start-page when users login via the Advanced interface? I would like the quota to be displayed by default when users login.

Answer:

A simple modification can be made, edit the webmail/atmail.php file, locate the code:

if ($atmail->StartPage)
$var['startpage'] = "html/$atmail->Language/{$var['logintype']}/emailframe.html";
else
$var['startpage'] = "html/$atmail->Language/{$var['logintype']}/startframe.html";

Replace with:

$var['startpage'] = "html/$atmail->Language/{$var['logintype']}/emailframe.html";
-

Filed under: Customization, PHP version — info @ 4:15 pm

 

March 3, 2005

 Updating ClamAV

Sometimes, ClamAV will have a new version out, and will completely discard support for older versions. At these instances, you will need to update your ClamAV software.Need:

- a backup of your clamav.conf and freshclam.conf file;
- zlib-devel, or libz-devel libraries;
- a post-2.95 version of GCC;

(more...)


Filed under: Anti-Virus — info @ 6:00 am