Rspamd: A replacement for Spamassassin & Postscreen

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
chris_60
Posts: 15
Joined: Wed Mar 10, 2021 3:35 pm
Location: Ubuntu 18.04.5 LTS
ZCS/ZD Version: 9.0.0.ZEXTRAS.202007114.UBUNTU18.64

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby chris_60 » Tue Jun 01, 2021 4:53 pm

Rspamd is working great with Zimbra.

Is there a way to have spam delivered to the user's junk mailbox in order to allow the user to review the mail in case it is not spam?

Chris


phoenix
Ambassador
Ambassador
Posts: 26831
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby phoenix » Tue Jun 01, 2021 5:35 pm

You set the score for what is classified as spam, that will then get rejected if it exceeds the score you've defined but some spam will still (most likely) arrive in the users inboxes otherwise they will be in their Junk folder. If you are receiving mail from reputable senders then they should not be classified as spam and then arrive in the Inbox.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
chris_60
Posts: 15
Joined: Wed Mar 10, 2021 3:35 pm
Location: Ubuntu 18.04.5 LTS
ZCS/ZD Version: 9.0.0.ZEXTRAS.202007114.UBUNTU18.64

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby chris_60 » Tue Jun 01, 2021 5:54 pm

Let me clarify my question somewhat.

Rspamd rejects scores over 15 (default). Those emails never reach the inbox or junk folder as far as I can tell.

Rspamd flags scores over 4 (default) as greylist. Those emails end up in the inbox.

Rspamd adds headers to scores over 6 (default). Those emails end up in the inbox.

What I am trying to do is to have mails scored over, say, 4 by Rspamd be directed to the junk folder.

It appears that with a basic configuration of Rspamd and Zimbra that an email incorrectly scored as >15 could never be seen by the user which presents a problem.

Thanks for the help!

Chris
phoenix
Ambassador
Ambassador
Posts: 26831
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby phoenix » Tue Jun 01, 2021 6:04 pm

Take a look at the log files and see why those mails with a high score are rejected. All those settings you've mentioned can be modified by you. ;) My question would be: why install an anti-spam system then cripple it by accepting mail into a users inbox?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
chris_60
Posts: 15
Joined: Wed Mar 10, 2021 3:35 pm
Location: Ubuntu 18.04.5 LTS
ZCS/ZD Version: 9.0.0.ZEXTRAS.202007114.UBUNTU18.64

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby chris_60 » Tue Jun 01, 2021 6:13 pm

phoenix wrote:Take a look at the log files and see why those mails with a high score are rejected. All those settings you've mentioned can be modified by you. ;)


I have been grepping through the logs and adjusting the settings. For the most part things work great. Very little is scored incorrectly.

phoenix wrote:My question would be: why install an anti-spam system then cripple it by accepting mail into a users inbox?


The goal is not to cripple it, but to render an experience similar to mainstream email providers where the user can view all spam and mark/un-mark accordingly. If a mail is flagged spam incorrectly and there is no way for the user to see that email (ie it never lands in any folder) then the user cannot "check the spam/junk folder" to correct the issue.

We definitely don't want anything scored over the absolute "spam" score in the inbox. We want it in the junk folder. Right now it is sent into the bit bucket.
sangamc
Advanced member
Advanced member
Posts: 150
Joined: Sat Sep 13, 2014 12:39 am

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby sangamc » Sun Jun 06, 2021 11:34 pm

chris_60 wrote:Rspamd is working great with Zimbra.

Is there a way to have spam delivered to the user's junk mailbox in order to allow the user to review the mail in case it is not spam?

Chris

I used the following:

Create filters for moving email with marked headers to the users Junk Folder
Add Filter Rule

Code: Select all

su - zimbra
all_accounts=`zmprov -l gaa| egrep -v 'admin|wiki|galsync|spam|ham|virus'`; for account in $all_accounts; do zmmailbox -z -m  $account afrl -f 'RSPAMD' active any header 'X-Spam' is 'Yes' fileinto "/Junk" stop; echo "Created filter for $account"; done ;
chris_60
Posts: 15
Joined: Wed Mar 10, 2021 3:35 pm
Location: Ubuntu 18.04.5 LTS
ZCS/ZD Version: 9.0.0.ZEXTRAS.202007114.UBUNTU18.64

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby chris_60 » Mon Jun 14, 2021 2:53 pm

sangamc wrote:I used the following:

Create filters for moving email with marked headers to the users Junk Folder
Add Filter Rule

Code: Select all

su - zimbra
all_accounts=`zmprov -l gaa| egrep -v 'admin|wiki|galsync|spam|ham|virus'`; for account in $all_accounts; do zmmailbox -z -m  $account afrl -f 'RSPAMD' active any header 'X-Spam' is 'Yes' fileinto "/Junk" stop; echo "Created filter for $account"; done ;


That works a trick!

SA must have some integration in Zimbra which handles this.

Kind regards,
Chris

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 24 guests