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.
Env var | Description | Notes |
---|---|---|
AMAVIS_MYDOMAIN | The domain amavis is using | default: example.com |
AMAVIS_MYHOSTNAME | The hostname reported by amavisd | default: amavis.example.com |
AMAVIS_MYNETWORKS | My local networks | default : 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_ACL | Space separated list of cidr addresses that are allowed to connect to amavis | default: 192.168.1.1 |
POSTFIX_RETURN | Method to forward back to postfix | default: smtp:[192.168.1.100]:10025 |
CONSUL_SA_USER_PREFS | Fetch sa user preferences from consul K/V | default: false |