Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Request Interface for Spam Topic is solved

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
16 posts
  • 1
  • 2
  • Next
rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
Request Interface for Spam
  • Quote

Post by rj2010ism » Thu Jan 03, 2019 11:16 am

Hi is there a way to control the spam and monitor what mail address is sending continues mail?

Iv seen something called rSpamd that looks nice...

Also is there a fail2ban for web-mail clients? say if tried 4times on web client and failed they will be blocked?




regards..
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by dreiggy » Thu Mar 14, 2019 11:15 pm

Hi,
you may try to replace spamassassin with rspamd. I have writed an article how to do this here.
Last edited by dreiggy on Sun Mar 24, 2019 7:22 pm, edited 1 time in total.
Top

rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by rj2010ism » Sun Mar 24, 2019 12:00 pm

I tried to follow the steps but don't understand a few parts..

can you please make a video or a manual with pictures..

Also im using CentOs 6.10 i found to much problems with CentOs 7

Thanks...
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by dreiggy » Mon Mar 25, 2019 4:51 pm

Please clarify what parts are not understandable for you? Where are you stuck?
Top

rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by rj2010ism » Mon Mar 25, 2019 8:01 pm

Iv figured it out and got it to work after some confusing thanks alot!....

It works almost great! nice but it doesn't show:


# what sender is blocked for example [email protected] message for [email protected] is spam
# cant detect virus signature...


also can rSPAMD be configured to detect internal mail spam before sending it? example say domain1.tld have a user on that domain and the userPC is infected sending out spam can it be blocked if the same message sent multiple times?

also is there a way to block specific domains as spam?



Thanks...
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by dreiggy » Mon Mar 25, 2019 8:22 pm

rj2010ism wrote: ↑
Mon Mar 25, 2019 8:01 pm
# what sender is blocked for example [email protected] message for [email protected] is spam
# cant detect virus signature...
At my configuration rspamd only discard high score spam mails. If mail is marked as spam, then rspamd add spam header: X-Spam-Status: Yes
and exim router should route to spamdelivery transport.

You may configure scores in rspamd web-console:
Image

Rspamd and spamassassin they are for spam scanning. For virus signatures, you should enable clamav scan.
rj2010ism wrote: ↑
Mon Mar 25, 2019 8:01 pm
also can rSPAMD be configured to detect internal mail spam before sending it? example say domain1.tld have a user on that domain and the userPC is infected sending out spam can it be blocked if the same message sent multiple times?
It may should be configured in exim ACL section. You can read here about exim integration: https://www.rspamd.com/doc/integration.html

You can replace:

Code: Select all

  warn   !authenticated = *
         hosts          = !+relay_from_hosts
         condition      = ${if < {$message_size}{200K}}
         condition      = ${if eq{$acl_m1}{yes}{yes}{no}}
         spam           = nobody:true
to:

Code: Select all

  # do not scan messages submitted from our own hosts
  # +relay_from_hosts is assumed to be a list of hosts in configuration
  accept hosts = +relay_from_hosts

  # do not scan messages from submission port (or maybe you want to?)
  accept condition = ${if eq{$interface_port}{587}}

  # skip scanning for authenticated users (if desired?)
  accept authenticated = *

  # scan the message with rspamd
  warn spam = nobody:true
rj2010ism wrote: ↑
Mon Mar 25, 2019 8:01 pm
also is there a way to block specific domains as spam?
To block or whitelist specific domains you should add them to these files:

Code: Select all

hostlist whitelist = net-iplsearch;/etc/exim/white-blocks.conf
hostlist spammers = net-iplsearch;/etc/exim/spam-blocks.conf
Top

rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by rj2010ism » Tue Mar 26, 2019 6:55 pm

Dreiggy

is there a way to set the password correctly for rspamd?

at the moment i found a way around..

i edited this:

etc/rspamd/worker-controller.inc

added the line:
secure_ip = "192.168.100.12";

this allows me to login to the webgui without password cause the password i set during rspamadm config wizard doesnt work..
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by dreiggy » Wed Mar 27, 2019 1:17 pm

rj2010ism wrote: ↑
Tue Mar 26, 2019 6:55 pm
Dreiggy

is there a way to set the password correctly for rspamd?

at the moment i found a way around..

i edited this:

etc/rspamd/worker-controller.inc

added the line:
secure_ip = "192.168.100.12";

this allows me to login to the webgui without password cause the password i set during rspamadm config wizard doesnt work..
Here is described how to set password manually: https://www.rspamd.com/doc/quickstart.html
Find title: Setting the controller password
Top

rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by rj2010ism » Wed Mar 27, 2019 4:30 pm

Thanks..
Top

rj2010ism
Posts: 30
Joined: Thu Jan 03, 2019 11:04 am

Os: CentOS 5x
Web: apache + nginx
Re: Request Interface for Spam
  • Quote

Post by rj2010ism » Sun Apr 14, 2019 1:19 pm

Iv tried the password steps. didn't work for me.
also iv tried the steps you explained also didn't work.. didn't scan internal mail for possible spam when sending mail..
or maybe i just did it wrong?
Top


Post Reply
  • Print view

16 posts
  • 1
  • 2
  • Next

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password