Rspamd: A replacement for Spamassassin & Postscreen

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
phoenix
Ambassador
Ambassador
Posts: 25171
Joined: Fri Sep 12, 2014 9:56 pm

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby phoenix » Wed Sep 13, 2017 10:08 am

Fed1r wrote:I'm sorry.
I wrote a question twice. :oops:
That's OK, it's not a problem but it's always best to give as much of a description of what you're trying to do and with which product. :)

Fed1r wrote:Maybe I'm wrong, but this is possible:
rewrite subject - add spam subject to a message

https://rspamd.com/doc/configuration/metrics.html
No, you're not wrong and that is the correct module. It's also useful to have a search on the rspamd for a possible solution and in this case there is one here: https://groups.google.com/forum/#!searc ... T4-fphCAAJ - try that and see if that will do what you need.

I'm guessing that you've installed rspamd following my instructions in the first post? Which version of ZCS is installed? Were there any problems following the instructions? How much mail do you get through your server? Is this a production server?


Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
phoenix
Ambassador
Ambassador
Posts: 25171
Joined: Fri Sep 12, 2014 9:56 pm

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby phoenix » Wed Sep 13, 2017 10:13 am

Fed1r wrote:
phoenix wrote:Are you talking about rspamd doing this?

Rspam can not do this.
Maybe I'm wrong, but rmilter can do it.
https://github.com/vstakhov/rspamd/issues/42
The problem with that is that rmilter doesn't exist in that form any more, all it's configuration is now within rspamd.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
Fed1r
Posts: 5
Joined: Sun Sep 03, 2017 4:47 pm

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby Fed1r » Wed Sep 13, 2017 10:26 am

phoenix wrote:Are you talking about rspamd doing this?

Rspam can not do this.
Maybe I'm wrong, but rmilter can do it.
https://github.com/vstakhov/rspamd/issues/42
Fed1r
Posts: 5
Joined: Sun Sep 03, 2017 4:47 pm

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby Fed1r » Wed Sep 13, 2017 10:54 am

phoenix wrote:No, you're not wrong and that is the correct module. It's also useful to have a search on the rspamd for a possible solution and in this case there is one here: https://groups.google.com/forum/#!searc ... T4-fphCAAJ - try that and see if that will do what you need.

It works. Thank you.

Code: Select all

# my config
# /etc/rspamd/override.d/metrics.conf
subject = "***SPAM*** %s ";

actions {
    reject = 15;
    rewrite_subject = 5;
    greylist = 0;
}


phoenix wrote:I'm guessing that you've installed rspamd following my instructions in the first post?

Yes.

phoenix wrote:Which version of ZCS is installed?

Code: Select all

zmcontrol -v
Release 8.7.11.GA.1854.UBUNTU16.64 UBUNTU16_64 FOSS edition.

phoenix wrote:Were there any problems following the instructions? ?


No, all is good
Without this:

Code: Select all

 /opt/zimbra/bin/zmtrainsa_test2



phoenix wrote:How much mail do you get through your server? Is this a production server?


A few. I have 30 users and mailing
It is production.

After test I added:

Code: Select all

su - zimbra
all_accounts=`zmprov -l gaa`; for account in $all_accounts; do zmmailbox -z -m  $account afrl -f 'ANTISPAM' active any header 'subject' contains '***SPAM***' fileinto "/Junk"; echo "Created filter for $account"; done ;
boovan
Posts: 8
Joined: Fri May 12, 2017 5:28 am

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby boovan » Fri Sep 15, 2017 9:03 am

hi,

I have problem in TLS .. "smtp_tls_security_level=may"is changing to "smtp_tls_security_level="
after postfix restart.Please suggest how to fix this issue
phoenix
Ambassador
Ambassador
Posts: 25171
Joined: Fri Sep 12, 2014 9:56 pm

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby phoenix » Fri Sep 15, 2017 9:23 am

boovan wrote:I have problem in TLS .. "smtp_tls_security_level=may"is changing to "smtp_tls_security_level="
after postfix restart.Please suggest how to fix this issue
What does this have to do with Rspamd? There a total lack of information in your post about the exact problem, zimbra version & release and under what circumstances this 'error' occurs.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
MisterM75
Advanced member
Advanced member
Posts: 67
Joined: Sat Aug 05, 2017 7:10 am

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby MisterM75 » Fri Sep 15, 2017 9:28 am

I will defend the person who did the tutorial, even if I have not all actually seen all the messages, what you undertake, it will probably not be possible, because it will have to redo a customized development to introduce any " it anti spam unless one of you found it ... but hey ...
MisterM75
Advanced member
Advanced member
Posts: 67
Joined: Sat Aug 05, 2017 7:10 am

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby MisterM75 » Thu Sep 21, 2017 6:59 am

Hello

Knowing that it is in French language, look at a configuration and especially with dovecot for the transmission of a message that would be as spam directly in the junk mail folder.

https://philpep.org/blog/rspamd-un-antispam-performant

Mz
phoenix
Ambassador
Ambassador
Posts: 25171
Joined: Fri Sep 12, 2014 9:56 pm

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby phoenix » Thu Sep 28, 2017 11:46 am

Just in case anyone else wants to ban an email based on specific word content, here's an answer from the Rspamd 'issues' page from a question by our own @MisterM75:

In the local.d/multimap.conf add:

Code: Select all

reject_content {
type = "content";
filter = "full";
map = "${LOCAL_CONFDIR}/local.d/content.map";
symbol = "REJECT_CONTENT";
prefilter = true;
action = "reject";
regexp = true;
}


In the content.map: /local.d/content.map add

Code: Select all

#content filter
/\bBreasts\b/i
(blank line)

The blank line at the end is REQUIRED.

Restart rspamd, from then on any modifications to the content.map will automatically be read instantly!

This question and answer is here: https://github.com/vstakhov/rspamd/issues/1831 - any other tweaks, enhancements or configuration settings are always welcome in this thread. :)
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
sangamc
Advanced member
Advanced member
Posts: 137
Joined: Sat Sep 13, 2014 12:39 am

Re: Rspamd: A replacement for Spamassassin & Postscreen

Postby sangamc » Tue Oct 17, 2017 2:43 pm

On zimbra 8.7.11 I have my proxy set to redirect. How can I setup the webui so I can access it without running firefox from the terminal or installing a desktop so I can VNC. I am not sure where to modify the proxy as described in the quickstart

thanks

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 10 guests