Add spamassasin/pyzor/razor support and cleanup Dockerfile and config
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
lda_mailbox_autocreate = yes
|
||||
lda_mailbox_autosubscribe = yes
|
||||
|
||||
protocol lda {
|
||||
hostname = mail.docker.container
|
||||
postmaster_address = postmaster@mail.docker.container
|
||||
5
core/config/example/spam-global.sieve
Normal file
5
core/config/example/spam-global.sieve
Normal file
@@ -0,0 +1,5 @@
|
||||
require "fileinto";
|
||||
|
||||
if header :contains "X-Spam-Flag" "YES" {
|
||||
fileinto "Spam";
|
||||
}
|
||||
1
core/config/paludis/keywords.conf.d/mail.conf
Normal file
1
core/config/paludis/keywords.conf.d/mail.conf
Normal file
@@ -0,0 +1 @@
|
||||
dev-python/pyzor ~amd64
|
||||
5
core/config/paludis/sets/mail.conf
Normal file
5
core/config/paludis/sets/mail.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
* net-mail/dovecot
|
||||
* mail-mta/postfix
|
||||
* mail-filter/spamassassin
|
||||
* dev-python/pyzor
|
||||
* mail-filter/razor
|
||||
2
core/config/paludis/sets/tools.conf
Normal file
2
core/config/paludis/sets/tools.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
* app-admin/supervisor
|
||||
* sys-process/htop
|
||||
1
core/config/paludis/use.conf.d/global.conf
Normal file
1
core/config/paludis/use.conf.d/global.conf
Normal 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
|
||||
2
core/config/paludis/use.conf.d/mail.conf
Normal file
2
core/config/paludis/use.conf.d/mail.conf
Normal 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
|
||||
@@ -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}
|
||||
1
core/config/spamassasin/pyzor.servers
Normal file
1
core/config/spamassasin/pyzor.servers
Normal file
@@ -0,0 +1 @@
|
||||
public.pyzor.org:24441
|
||||
7
core/config/spamassasin/spamassasin.local.append
Normal file
7
core/config/spamassasin/spamassasin.local.append
Normal 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
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user