-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(filter): add option to override rspamd dns servers #273
- Loading branch information
Showing
5 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,42 @@ | ||
# Database credentials | ||
MYSQL_DATABASE=mailserver | ||
MYSQL_USER=mailserver | ||
MYSQL_PASSWORD=changeme | ||
MYSQL_ROOT_PASSWORD=changeme | ||
MYSQL_USER=mailserver | ||
|
||
# Mailserver administrative identity | ||
MAILNAME=mail.example.com | ||
[email protected] | ||
|
||
# Relay mails to another SMTP server | ||
# https://github.com/jeboehm/docker-mailserver/wiki/Howto:-Use-External-Mail-Relay-For-Sending-Mails | ||
RELAYHOST=false | ||
|
||
# Block suspicious attachments by type (bat, com, exe, dll, vbs, docm, doc, dzip) | ||
FILTER_MIME=false | ||
FILTER_VIRUS=true | ||
|
||
# Enable IMAP, POP3 and ClamAV integration | ||
# https://github.com/jeboehm/docker-mailserver/wiki/Info:-Mail-Filtering | ||
|
||
ENABLE_IMAP=true | ||
ENABLE_POP3=true | ||
FILTER_VIRUS=true | ||
|
||
# Enable Dovecot's indexed full-text search | ||
ENABLE_FTS=true | ||
FTS_ARGS="partial=3 full=20 verbose=0 lowmemory=256" | ||
FTS_VSZ_LIMIT=256M | ||
|
||
# Password to access the rspamd web-interface | ||
CONTROLLER_PASSWORD=changeme2 | ||
|
||
# How long to wait for services to start | ||
WAITSTART_TIMEOUT=2m | ||
|
||
# Configure local address extension | ||
# https://github.com/jeboehm/docker-mailserver/wiki/Feature:-Local-Address-Extension | ||
RECIPIENT_DELIMITER=- | ||
FTS_ARGS="partial=3 full=20 verbose=0 lowmemory=256" | ||
FTS_VSZ_LIMIT=256M | ||
|
||
# Configure DNS resolvers used by rspamd | ||
# Vodafone DE | ||
DNS_RESOLVERS=80.69.96.12,81.210.129.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{ $dnsservers := split .Env.DNS_RESOLVERS "," }} | ||
|
||
dns { | ||
timeout = 1s; | ||
sockets = 16; | ||
retransmits = 5; | ||
nameserver = [{{- range $index, $element := $dnsservers }}{{ if $index }},{{ end }}"{{ $element }}"{{- end }}]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters