Page 7 of 24

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Wed Sep 13, 2017 10:08 am
by phoenix
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?

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Wed Sep 13, 2017 10:13 am
by phoenix
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.

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Wed Sep 13, 2017 10:26 am
by Fed1r
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

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Wed Sep 13, 2017 10:54 am
by Fed1r
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 ;

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Fri Sep 15, 2017 9:03 am
by boovan
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

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Fri Sep 15, 2017 9:23 am
by phoenix
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.

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Fri Sep 15, 2017 9:28 am
by MisterM75
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 ...

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Thu Sep 21, 2017 6:59 am
by MisterM75
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

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Thu Sep 28, 2017 11:46 am
by phoenix
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. :)

Re: Rspamd: A replacement for Spamassassin & Postscreen

Posted: Tue Oct 17, 2017 2:43 pm
by sangamc
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