Hestia add spamassassin and clamav

So, u installed Hestia as ur control panel. And you gonna use it for your email server. And then you found that there is no spam filter and clamav even you selected the option for them during the installation.

It was bcs the Hestia install script will check ur vps memory, if lower than 4GB (not sure the exact size but) it will skip those two.

 

Anyway, I m in lightsail and I m planing run small jobs but need those two buddy, I have created swap for it, I just need them to spin up.

let’s manually install them first.

Config Spamassassin

Config CalmAV

Config Hestia

Now we have both service ready, let’s add them into Hestia CP!

Edit this file /usr/local/hestia/conf/hestia.conf , add two lines at the top of the file:

Now if you back to Hestia, in settings page, you can see those two services in the list.

Just one more thing, find exim4 in the list, edit the config, then make sure following content is at the top of the configs and un-comment.

Something more

So, here it’s pretty straight forward that we make exim4 enabled those two services. (Or one of them if you like). I want mark bit more for the scores. For SPAM_SCORE , it’s the limit for sa to consider if the new email is spam. In the log /var/log/mail.log  it will show as 5.x, e.g., 50 here will be 5.0, and if you change it here, the 5.0 in log wont change…. Just ignore it anyway. A clean, and normal email should be scored below 0, as recommend from sa document, 50 (aka 5.0) is pretty aggressive already, good for individual user, if you are ISP, u might want bit higher in case your client complain lol.

So, for the other one, SPAM_REJECT_SCORE it means nothing if you not tick the box for “reject spam”, however, if you did, any spam higher than the value, will be rejected, the email will not show in your mail box at all. And the sender will likely get an notification of failed to send at their end.

 

Wrap up

All the cmd from the Hestia official installation script here: https://github.com/hestiacp/hestiacp/blob/main/install/hst-install-ubuntu.sh

And a lot help from this post: https://forum.hestiacp.com/t/add-clamav-spamassassin-after-installation/8456

本文由 落格博客 原创撰写:落格博客 » Hestia add spamassassin and clamav

转载请保留出处和原文链接:https://www.logcg.com/archives/3876.html

About the Author

R0uter

如非声明,本人所著文章均为原创手打,转载请注明本页面链接和我的名字。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注