kvaps / docker-kolab

Kolab image with nginx, ssl, opendkim, amavis and fail2ban
MIT License
41 stars 19 forks source link

amavis fails on startup until sa-update has been run #26

Open kevinbader opened 7 years ago

kevinbader commented 7 years ago
amavis[1844]: (!!)TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?

It would probably be good to execute sa-update during startup.... what do you think?

kvaps commented 7 years ago

Is it work after sa-update? I think I will add new service, like set_spam_sieve.service, to update spamassin every certain time.

kevinbader commented 7 years ago

At least the TROUBLE message has gone away after sa-update -- since Cyrus is not running yet for me, I haven't tested if Amavis is actually doing anything. Having a .service along with a .timer that periodically triggers the update seems like a good idea.

kvaps commented 7 years ago

Hmm, using systemd timers - it is good idea, thanks! I will add this feature a little bit later, I think next week.

Cyrus is ok, guam has error, it is new imap proxy.