[Dovecot] AntiSpam Plugin
Leander S.
leander.schaefer at googlemail.com
Wed Jul 28 18:15:33 EEST 2010
Hi,
thanks for your reply. Yes I also thought so - but the thing
unfortunatley doesn't wanna run on my machine no matter what recent
version I tried ;/
server [~]# dovecot -n
# 1.2.13: /usr/local/etc/dovecot.conf
# OS: FreeBSD 8.1-RELEASE amd64 ufs
protocols: imap imaps pop3 pop3s managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): *:2000
ssl_cert_file: /etc/ssl/mail/mail.cert
ssl_key_file: /etc/ssl/mail/mail.key
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_executable(managesieve): /usr/local/libexec/dovecot/managesieve-login
login_greeting: home MailSystem
verbose_proctitle: yes
first_valid_uid: 2000
first_valid_gid: 2000
mail_privileged_group: mail
mail_location: maildir:/var/mail/%d/%n
mail_debug: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/libexec/dovecot/managesieve
mail_plugins(default): autocreate antispam
mail_plugins(imap): autocreate antispam
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/lib/dovecot/managesieve
imap_client_workarounds(default): outlook-idle
imap_client_workarounds(imap): outlook-idle
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
managesieve_implementation_string(default): dovecot
managesieve_implementation_string(imap): dovecot
managesieve_implementation_string(pop3): dovecot
managesieve_implementation_string(managesieve): home
lda:
postmaster_address: admin at server.home
mail_plugins: sieve
log_path: /var/log/dovecot-deliver.log
info_log_path: /var/log/dovecot-deliver.log
auth default:
mechanisms: cram-md5
username_format: %Lu
passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: dovecot
group: dovecot
plugin:
autocreate: Trash
autocreate2: Sent
autocreate3: Drafts
autocreate4: Spam
autocreate5: Virus
autosubscribe: Trash
autosubscribe2: Sent
autosubscribe3: Drafts
autosubscribe4: Spam
autosubscribe5: Virus
sieve: ~/.dovecot.sieve
sieve_dir: ~/sieve
sieve_global_path: /usr/local/etc/dovecot/sieve/default.sieve
antispam_mail_sendmail: /usr/local/bin/sa-learn
antispam_mail_spam: --spam
antispam_mail_notspam: --ham
antispam_mail_tmpdir: /tmp
antispam_spam_pattern_ignorecase: Spam;Junk
antispam_trash_pattern_ignorecase: Trash;Deleted *
server [~]#
And here is my log output - but unfortunately am I not getting any
sa-learn error there ...
server [~]# cat /var/log/maillog
Jul 28 16:58:58 server dovecot: imap-login: Login:
user=<admin at home.gotdns.com>, method=CRAM-MD5, rip=84.157.141.86,
lip=192.168.1.100, TLS
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): Loading
modules from directory: /usr/local/lib/dovecot/imap
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): Module
loaded: /usr/local/lib/dovecot/imap/lib20_autocreate_plugin.so
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): Module
loaded: /usr/local/lib/dovecot/imap/lib90_antispam_plugin.so
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): Effective
uid=2000, gid=2000, home=(none)
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): maildir:
data=/usr/local/www/home/admin/mail/admin at home.gotdns.com/
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): maildir++:
root=/usr/local/www/home/admin/mail/admin at home.gotdns.com, index=,
control=, inbox=/usr/local/www/home/admin/mail/admin at home.gotdns.com
Jul 28 16:58:58 server dovecot: IMAP(admin at home.gotdns.com): Namespace :
Using permissions from
/usr/local/www/home/admin/mail/admin at home.gotdns.com: mode=0700 gid=-1
server [~]# ls -lach ./maildir/
total 114
drwx------ 11 2000 wheel 512B Jul 28 16:59 .
drwxrwx--- 3 2000 wheel 512B Jul 25 01:35 ..
drwx------ 5 2000 wheel 512B Jul 28 16:59 .Drafts
drwx------ 5 2000 wheel 512B Jul 28 16:59 .Sent
drwx------ 5 2000 wheel 512B Jul 28 16:59 .Spam
drwx------ 5 2000 wheel 512B Jul 28 17:00 .Trash
drwx------ 5 2000 wheel 512B Jul 28 17:00 .Virus
drwx------ 2 2000 wheel 512B Jul 28 16:58 cur
-rw------- 1 2000 wheel 10B Jul 25 01:36 dovecot-keywords
-rw------- 1 2000 wheel 142B Jul 28 16:45 dovecot-uidlist
-rw------- 1 2000 wheel 8B Jul 25 01:37 dovecot-uidvalidity
-rw------- 1 2000 wheel 0B Jul 25 01:37 dovecot-uidvalidity.4c4b6df5
-rw------- 1 2000 wheel 3.0K Jul 27 13:59 dovecot.index
-rw------- 1 2000 wheel 64K Jul 28 16:44 dovecot.index.cache
-rw------- 1 2000 wheel 14K Jul 28 16:59 dovecot.index.log
drwx------ 2 2000 wheel 512B Jul 28 13:08 new
drwxrwxrwx 2 2000 wheel 512B Jul 25 02:20 sieve
-rw------- 1 2000 wheel 35B Jul 25 03:37 subscriptions
drwx------ 2 2000 wheel 512B Jul 28 16:59 tmp
server [~]#
Thanks & Best Regards
Leander
Am 28.07.10 17:02, schrieb Tom Hendrikx:
> On 28/07/10 16:40, Leander S. wrote:
>> Has anyone got the chance to get this running? I'm permanently getting
>> this Serverbug error ... ;(
>>
> Lots of people on this list are running antispam plugin without issues.
>
> Please post latest config of your dovecot 1.2.13 setup, and relevant log
> entries. It seems sa-learn returns some error code when called.
>
> --
> Regards,
> Tom
More information about the dovecot
mailing list