December 6, 2007

 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, Linux version — info @ 3:25 pm

 

 Keeping a process running even if it drops out

You might find yourself in the following dilemma; you're working on something via SSH, and it's a long process, and might be at risk of stopping, in case you log out.

Furthermore, you might have forgotten to nohup the process. In this case, this is what you should do:

(more...)


Filed under: OS, Linux version — info @ 3:17 pm

 

 Using yum without network access - CD only

When using CentOS, you may find yourself requiring to use the "yum" package manager, when you do not have Internet access, or your link to download packages is to slow.

(more...)


Filed under: Applications, Installation, OS, Linux version, PHP version — info @ 3:09 pm

 

 Creating Public Folders

When using the mail-server mode of @Mail, all messages are stored in "maildir" format on the system.

This creates the ability to share folders between other users, creating a "Public" folder feature where users can view/add/delete messages.

To implement, login to a local @Mail account where you want to share a specific folder.

(more...)


Filed under: Groupware, OS, Linux version — info @ 3:07 pm

 

 Converting SSL certificate into .pem format for POP3/IMAP

Question: I have an SSL certificate signed by Verisign for my SSL Webserver. I would like to use the same certificate for my POP3/IMAP server using @Mail via SSL.

How can I used the certificate files generated from my SSL provider? This is required so users will not receive a security popup message when connecting via SSL, since the connection will be trusted automatically.

Answer: Obtain the certficiate.key and certificate.crt files that are generated by your SSL provider, these can be used to create the .pem format the POP3/IMAP server require when running via SSL.

(more...)


Filed under: Encryption, Linux version — info @ 3:03 pm

 

 Excluding MySQL tables during mysqldump

Excluding MySQL tables is not included in some versions of MySQL. Here's a bash script that can do just that:

- create a file called mysqldump.sh

- in the file, put:

#!/bin/sh
for TABLE in $(echo "show tables" | mysql -u [mysqluser] -p[mysqlpassword] [atmaildatabase] | grep -v Tables_in_ | grep -v [Excluded Tables])
do
mysqldump -v --add-drop-table -u [mysqluser] -p[mysqlpassword] [atmaildatabase] ${TABLE} > [mysqldumpfile.sql]
done

(more...)


Filed under: Backup, Linux version — info @ 2:53 pm

 

 Having RBL checking on a per-domain basis

Some users expressed the need to have the RBL-checking done on a per-domain basis. This can be done by running through the following steps:

- locate the following line in your /usr/local/atmail/mailserver/configure file;

MYSQL_CATCHALL = select AliasTo from MailAliases where AliasName='$domain'

- add the following below:

MYSQL_RBL = select Hostname from Domains where RBL='1'

(more...)


Filed under: Anti-Spam, Linux version — info @ 2:45 pm

 

 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 @ 2:36 pm

 

 Enabling Greylists in Exim

To enable Greylists in Exim:

- open up /usr/local/atmail/mailserver/configure, and find this line:

hide mysql_servers = localhost/atmail/root/

- add the following below:

.include /usr/local/atmail/mailserver/greylistconf

- find this line:

begin acl

(more...)


Filed under: Anti-Spam, Linux version — info @ 1:55 pm

 

 Adding Spam-score headers to all messages

By default @Mail will append the Spam-score of an email-message, only if it matches as Spam.

To configure all incoming messages to attach the Spam-score and report, useful for debugging and to check "real" messages for their Spam-score edit:

/usr/local/atmail/mailserver/configure

Locate:

(more...)


Filed under: Anti-Spam, Linux version — info @ 1:51 pm