Add spamassasin/pyzor/razor support and cleanup Dockerfile and config

This commit is contained in:
2015-10-02 15:07:59 +02:00
parent 8d28bce22a
commit 88d71ce832
23 changed files with 91 additions and 39 deletions

View File

@@ -1,3 +1,6 @@
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
protocol lda {
hostname = mail.docker.container
postmaster_address = postmaster@mail.docker.container

View File

@@ -0,0 +1,5 @@
require "fileinto";
if header :contains "X-Spam-Flag" "YES" {
fileinto "Spam";
}

View File

@@ -0,0 +1 @@
dev-python/pyzor ~amd64

View File

@@ -0,0 +1,5 @@
* net-mail/dovecot
* mail-mta/postfix
* mail-filter/spamassassin
* dev-python/pyzor
* mail-filter/razor

View File

@@ -0,0 +1,2 @@
* app-admin/supervisor
* sys-process/htop

View File

@@ -0,0 +1 @@
*/* acl bash-completion ipv6 kmod openrc pcre readline unicode zlib pam ssl sasl bzip2 urandom crypt tcpd -acpi -cairo -consolekit -cups -dbus -dri -gnome -gnutls -gtk -ogg -opengl -pdf -policykit -qt3support -qt5 -qt4 -sdl -sound -systemd -truetype -vim -vim-syntax -wayland -X

View File

@@ -0,0 +1,2 @@
net-mail/dovecot cydir imapc maildir managesieve mbox mdbox pam pop3c sieve sqlite
nmail-mta/postfix dovecot-sasl mbox sasl

View File

@@ -1,5 +1,5 @@
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
# we need to be permissive with the helo restrictions since the client can only
# authenticate after HELO has been sent
@@ -13,3 +13,7 @@ submission inet n - n - - smtpd
-o smtpd_sender_restrictions=permit_sasl_authenticated,reject
-o smtpd_relay_restrictions=permit_sasl_authenticated,reject
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
spamassassin unix - n n - - pipe
user=vmail:vmail argv=/usr/bin/spamc -f -e
/usr/sbin/sendmail -oi -f ${sender} ${recipient}

View File

@@ -0,0 +1 @@
public.pyzor.org:24441

View File

@@ -0,0 +1,7 @@
# you should leave this untouched
razor_config /etc/spamassassin/.razor/razor-agent.conf
pyzor_options --homedir /etc/spamassassin/.pyzor
# here goes your whitelist stuff for example
# whitelist_from user@example.com

View File

@@ -1,11 +1,16 @@
[supervisord]
nodaemon=true
[program:spamassasin]
command=/usr/sbin/spamd
startsecs=2
autorestart=true
[program:postfix]
process_name=master
directory=/etc/postfix
command=/usr/sbin/postfix -c /etc/postfix start
startsecs=0
startsecs=1
autorestart=false
[program:dovecot]