Sign inSign up

theanimaldock/ndocker-amavisd

By theanimaldock

•Updated over 7 years ago

An amavis docker image.

Image
0

750

theanimaldock/ndocker-amavisd repository overview

⁠ndocker-amavisd

An amavisd docker image for use with nomad

This image contains a slightly patched version of amavisd that produces clean logs. It has JSON formatted logging enabled and ready for structured logging. However, amavis is a strange beast. Most log lines are not formatted in JSON, but it will produce a single line that contains all fields needed in JSON format.

It will read spamassassin user preferences from consul if "amavis/user_prefs" is available in the consul K/V store and will restart amavisd if those preferences are updated. This can be used to change scores or whitelist email addresses.

⁠ENVIRONMENT VARIABLES

Env varDescriptionNotes
AMAVIS_MYDOMAINThe domain amavis is usingdefault: example.com
AMAVIS_MYHOSTNAMEThe hostname reported by amavisddefault: amavis.example.com
AMAVIS_MYNETWORKSMy local networksdefault : 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
AMAVIS_ACLSpace separated list of cidr addresses that are allowed to connect to amavisdefault: 192.168.1.1
POSTFIX_RETURNMethod to forward back to postfixdefault: smtp:[192.168.1.100]:10025
CONSUL_SA_USER_PREFSFetch sa user preferences from consul K/Vdefault: false

Tag summary

Content type

Image

Digest

Size

23.5 MB

Last updated

over 8 years ago

docker pull theanimaldock/ndocker-amavisd