Compare commits

...

5 Commits

5 changed files with 22 additions and 2 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
#
# Copy dehydrated generated certs into /var/local/certificates and
# set required ownership. Also restart local services as appropriate.
# set required ownership and permissions. Also restart local services
# as appropriate.
action=$1
shift
@ -9,6 +10,8 @@ shift
deploy_cert() {
cp -a /var/lib/dehydrated/certs/* /var/local/certificates/
chown -R root:ssl-cert /var/local/certificates/
find /var/local/certificates/ -type d -print0 | xargs -0 chmod g+rx
find /var/local/certificates/ -type f -print0 | xargs -0 chmod g+r
DOMAIN="$1"
case $DOMAIN in

View File

@ -19,8 +19,10 @@
#deny message = Message discarded as high-probability spam
# condition = ${if eq{$spam_action}{reject}}
# This is an additional check to Mythic's rspamd, so don't
# remove any spam judgement that has made.
# Remove foreign headers
warn remove_header = x-spam-bar : x-spam-score : x-spam-report : x-spam-status
#warn remove_header = x-spam-bar : x-spam-score : x-spam-report : x-spam-status
# add spam-score and spam-report header when "add header" action is recommended by rspamd
warn

View File

@ -12,6 +12,10 @@ rspamd:
- name: rspamd
- fromrepo: bullseye
redis_server:
pkg.installed:
- name: redis-server
rspamd_conf:
file.recurse:
- name: /etc/rspamd/local.d
@ -26,3 +30,10 @@ rspamd_service:
- watch:
- pkg: rspamd
- file: /etc/rspamd/local.d
redis_service:
service.running:
- name: redis-server
- enable: true
- watch:
- pkg: redis-server

View File

@ -0,0 +1,2 @@
# We're receiving from Mythic's mailservers, so no point greylisting.
enabled = false

View File

@ -0,0 +1,2 @@
# We're receiving from Mythic's mailservers, who have already done RBL.
enabled = false