Spam and Virus filtering not working with amavis, Spamassasin and ClamAV using Postfix on Ubuntu

I have setup mailserver using Postfix and Dovecot. Sending is receiving mail is working perfectly. This is email server is running from last couple of years without any issue. Recently we started getting lots of spam so I decided to setup spam and virus filtering and I followed the official guide available at the following … Read more

Setup spammassin and clamav with Exim on ubuntu 16.04

I’ve been searching for help in setting up Spammassassin and ClamAV with Exim (on ubuntu-16.04), but all the guides are horribly out of date. Could anyone share their setup please? Answer The guidelines may be rather old, but the setup process hasn’t really changed. The Exim4 Specification includes a chapter on Content scanning at ACL … Read more

Whitelist Server in SpamAssassin

Iss possible add a server with various subdomains in SpamAssassin Whitelist, like * This is the host instance with subdomains: [IP-ADDRES-1] [IP-ADDRESS-2] [IP-ADDRESS-3] I looked for information in the SpamAssassin documentation, but it only tells how to block for a server and a sender domain. Answer if you … Read more

Postfix, Dovecot and Spamassassin unexpectedely fill-ups my disk usage

I am on VPS using CentOS 7, LAMP using Postfix, Dovecot and Spamassassin with Rainloop as my email client. When I have started Postfix using: systemctl enable postfix systemctl restart postfix and Dovecot as: systemctl restart dovecot systemctl enable dovecot After that my CPU usage goes above 90-99% as well my disk usage start fill-up … Read more

exim or dovecot plugin or filter to put body preview to header [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more

Spamassassin failing to parse config line with user_scores_custom_query rule

I’m trying to setup spamassassin per user config files via MySQL, and I get this error: Sep 8 12:09:13.668 [12307] warn: config: failed to parse line, skipping, in “/etc/mail/spamassassin/”: user_scores_custom_query SELECT preference, value FROM _TABLE_ WHERE username = _USERNAME_ OR username = ‘$GLOBAL’ OR username = CONCAT(‘%’,_DOMAIN_) ORDER BY username ASC But I can’t see … Read more

Dovecot+Postfix+Spamassassin (virtual users) – Auto move junk

So I have a mail server that receives junk mail and I need to forward these junk emails towards the virtual users junk folder. I have a dovecot, postfix, and spamassassin all working together, but my problem is I can’t seem to figure out a way to forward the junk mail (mail titled *****SPAM*****) towards … Read more

spamassassin + amavisd not filtering

My problem is: my spamassassin look like not working at all, no X_SPAM header adding for email, GTUBE test failed, i dont know exactly , but seem’s like it’s broken after installing spamassassin from wheezy backports. Probably amavisd-new dont work correctly with new spamassassin version. Feel free to ask for addditional configuration files. spamassassin –lint … Read more