January 15, 2009

 Using SMTP Auth with the Exim Smarthost

Creating smarthosts with Exim is easy, but you may want to enable SMTP authentication during transactions for additional security. Just go through the following steps:

1.) Open up your /usr/local/atmail/mailserver/configure file, and find:

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

2.) Comment out this line so it looks like:

#dnslookup:
# driver = dnslookup
# domains = ! +local_domains
# transport = remote_smtp
# ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
# no_more

3.) Add this line below:

divertnonlocal:
driver = manualroute
domains = ! +local_domains
transport = remote_smtp
route_list = * 192.168.0.6
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

4.) Replace "192.168.0.6" with your SMTP relay host (your smarthost destination).

5.) Find this line afterwards:

remote_smtp:
driver = smtp

6.) Change it to:

remote_smtp:
driver = smtp
 hosts_require_auth = 192.168.0.6
hosts_try_auth = 192.168.0.6

7.) Change "192.168.0.6" to your smarthost server.

8.) At the bottom of the file, find this line:

begin authenticators

9.) Below this, add:

login:
driver = plaintext
public_name = LOGIN
(more...)


Filed under: Uncategorized, Exim, Linux version, Atmail 5, Atmail 6 — John Contad @ 3:40 pm

 

January 14, 2009

 Upgrading from Atmail Open to Atmail Commercial

Ok so you've tried Atmail Open and liked the experience but now want the full Atmail experience and have purchased the commercial version. Now you ask "how can I upgrade from Atmail Open to Atmail commercial and not loose all my users' data?" Well follow these simple steps and you'll quickly be on your way to running Atmail.

First of all you will need to make sure you are running the lastest version of Atmail Open so that you have the up to date version of the upgrade script. Then if you haven't already you will need to purchase and download the commercial version. You will then need to extract the files into place. Where you extract the files will depend on what version you purchased, server+client or client only.

If you have purchased the server+client version then extract the tgz into /usr/local, this will extract out the Atmail files under /usr/local/atmail.

If you have purchased the client only version then extract the files into your existing Atmail Open directory.

Once the files are extracted you need to run the upgrade2atmail.php script found in your Atmail Open directory, this script will make all necessary modifications to your Atmail Open database so it can be used by the commercial version:

# cd /path/to/atmailopen
# php upgrade2atmail.php

NB: This script can only be run from the command line and should only be run once you are ready to install Atmail commercial version.

Once the script has completed you should run the relevant installer for the version you purchased. If you purchased the client only version you may need to remove the .htaccess file from the install/ directory before you can run the web based installer.

Webmail client install instructions

Server version install instruction

Vital!: When you get to the database set up section be sure to select or enter the name of the database used by Atmail Open so that all your user info will be available

Migrating users (Server Version only)

If you are upgrading to the full Atmail server version then you will need to migrate your users and their email into the Atmail system. How to achieve this depends on the formats used by the old mail server. You will find info on migrating from many different mail systems here on the KB under the Migration category and also several migrate scripts can be found in your /usr/local/atmail/webmail/modules directory.


Filed under: Migration, Atmail 5 — Brad Kowalczyk @ 5:01 pm

 

January 13, 2009

 Creating Banners For The User Email Window.

You may wish to add banners to the AtMail interface - for advertisement, or branding purposes. Here is an easy way to do so, that only involves replacing a few files for the interface.

1.) Download header-mod.tgz from: http://atmail.com/kb/attach/header-mod.tgz

2.) Backup your current webmail directory:

% cp -R /usr/local/atmail/webmail /usr/local/atmail/webmail.backup

3.) Unpack the file, then confirm permissions:

% tar xvfz header-mod.tgz -C /usr/local/atmail/webmail/
% chown -R [apache user] /usr/local/atmail/webmail/

Where [apache user] is the Apache user. If using the Server version, this will be "atmail".

4.) You can then alter the /usr/local/atmail/webmail/webmailheader.php file, to reflect your desired banner code. The default in the file is:

picture-7.png

5.) You can then alter the img tag to reflect the location of your banner. The location is relative to /usr/local/atmail/webmail/ - so a setting of "imgs/banner.png" will be for: /usr/local/atmail/webmail/imgs/banner.png

6.) Save your settings. This will then display your modifications at the top of the user email window after login.

A sample page may look like:

sample.png


Filed under: Customization, Interface, Atmail 5 — John Contad @ 8:04 pm

 

January 10, 2009

 libidn.so: No such file or directory

Under a fresh installation of RedHat Fedora Core3 ( FC3 ) , a compile of the Clam/@Mail Anti-virus daemon can fail with the following:

gcc: /usr/lib/libidn.so: No such file or directory
make[2]: *** [libclamav.la] Error 1
make[2]: Leaving directory `/usr/local/atmail/webmail/libs/src/clamav/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory

Basically this is an error with the library pathname. To solve, just create a symbolic link with the following:

root# ln -s /usr/lib/libidn.so.11.4.6 /usr/lib/libidn.so

Next, recompile and the Clam installation will be successful.


Filed under: Anti-Virus, Atmail 5 — info @ 11:42 am

 

January 4, 2009

 Installing Atmail mail-server under Ubuntu - Webmail, SMTP/POP3/IMAP, Calendaring, Push and more

The following is a guide to setting up Atmail server in an Ubuntu environment.

First you must become root and install dependencies:

# sudo /bin/bash
(enter sudo password and press enter)
# apt-get update
# apt-get install apache2 php5 libapache2-mod-php5 php5-cli mysql-server mysql-client

Download Atmail php5 server from the atmail website http://www.atmail.com (this will need to be purchased, but an evaluation version can be acquired from here).

Move the downloaded file into /usr/local/

# mv atmailphp5server.tgz /usr/local/

Navigate to /usr/local/

# cd /usr/local

Extract the tarball

# tar xzvf atmailphp5server.tgz

As the tarball extracts, a list of files being extracted will scroll down the screen, wait until you are presented with a prompt, and run the following commands.

# cd atmail
# chmod +x ./server-install.php
# php ./server-install.php

server-install.php

From here, the install is very simple, following the prompts and using default values should lead to a successful installation.
Note that the value inside [ ] square brackets is the default value, you don't need to re-enter it, you can just press enter/return.

When asked if you wish to install all missing dependencies automatically, choose YES.

If you get a message as below:

Simply re-run the server installation with the following command:

# php ./server-install.php

You will need to enter the mysql root password when prompted.

When asked:
"Select the database to use or enter the name of a new database to create:", Enter the name "atmail" as your new database and press enter.

You should get a message that says "Atmail tables successfully created. MySQL setup complete!"

Enable the Groupware Module if you wish, this will enable calendar, address-book and task data sharing.

When Asked:
"Specify the binary location of your Webserver:"
Use default value (/usr/sbin/apache2)

Allow the atmail install to configure your httpd.conf file automatically and restart httpd.

You are now at the point in your Atmail installation where you need to specify a domain name for which you wish to host email accounts. You can also specify multiple domains separated by a comma, for this demonstration I will be setting up domain.com

I entered domain.com as the domain and admin@domain.com as the admin email address, but you should enter your domain and real administrator email address in your install.

Use default values to allow atmail to automatically setup SMTP.

Use default values to allow atmail to automatically setup POP3/IMAP server.
(This will take about 5 minutes, please be patient)

Ensure that you get a message saying:

"@Mail POP3/IMAP Server Installation: Successful
Compile & installation complete"

Use default settings to allow Atmail to install Spamassassin from source.
Ensure you get a message saying:

SpamAssassin Installation: SUCCESSFUL
Now use default settings to install the anti-virus engine from source,

Ensure you get a message saying:

@Mail AV Installation: SUCCESSFUL
Compile & Installation complete

Allow the Atmail installation script to run diagnostic tests, this is a good way to troubleshoot if your Atmail installation did not go as planned.

Should you have any other trouble with this installation, contact Atmail support.

Your Atmail installation should now be complete.

Navigate to http://localhost/mail to view your new Atmail messaging platform login screen,

and http://localhost/mail/webadmin to view and modify your configuration settings.

NOTE: You should read the red text and secure webadmin immediately with a password.

Congratulations on your new, fully functional Atmail server!


Filed under: Installation, Atmail 5 — Luke @ 9:33 pm

 

January 1, 2009

 Auto-run ClamAV if found inactive

ClamAV, at times, fails and puts mail delivery and the processing of emails in the spool to a stop. This can be avoided by using ClamAV with supervise, a Unix tool that comes with the daemontools (http://cr.yp.to/daemontools.html) package, which basically checks if a service is running, then re-runs it if found inactive.
Implementing supervise with ClamAV is pretty straightforward. Just go through the following steps:

(more...)


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

 

 Upgrading SpamAssassin

When you want to upgrade SpamAssassin 2.63 for @Mail to 3.0, keep in mind that the two versions have different SQL querying schemas. Also, you may need to take out some lines in the local.cf file, as many options have been deprecated.To upgrade your SpamAssassin installation, just run through the following steps:

(more...)


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

 

 Testing SpamAssassin

Should you want to see if your Spam filter is working, just send an email with the following string:

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

This is the GTUBE - the Generic Test for Unsolicited Bulk Email. If your spam filter supports it, the GTUBE provides a test by which you can verify that the filter is installed correctly and is detecting incoming spam, in a similar fashion to the EICAR anti-virus test file.


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

 

 Adding AV scanned in Message-header

Question:We are using @Mail in the mail-server mode with the AV scanner. We'd like all incoming messages that are clean via the AV scanner to append a header "X-Virus-Scanned: Clean" to each message in the users mailbox.

Answer:This is possible by editing the transport router in Exim to append the new header for each incoming message.

(more...)


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

 

 Disable SpamAssassin filtering for some users or d

Should you want to disable SpamAssassin for some domains or users, just do the following:- open up your /usr/local/atmail/mailserver/configure
- find the following lines:

domains = ${lookup mysql {MYSQL_CHECKSPAM}{$value}}

- replace this with:

domains = lsearch;/usr/local/atmail/mailserver/domains

- create a file /usr/local/atmail/mailserver/domains, and put your desired domains to enable SpamAssassin with, in the following format:

domain1.com
domain2.com

- restart Exim:

% /etc/init.d/atmailserver restart

This will then limit the SpamAssassin filtering to the users in the domains listed.


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