New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to add words, in rspamd #1831

Closed
MisterM74 opened this Issue Sep 9, 2017 · 8 comments

Comments

Projects
None yet
3 participants
@MisterM74

MisterM74 commented Sep 9, 2017

Classification (Please choose one option):

  • Crash/Hang/Data loss
  • WebUI/Usability
  • Serious bug
  • Other bug
  • Feature
  • Enhancement

Reproducibility (Please choose one option):

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try
  • Not applicable

Rspamd version:

1.6.3

Operation system, CPU, memory and environment:

Ubuntu

Description (Please provide a descriptive summary of the issue):

Compile errors (if any):

Steps to reproduce:

Expected results:

Actual results:

Debugging information (see details here):

Configuration:

Additional information:

I use Zimbra
As the developer of RSPamd know, a Zimbra administrator integrated your application with Zimbra, it's great.
vstakhov, as you can know, spammers no longer pass via bad IP reputation but through neutral addresses see Good.
Somewhere in your application, is it possible to add words, example, sex, big breast, pussy, etc ....
Good to you
Mz

@mxoneil

This comment has been minimized.

Show comment
Hide comment
@mxoneil

mxoneil Sep 12, 2017

In the local.d/multimap.conf add:
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
#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!

mxoneil commented Sep 12, 2017

In the local.d/multimap.conf add:
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
#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!

@MisterM74

This comment has been minimized.

Show comment
Hide comment
@MisterM74

MisterM74 Sep 15, 2017

Hello
I have a bug, attachment, PDF, it blocks
surprisingly, in the there is no word that is relative in the content.map file.
When I disable this feature, the attachment sends.

Mz

MisterM74 commented Sep 15, 2017

Hello
I have a bug, attachment, PDF, it blocks
surprisingly, in the there is no word that is relative in the content.map file.
When I disable this feature, the attachment sends.

Mz

@mxoneil

This comment has been minimized.

Show comment
Hide comment
@mxoneil

mxoneil Sep 15, 2017

The content map only checks the header and body of the email, not any attachment. There is something else causing your issue, is my guess.

mxoneil commented Sep 15, 2017

The content map only checks the header and body of the email, not any attachment. There is something else causing your issue, is my guess.

@vstakhov

This comment has been minimized.

Show comment
Hide comment
@vstakhov

vstakhov Sep 15, 2017

Member

No, it checks for full mime decoded content that includes attachments.

Member

vstakhov commented Sep 15, 2017

No, it checks for full mime decoded content that includes attachments.

@MisterM74

This comment has been minimized.

Show comment
Hide comment
@MisterM74

MisterM74 Sep 15, 2017

hello

Here is an example in the logs, when I send with attachment in PDF format, the worst is that, with the same file in JPG format, it sends itself without problem ...

E9B7E125DC4: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 5.7.1 Matched map: REJECT_CONTENT; from=mail@domain.com to=mail@domain.be proto=ESMTP helo=

Mz

MisterM74 commented Sep 15, 2017

hello

Here is an example in the logs, when I send with attachment in PDF format, the worst is that, with the same file in JPG format, it sends itself without problem ...

E9B7E125DC4: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 5.7.1 Matched map: REJECT_CONTENT; from=mail@domain.com to=mail@domain.be proto=ESMTP helo=

Mz

@MisterM74

This comment has been minimized.

Show comment
Hide comment
@MisterM74

MisterM74 Sep 16, 2017

Hello
I found the bug, adding the word "sex", that's why my attachments in PDF format, Jpg (I was wrong last time, but blocked as synonymous), Gif, or other Graphic formats blocked at sending.

Here is

For info, I use Zimbra vstakhov

Mz

MisterM74 commented Sep 16, 2017

Hello
I found the bug, adding the word "sex", that's why my attachments in PDF format, Jpg (I was wrong last time, but blocked as synonymous), Gif, or other Graphic formats blocked at sending.

Here is

For info, I use Zimbra vstakhov

Mz

@vstakhov

This comment has been minimized.

Show comment
Hide comment
@vstakhov

vstakhov Sep 16, 2017

Member

Set filter to text for this map.

Member

vstakhov commented Sep 16, 2017

Set filter to text for this map.

@MisterM74

This comment has been minimized.

Show comment
Hide comment
@MisterM74

MisterM74 Sep 17, 2017

We can close the subject because it works now .. thanks vstakhov
Mz

MisterM74 commented Sep 17, 2017

We can close the subject because it works now .. thanks vstakhov
Mz

@MisterM74 MisterM74 closed this Sep 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment