Tell me how to beat spam.

Started by mRsnop1, Jul 29, 2022, 02:11 PM

Previous topic - Next topic

mRsnop1Topic starter

What is .. there is a server and DirectAdmin on it. Everything is great and good, but the mail spam got it. Falls in megatons.
Are there any out-of-the-box DirectAdmin add-ons to stop at least some of this flow? Or software solutions? spam defense is too expensive ..
  •  

AdahTrudy

built-in spam protection function Spamassassin. The function itself is disabled by default in the DirectAdmin control panel, so we will need to activate this function using ssh.

If you are not familiar with ssh yet, do not worry, I will tell you everything in detail and show you. In general, I will give, as always, a complete step-by-step instruction. So:

Spamassassin
First you need to download and install the PUTTY program. I think there will be no problems with the installation, if anything, write in the comments.
Next, you need to log in to putty and enter your username and password. After that, you need to write the next line of the command and press ENTER.
yum install spamassassin -y
After that, you write
the mc command
You get into the Mortal Commander panel
Go to the exim.conf file and press F4 (edit file)
/etc/exim.conf
A file will open for editing, where you will need to find something like these lines
# Spam Assassin
# Spam Assassin
#spamcheck_director:
#  driver = accept
#  condition = "${if and { \
#      {!def:h_X-Spam-Flag:}  \
#      {!eq {$received_protocol}{spam-scanned}}  \
#      {!eq {$received_protocol}{local}}  \
#      {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}}  \
#      {
#    } {1}{0}}"
#  retry_use_local_part
#  transport = spamcheck
#  no_verify

Now you need to uncomment them all, i.e. remove the # icons, except for the first line of Spam Assassin, you need to leave the # sign opposite it.
Next, save this file by clicking the SAVE button at the bottom of the Mortal Commander panel.
That's it, now press exit Quit and enter the last command in the line putty
/sbin/service exim restart
Go to DirectAdmin and click the link Spamassassin Setup.
/sbin/ service exim restart
That's it, Spamassassin has been successfully installed.
  •