From 968f957d0fa39ba8255905f980e546bbde9855a4 Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Mon, 12 Sep 2016 16:00:05 +0200 Subject: [PATCH] Added cron regarding sa-learn --- docs/content/config/troubleshooting/faq.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/content/config/troubleshooting/faq.md b/docs/content/config/troubleshooting/faq.md index cc867ae3..f6cd572b 100644 --- a/docs/content/config/troubleshooting/faq.md +++ b/docs/content/config/troubleshooting/faq.md @@ -40,7 +40,16 @@ Login are full email address (`user@domain.com`). Please use `STARTTLS`. ### How can I manage my custom Spamassassin rules? -Antispam rules are managed in `config/spamassassin-rules.cf`. +Antispam rules are managed in `config/spamassassin-rules.cf`. + +### How can I make Spamassassin learn spam? + +Put received spams in `.Junk/` imap folder and add a cron like the fllowing: + +``` +# Everyday 2:00AM, learn spam for this specific user +0 2 * * * docker exec mail sa-learn --spam /var/mail/domain.com/username/.Junk +``` ### What kind of SSL certificates can I use? You can use the same certificates you use with another mail server.