From 0b7f07c79cf964c285e96eecd51721aa79a53baa Mon Sep 17 00:00:00 2001 From: makloda Date: Sun, 29 Jan 2017 17:44:49 +0100 Subject: [PATCH] Added question about acl rules for Spamassassin domain matching handling in amavis --- docs/content/config/troubleshooting/faq.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/config/troubleshooting/faq.md b/docs/content/config/troubleshooting/faq.md index 2761088d..2bef89d9 100644 --- a/docs/content/config/troubleshooting/faq.md +++ b/docs/content/config/troubleshooting/faq.md @@ -51,6 +51,10 @@ Please use `STARTTLS`. ### How can I manage my custom Spamassassin rules? Antispam rules are managed in `config/spamassassin-rules.cf`. +### Why are Spamassassin x-headers not inserted into my sample.domain.com subdomain emails? + +In the default setup, Amavis only applies Spamassassin x-headers into domains matching the template listed in the config file 05-domain_id (in the amavis defaults). The default setup @local_domains_acl = ( ".$mydomain" ); does not match subdomains. To match subdomains, you can override the @local_domains_acl directive in the Amavis user config file 50-user with @local_domains_maps = ("."); to match any sort of domain template. + ### How can I make Spamassassin learn spam? Put received spams in `.Junk/` imap folder and add a cron like the fllowing: