AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install spamassassin3/25/2023 ![]() ![]() Do you wish to rewrite the subject of a spam email? If you would like to rewrite the spam email subject as “*SPAM*” or anything else custom, then configure this option.Ĩ. “ Would you like to delete high scoring spam?” Here, configure the action if you want to delete or keep the emails that hit the selected threshold.ħ. What score threshold do you wish to use? Select the threshold limit (Low, Medium, High) or enter the custom threshold limit from 0-10.Ħ. Where do you want the spam to go? Here select the appropriate option where you would like to receive the Spam Emails (Inbox, Spam, Junk, Etc).ĥ. To start the setup, click on ENABLE SPAMASSASSIN.Ĥ. Navigate to Email Manager → SpamAssassin Setup.ģ. First, to login into DirectAdmin control panel visit, Learn, How to Enable and Configure SpamAssassin in DirectAdmin?ġ. Through SpamAssassin, you can get shed of thousands of Spam Emails from your mailbox and save the storage consumptions. Now restart qmail in order for the changes to take effect.SpamAssassin is all in one set of configurable rules through which you can set up the filters for every incoming email to avoid spam. # svc -t /service/spamd /service/spamd/logĪll of the lines above should now look like this. # svc -d /service/spamd /service/spamd/log # svc -u /service/spamd /service/spamd/log In order to control spamassassin from qmailctl we need to edit this file /usr/bin/qmailctl find the following lines and remove the # mark. service/spamd/log/: up (pid 675) 1456 secondsĭelete the original startup script that Spamassassin created under the installation so it doesn’t startup twice. service/spamd/: up (pid 667) 1456 seconds You should get an output very much like below. ![]() svstat /service/spamd/ /service/spamd/log/ ln -s /var/qmail/supervise/spamd /service/Īnd let’s check if things a woring as intended. Mkdir -m 755 /var/qmail/supervise/spamd/logĮnable the service. “Setting up Spamassassin To Be Run By Daemontools” mkdir -m 1755 /var/qmail/supervise/spamd The error message will tell you what to look for. If there are errors it’s probably just typos. If this runs without errors we can continue. Now let’s check if the configuration files have any errors. # WhitelistSubject - Whitelist/Blacklist certain subject regular expressions Loadplugin Mail::SpamAssassin::Plugin::WhiteListSubjectĪnd below “WhiteListSubject” add the following line like this. Now lets enable IP Country this in done in the file /usr/local/etc/mail/spamassassin/v310.pre find the following line. In order to catch a bit more spam we will install a few extra modules. We need to fetch the latest “SA” rules this is a simple one line command. I have mine set to 3.4 and i have not gotten any false positives yet but still catching tons of spam. Remove the # mark and set a score that will mark mails as spam. So we need to edit this file /usr/local/etc/mail/spamassassin/local.cf in that file find the following line. Trusted networks will bee handled through the “smtp.cdb”. “Qmail-Scanner” will do the rewriting of the subject header for us. We need to edit 1 line and 1 line only don’t edit anything else. Right let’s get the configuration files in place and modify them to our needs. It does however install them and gives you the option to enable them later on using the SpamAssassin configuration files. Please be aware that even though there are check boxes at various “applications and options” they will not automatically be activated like “Razor or Relay Country” that are checked. For the rest of the popups just accept the default settings. ![]() ![]() Make WITH="RELAY_COUNTRY PYZOR RAZOR" install cleanĭon’t check SPF_QUERY as the “Smtp Run File” already has this option built in. Installing SpamAssassin cd /usr/ports/mail/spamassassin Internet, point your browser at, the Perl Home Page. This system using "man perl" or "perldoc perl". GNU General Public License, which may be found in the Perl 5 source kit.Ĭomplete documentation for Perl, including FAQ lists, should be found on Perl may be copied only under the terms of either the Artistic License or the This is perl 5, version 24, subversion 1 (v5.24.1) built for amd64-freebsd-thread-multi You will get an output with the version number of perl among other things. You can check your perl version like this. I would highly recommend you to use perl 5.24 the current version shipped with FreeBSD. Even so perl is a requirement but changes are that you already have perl installed. On the other hand I also assume you are running qmail. Right I assume you know that spamassassin is a perl thing. If that’s not enough there’s also a guide on catching more spam with SpamAssassin. This guide will have you run a simple setup. Oh boy the battle to get back in control of your mailbox. A Step By Step Guide On How To Install SpamAssassin On FreeBSD ![]()
0 Comments
Read More
Leave a Reply. |