April 11, 2007

 ClamD startup errors

After restarting @Mail via the sysv init, or init.d, you may have some errors with the clamdsocket not being able to connect. It looks like this:

malware acl condition: clamd: unable to connect to UNIX socket /usr/local/atmail/av/clamdsocket (Connection refused)

This may be caused by a stale clamd socket not being deleted. To fix, you can go through the following steps:

(more...)


Filed under: Anti-Virus, Linux version — info @ 11:44 pm

 

April 4, 2007

 High-traffic @Mail SMTP Setup

For high-traffic installations of @Mail (installation that get more than 5 messages a second; 300 a minute), the SMTP processes can be slow. You may decide to use an external Spam-filtering/Antivirus machine; if so, we recommend that you implement Exim via the following steps:Streamline Exim:

- open up your /usr/local/atmail/mailserver/configure file;

- add the following line at the top:

queue_only

- save changes, then find the following line:

timeout_frozen_after = 7d

- change this to:

timeout_frozen_after = 2d

- save changes, then go to the WebAdmin.

- in WebAdmin > Services > SMTP Settings, set "Max Queue Processes" to "1"

- afterwards, set "Remote Parallel Processes" to "1"

- turn off AV in Filters > Antivirus Settings

- turn off SpamAssassin in Filters > Anti-Spam Settings

- kill all Exim processes, and start it via the following command:

% killall -9 exim
% /usr/local/atmail/mailserver/bin/exim -bd -q15m

Put the Exim db directory in a Ramdisk:

- execute the following in the terminal:

% mount -t tmpfs /dev/shm /usr/local/atmail/mailserver/spool/db/

- verify the permissions:

% chown -R atmail /usr/local/atmail/mailserver/spool/db

This will then create a mount on the db directory via the Virtual Memory mount; ultimately making access times faster.

Miscellany:

- it is generally best to have Exim and MySQL reside on the same server;

- you can further improve the performance by a cronjob-run Exim -q implementation:

--snip--

#!/usr/bin/perl

my $smtp = `ps auxww | grep "exim -q"`;

if(!$smtp) {
print "SMTP queue running...n";
system("/usr/local/atmail/mailserver/bin/exim -q");
}

--snip--

- benchmarks have been run for this implementation on a 64-bit 1.8 Ghz Core 2 machine, 2 GB of RAM, 7200 RPM IDE HD. Peaks have reached 4,000 messages and 20,000 connections a minute. Performance averaged at 50 messages a second.


Filed under: Multiserver, Linux version — info @ 7:10 am