February 16, 2006

 Installing Spamassassin under Slackware 7.2

While installing Spamassassin under Slackware 7.2, the documentation at:

http://support.atmail.com/server-install.html#22

Requires Spamassassin to be compiled using the flags:

perl Makefile.PL INSTALLDIRS=vendor PREFIX=/usr/local/atmail/spamassassin/ CONFDIR=/usr/local/atmail/spamassassin/etc/ DATADIR=/usr/local/atmail/spamassassin/etc/

Note, under Slackware 7.2 the INSTALLDIRS=vendor must be removed, otherwise the bundled Perl version 5.8.8 will incorrectly install the library files for Spamassassin.


Filed under: OS — Ben Duncan @ 1:10 am

 

February 6, 2006

 Disk Quota Notification script

To automatically notify users via email that their disk-quota is reaching maximum capacity, use the following script at:

http://kb.atmail.com/attach/checkquota.sh

This can be helpful if customers do not login via Webmail to check their quota usage, users which access email via POP3/IMAP can be mail notified.

The checkquota.sh is a shell script which can be run via Cron each day. The script will loop through each user-account and calculate the current disk-space used and allocated.

If users reach 85% capacity a warning message is sent, if 90% a message marked urgent is sent, otherwise at 95% a critical message is sent notifiying the user to delete unwanted messages and clean the quota.

To use the script modify the text in bold with the mySQL DB details:

USR=({$(mysql dbname --user=dbuser --password=dbpasswd -s -e"SELECT Account, UserQuota FROM Users ORDER BY Account")})

Optionally you can set the threshold limits for messages sent ( warning, urgent, critical ):

# Set the Mail Quota Usage thresholds

LIMIT1=75
LIMIT2=90
LIMIT3=95


Filed under: Installation — Ben Blanch @ 3:54 am