Sieve things
This commit is contained in:
parent
8d3a3c1fd6
commit
17daefe2e4
|
@ -7,6 +7,7 @@ MOUNT /usr/local/etc/letsencrypt /usr/local/etc/letsencrypt nullfs ro 0 0
|
|||
OVERLAY usr
|
||||
OVERLAY etc
|
||||
PKG postfix dovecot dovecot-pigeonhole spamassassin spamass-milter opendkim opendmarc
|
||||
SYSRC hostname="lyrion.ch"
|
||||
SYSRC cron_flags="-J 60"
|
||||
SYSRC postfix_enable="YES"
|
||||
SYSRC spamd_enable="YES"
|
||||
|
@ -24,3 +25,10 @@ SYSRC opendmarc_socketspec="local:/var/spool/postfix/private/opendmarc"
|
|||
SYSRC opendmarc_runas="postfix:mailnull"
|
||||
CMD rm -rf /usr/local/etc/ssl
|
||||
CMD ln -s /usr/local/etc/letsencrypt/live/lyrion.ch /usr/local/etc/ssl
|
||||
CMD chmod -R 777 /var/log
|
||||
CMD postalias /etc/aliases
|
||||
SERVICE sa-spamd start
|
||||
SERVICE opendmarc start
|
||||
SERVICE milter-opendkim start
|
||||
SERVICE postfix start
|
||||
SERVICE dovecot start
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
127.0.0.1
|
||||
10.0.0.5
|
||||
localhost
|
||||
lyrion.ch
|
||||
mail.lyrion.ch
|
||||
202.61.204.114
|
|
@ -0,0 +1,15 @@
|
|||
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
|
||||
|
||||
if environment :matches "imap.mailbox" "*" {
|
||||
set "mailbox" "";
|
||||
}
|
||||
|
||||
if string "" "Trash" {
|
||||
stop;
|
||||
}
|
||||
|
||||
if environment :matches "imap.user" "*" {
|
||||
set "username" "";
|
||||
}
|
||||
|
||||
pipe :copy "sa-learn-ham.sh" [ "" ];
|
|
@ -0,0 +1,7 @@
|
|||
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
|
||||
|
||||
if environment :matches "imap.user" "*" {
|
||||
set "username" "";
|
||||
}
|
||||
|
||||
pipe :copy "sa-learn-spam.sh" [ "" ];
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# you can also use tcp/ip here, consult spamc(1)
|
||||
exec /usr/local/bin/spamc -u -L ham
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# you can also use tcp/ip here, consult spamc(1)
|
||||
exec /usr/local/bin/spamc -u -L spam
|
Loading…
Reference in New Issue