Jump to content

Featured Replies

Posted
comment_367

Hello Sandeep,

i have a sоme questions for this "fast, free and open-source spam filtering system": Rspamd

  1. I fund this theme in CWP forum (from Netino) how to install and configurated with CWP ... the steps is actuals?
  2. Did you have experience and observation with this spam system?
  3. Do you recommend it?

Thank you in advance and have a nice day!

 

  • 2 weeks later...
comment_372
On 12/22/2023 at 5:38 AM, torettos said:

Hello Sandeep,

i have a sоme questions for this "fast, free and open-source spam filtering system": Rspamd

  1. I fund this theme in CWP forum (from Netino) how to install and configurated with CWP ... the steps is actuals?
  2. Did you have experience and observation with this spam system?
  3. Do you recommend it?

Thank you in advance and have a nice day!

 

Hi,

I was the one who posted that tutorial.

Thank you for reading it.
Yes, the steps are updated.
The longest steps are those for configuring Rspamd itself. It fits almost like a glove with CWP, only a few adaptations are needed, such as disabling spamassassin, and opendkim, but still offering complete integration with the opendkim installation, using it.

With Rspamd there is the additional advantage that you can use it as an antispam gateway, and an message antivirus gateway for all your servers (if you have more than just one), just by changing a single line in postfix (in /etc/postfix/main.cf):

smtpd_milters = inet:Your-Server-IP:11332


(of course you can use autossh as a secure bridge between one server and another)

 

Regards,

Netino

comment_383

Hello,

thank you for yours answers ... in case if i disabled spamassassin and opendkim won't it be worse than if i use the line provided by Sandeep?
What is the difference and which would you recommend?
Is there a way to monitor outgoing emails from the server and not allow SPAM to be sent?

Last question what would be the best way to control emails? ... free or paid - it doesn't matter.

 

Thank you in advance!

 

  • Author
comment_384
1 minute ago, Plamen K. said:

Hello,

thank you for yours answers ... in case if i disabled spamassassin and opendkim won't it be worse than if i use the line provided by Sandeep?
What is the difference and which would you recommend?
Is there a way to monitor outgoing emails from the server and not allow SPAM to be sent?

Last question what would be the best way to control emails? ... free or paid - it doesn't matter.

 

Thank you in advance!

 

Thank you Sandeep, Netino and Plamen K. ... i have same question like Plamen K. can you make it know witch is batter solution?

 

thank you and from me!

comment_393
10 hours ago, Plamen K. said:

Hello,

thank you for yours answers ... in case if i disabled spamassassin and opendkim won't it be worse than if i use the line provided by Sandeep?
What is the difference and which would you recommend?
Is there a way to monitor outgoing emails from the server and not allow SPAM to be sent?

Last question what would be the best way to control emails? ... free or paid - it doesn't matter.

 

Thank you in advance!

 

By using Rspamd, you are actually replacing spamassassin. So, it is completely unnecessary to use it.
IN the case of Opendkim, you are disabling it, but you are not stopping using Opendkim's entire DKIM framework. you use the same files in Rspamd. So, when any changes occur via the CWP panel, Rspamd recognizes them and uses them.

Which Sandeep "line" are you referring to?

Rspamd consumes much less resources than spamassassin, being much more configurable. You can even use spamassassin rules in Rspamd.

Yes, Rspamd allows monitor outgoing mails, but this can also be done by postfix.
With Rspamd you assign a score, and you can limit the sending of email messages that are above this limit. Or a combination of rules, or any other rule you set.

Of course, if you can pay, and tools are offered to let you know what is happening with your mail messages, yes, is very good, and it would be easier. The point is that most paid antispam gateways offer a standard service.
And if you yourself want to know what you want to do, or need to be done, setting up your own antispam server is better.
In terms of effectiveness and efficiency, the difference precision between a paid server and a Rspamd is negligible. A well configured Rspamd server can learn very well from  theis artificial intelligence algorith (Rspamd Neural Networks), or bayesian score, and there would be no qualitative difference between them. We are potentially talking about numbers on the order of 10^e-4 difference. But for you to make a good configuration it may take some time, on the order of a few months, for you to reach an optimal level. Maybe we didn't have the spamtrap network that paid companies have, and that could make a difference. The use of anti-spam blacklists is not recommended. But you can use the postfix postscreen tool, and make a reputation server, based on a mix score of antispam blacklists.

And, yes, as more processing capacity, better to use more resources in Rspamd, and this cost money, anyway.

Edited by Netino

comment_397
12 hours ago, Netino said:

By using Rspamd, you are actually replacing spamassassin. So, it is completely unnecessary to use it.
IN the case of Opendkim, you are disabling it, but you are not stopping using Opendkim's entire DKIM framework. you use the same files in Rspamd. So, when any changes occur via the CWP panel, Rspamd recognizes them and uses them.

Which Sandeep "line" are you referring to?

Rspamd consumes much less resources than spamassassin, being much more configurable. You can even use spamassassin rules in Rspamd.

Yes, Rspamd allows monitor outgoing mails, but this can also be done by postfix.
With Rspamd you assign a score, and you can limit the sending of email messages that are above this limit. Or a combination of rules, or any other rule you set.

Of course, if you can pay, and tools are offered to let you know what is happening with your mail messages, yes, is very good, and it would be easier. The point is that most paid antispam gateways offer a standard service.
And if you yourself want to know what you want to do, or need to be done, setting up your own antispam server is better.
In terms of effectiveness and efficiency, the difference precision between a paid server and a Rspamd is negligible. A well configured Rspamd server can learn very well from  theis artificial intelligence algorith (Rspamd Neural Networks), or bayesian score, and there would be no qualitative difference between them. We are potentially talking about numbers on the order of 10^e-4 difference. But for you to make a good configuration it may take some time, on the order of a few months, for you to reach an optimal level. Maybe we didn't have the spamtrap network that paid companies have, and that could make a difference. The use of anti-spam blacklists is not recommended. But you can use the postfix postscreen tool, and make a reputation server, based on a mix score of antispam blacklists.

And, yes, as more processing capacity, better to use more resources in Rspamd, and this cost money, anyway.

 

Thank you so much Netino for your comprehensive answer!

I'm guessing it's not available from CWP's paid support, so would you be willing to offer a similar configuration and at what price?

PS: you can also reply to me in a private message.

comment_405

I appreciate the deference, and the memory, thank you!

But to be able to carry out a successful installation, it is necessary to know your email server, in detail how it works: its security, its blocks, its permissions, its redirects, your politics in DKIM, SPF, DMARC, ARC, ..., the problems of your users, and this takes time. And unfortunately I can't help you with this installation, due to a matter of time. I don't have time this month, and I surely won't have time next month either. May be in another, too.
Maybe on the CWP Forum itself, or even on the Rspamd forum, you can find someone who can help you.

Edited by Netino

comment_407
On 1/6/2024 at 7:31 PM, Netino said:

I appreciate the deference, and the memory, thank you!

But to be able to carry out a successful installation, it is necessary to know your email server, in detail how it works: its security, its blocks, its permissions, its redirects, your politics in DKIM, SPF, DMARC, ARC, ..., the problems of your users, and this takes time. And unfortunately I can't help you with this installation, due to a matter of time. I don't have time this month, and I surely won't have time next month either. May be in another, too.
Maybe on the CWP Forum itself, or even on the Rspamd forum, you can find someone who can help you.

I understand thank you!

Only one question can you make me know how to make limit from 5 e-mail (for example) for minute for every e-mail?

For exmple:

one@example.com send 3 emails - it's OK

Two@example.com send 300 emails -will be blocked

 

  • Author
comment_412
On 1/7/2024 at 10:29 PM, Plamen K. said:

I understand thank you!

Only one question can you make me know how to make limit from 5 e-mail (for example) for minute for every e-mail?

For exmple:

one@example.com send 3 emails - it's OK

Two@example.com send 300 emails -will be blocked

 

Yes this is good question ... or better way to filtering incoming and outgoing e-mail?

comment_414
On 1/7/2024 at 5:29 PM, Plamen K. said:

I understand thank you!

Only one question can you make me know how to make limit from 5 e-mail (for example) for minute for every e-mail?

For exmple:

one@example.com send 3 emails - it's OK

Two@example.com send 300 emails -will be blocked

 

There are some examples here:

https://rspamd.com/doc/modules/ratelimit.html

You can define any arbitrary limit to your server.

# local.d/ratelimit.conf
  rates {
    # Selector based ratelimit
    some_limit = {
      selector = 'user.lower';
      # You can define more than one bucket, however, you need to use array syntax only
      bucket = [
      {
        burst = 100;
        rate = "10 / 1min";
      },
      {
        burst = 10;
        rate = "100 / 1min";
      }]
    }
    # Predefined ratelimit
    to = {
      bucket = {
        burst = 100;
        rate = 0.01666666666666666666; # leak 1 message per minute
      }
    }
    # or define it with selector
    other_limit_alt = {
      selector = 'rcpts:addr.take_n(5)';
      bucket = {
        burst = 100;
        rate = "1 / 1m"; # leak 1 message per minute
      }
    }
  }

As that page mentions, "In Rspamd, the fundamental concept of ratelimiting is known as the leaked bucket principle. This approach can be illustrated as a bucket with a limited capacity and a small hole at the bottom. As messages are received, they accumulate in the bucket and are gradually released through the hole, without any delay but instead are counted. Once the bucket’s capacity has been reached, a temporary rejection is triggered, unless the remaining space is adequate for additional messages to be accepted. Since the messages are continuously leaking, the bucket’s capacity is eventually restored, enabling the processing of new messages after a certain amount of time."

 

comment_415
On 1/10/2024 at 4:36 AM, torettos said:

Yes this is good question ... or better way to filtering incoming and outgoing e-mail?

You can define outgoing limit too, limiting the authenticated user limit:

user: limit per authenticated user (useful for outbound limits)

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Posts