September 25, 2007

 smtp_accept_max_per_host on a per-IP basis

Should you have a few mail relaying machines/servers that need to be exempt from the smtp_accept_max_per_host value, just do the following:

- open up the /usr/local/atmail/mailserver/configure file

- find:

#
# Allow only X connections per IP to the mail-server, spam trap
smtp_accept_max_per_host = 5
#

- comment it all out;

- below the line, add:

smtp_accept_max_per_host =
${lookup{$sender_host_address}lsearch{/usr/local/atmail/mailserver/whitelist}
{$value}
{
${lookup{${mask:$sender_host_address/24}}lsearch*{/usr/local/atmail/mailserver/whitelist}}
}}

- create a file called /usr/local/atmail/mailserver/whitelist

- in the file, create the following lines:

192.168.0.0/24: 10
192.168.4.5: 15
*: 5

Where the first item is the IP address/block, punctuated with a colon; the second value being the smtp_accept_max_per_host value you want to assign.

Remember to add a wildcard (*) value to handle all other IP addresses.

- open up /usr/local/atmail/webmnail/libs/Atmail/Exim_Config.php

- find:

smtp_accept_max_per_host = {$pref['smtp_max_connections_perip']}

- change this to:

# smtp_accept_max_per_host = {$pref['smtp_max_connections_perip']}

- restart Apache and @Mail afterwards


Filed under: Exim — John Contad @ 5:41 am

 

September 7, 2007

 Tutorial on installing the latest @Mail 5.X version

To install the latest @Mail patch download a copy from the client-login page - http://atmail.com/clientlogin.php

To see the changes in the latest patch visit:http://support.atmail.com/changelog.html

Within the instructions replace $version with the current version of @Mail. These are generic instructions to upgrade any previous release in @Mail 5.X to the latest version.

Pre-upgrade:

Backup your existing atmail directory and mysqldump the database for @Mail. This is required before you upgrade in case you need to rollback any changes, do not skip this step. Any customizations to the PHP scripts or HTML changes, must be backed up. The upgrade process will replace any changes, and these modifications must be merged in "post" upgrade.
1: Extract the patch out into the directory for @Mail:

Server-mode installs:

Extract the files:

tar xfvz atmailpatch$version-server.tgz -C /usr/local/

Webmail client only:

tar xfvz atmailpatch$version-client.tgz -C /var/www/html/atmail/

Where /var/www/html/atmail/ is the base directory of your installation ( check the showmail.php file exists in this directory, if so you have the right one )

2: Update the Config.php settings for $version

Visit the Webadmin of @Mail and append /upgrade/ in the URL. This will guide you through the web-based upgrade utility:

e.g

http://server.com/mail/webadmin/upgrade/

Where server.com/mail/webadmin/ is the URL of the @Mail Webadmin, and append /upgrade/ to the URL

3: If running the server-mode of @Mail run the additional command-line upgrade utility

cd /usr/local/atmail/webmail/webadmin/upgrade/
php upgrade-server.php [prevversion]

Where [prevversion] is the previous version of @Mail installed.

This script will update the runtime Mail server of @Mail if running the server-mode.

4: Congratulations, the upgrade is now complete. You can now reload the Webmail interface of @Mail and begin using the latest release!


Filed under: Installation, Linux version — info @ 2:37 pm