Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@georglauterbach
Copy link
Member

@georglauterbach georglauterbach commented Apr 11, 2023

Description

Please quickly read over #3228 :) Removes reject_unknown_client_hostname and (re-)add the test to Rspamd (via HFILTER_HOSTNAME_UNKNOWN).

Fixes #3228
Fixes #2970

Type of change

  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change that does improve existing functionality)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@georglauterbach georglauterbach added kind/new feature A new feature is requested in this issue or implemeted with this PR area/features service/security/rspamd labels Apr 11, 2023
@georglauterbach georglauterbach added this to the v12.1.0 milestone Apr 11, 2023
@georglauterbach georglauterbach self-assigned this Apr 11, 2023
add check on RSPAMD_HFILTER_UNKNOWN_SCORE & check if the var actually is a number and show an error if not
@georglauterbach georglauterbach force-pushed the rspamd/reverse-hostnames branch 2 times, most recently from 5824010 to c6335db Compare April 11, 2023 08:16
@georglauterbach georglauterbach force-pushed the rspamd/reverse-hostnames branch from c6335db to 87ccf1d Compare April 11, 2023 08:17
@github-actions
Copy link
Contributor

Documentation preview for this PR is ready! 🎉

Built with commit: 87ccf1d

@polarathene
Copy link
Member

@GoliathLabs how do you feel about this replacing your Postfix usage from: #2691 ?

Are you using the rspamd feature, if not do you plan to adopt it at some point? Or do you need the feature to remain in Postfix? (@georglauterbach may still drop it by the end of the year once he switches rspamd on as a default enabled feature)

@GoliathLabs
Copy link
Contributor

@GoliathLabs how do you feel about this replacing your Postfix usage from: #2691 ?

Are you using the rspamd feature, if not do you plan to adopt it at some point? Or do you need the feature to remain in Postfix? (@georglauterbach may still drop it by the end of the year once he switches rspamd on as a default enabled feature)

I have already used rspamd on one of my older mailserver instances, so I plan to use rspamd with docker-mailserver as well. I wouldn't mind replacing my reject_unknown_client_hostname configuration with the configurable one of rspamd.

@georglauterbach georglauterbach merged commit 9a28415 into master Apr 11, 2023
@georglauterbach georglauterbach deleted the rspamd/reverse-hostnames branch April 11, 2023 16:51
@casperklein
Copy link
Member

casperklein commented Apr 11, 2023

Correct me if I am wrong. This PR removed the feature reject_unknown_client_hostname. So when not using rspamd, you'll lose that functionality? If so, why?

@georglauterbach
Copy link
Member Author

Correct me if I am wrong. This PR removed the feature reject_unknown_client_hostname. So when not using rspamd, you'll lose that functionality? If so, why?

We had requests and complaints that this might be too restrictive. If you want me to, I can make this configurable for Postfix again - via an ENV like POSTFIX_REJECT_UNKNOWN_CLIENT_HOSTNAME=1. Just let me know :)

Another rationale is that with Rspamd, this will all be a factor for the spam score metric, which is IMO desirable.

@casperklein
Copy link
Member

We had requests and complaints that this might be too restrictive

Not sure, if that represents the majority and justify removal. For me this works perfectly and avoids a lot of SPAM.

I can make this configurable for Postfix again

Yes, please 👍

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

Labels

area/features kind/new feature A new feature is requested in this issue or implemeted with this PR service/security/rspamd

Projects

Archived in project

5 participants