Mail::SpamAssassin::Plugin::RedisAWL - redis support for spamassassin AWL/TxRep
version 1.004
RedisAWL implements a redis table for the spamassassin AWL/TxRep plugin.
To install the plugin from CPAN:
$ cpanm Mail::SpamAssassin::Plugin::RedisAWL
Load the plugin in init.pre:
loadplugin Mail::SpamAssassin::Plugin::RedisAWL
If you're using the AWL plugin change the AWL datebase type to redis in local.cf:
auto_whitelist_factory Mail::SpamAssassin::RedisAddrList
If you're using the TxRep plugin use:
txrep_factory Mail::SpamAssassin::RedisAddrList
And you may have to configure the redis server and prefix:
auto_whitelist_redis_server 127.0.0.1:6379 auto_whitelist_redis_prefix awl_
The redis server to use.
Default: 127.0.0.1:6379
Set if you redis server requires a password.
A prefix for AWL keys.
Default: awl_
Will call SELECT to switch database after connect if set to a non-zero value.
Database 0 is the default in redis.
Add an expire timeout to entries in redis.
The default 0 means that no expire timeout is set.
Timeout must be set in seconds.
An entries expiration timeout will be updated whenever a new score is applied to it.
Turn on/off debug on the Redis connection.
Scan a mail an check debug output for redis/awl messages:
$ spamassassin -D < /tmp/testmail 2>&1 | egrep -e 'auto-whitelist' -e 'redis'
Query redis for awl data:
$ redis-cli redis 127.0.0.1:6379> keys awl_* 1)... redis 127.0.0.1:6379> get awl_bla@blub.de|ip=1.2.3.4_score "-5099" redis 127.0.0.1:6379> get awl_bla@blub.de|ip=1.2.3.4_count "1"
Markus Benning <ich@markusbenning.de>
This software is Copyright (c) 2015 by Markus Benning.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Mail::SpamAssassin::Plugin::RedisAWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::SpamAssassin::Plugin::RedisAWL
CPAN shell
perl -MCPAN -e shell install Mail::SpamAssassin::Plugin::RedisAWL
For more information on module installation, please visit the detailed CPAN module installation guide.