![]() # mkdir -m 755 /var/qmail/supervise/spamd/log # mkdir -m 1755 /var/qmail/supervise/spamd We are now going to run SpamAssassin via daemontools: I have mine set at 3.9 right now and seems to be catching a lot of spams. Required_score - Uncomment this and set this to around 4.3 or so. Lock_method flock - Leave this commented. We define this globally in qmail in the /etc/tcp/smtp file. ![]() This just leaves the message as Spam or Ham and does not save it as an attachment. Rewrite_header Subject :SPAM: - uncomment this line and add :SPAM: as the subject ![]() If you are using qmail-scanner then this line will need to be commented (#). If you plan on using simscan you will have to change the rewrite_header Subject as seen below. I will list them individually: NOTE about simscan or qmail-scanner In local.cf we want to set a few options in here. What we need to do is get local.cf setup so run the following: We will not be going over them as they are optional settings. init.pre and v310.pre have many different options to choose from. sample files and the 2 others are your SpamAssassin global options. If you cd to /usr/local/etc/mail/spamassassin/, you will see 4 files. Net::Patricia - /usr/ports/net/p5-Net-PatriciaĪfter running the above command, lets clean up the install: LWP::UserAgent - /usr/ports/www/p5-LWP-UserAgent-POE Mail::DKIM - /usr/ports/mail/p5-Mail-DKIM IO::Socket::INET6 - /usr/ports/net/p5-IO-Socket-INET6 Net::CIDR::Lite - /usr/ports/net/p5-Net-CIDR-Lite Here are the port locations for the optional plugins:ĭigest::SHA1 - /usr/ports/security/p5-Digest-SHA1 If you reinstall and it still doesn't work, I would suggest looking at the support options on the left. I have you run this because if it shows something OTHER than the optional modules, you may just want to reinstall the spamassassin port again. All you need to do is install the perl module for it and then uncomment it in v310.pre. The optional modules are configured in /usr/local/etc/mail/spamassassin/v310.pre. Don't worry about any optional modules unless you want to install and use them. # /usr/ports/mail/spamassassin/work/Mail-SpamAssassin-3.x.x/build/check_dependencies For instance if you are running SpamAssassin 3.1.0, you would substitute 3.1.0 for the 3.x.x in the following command: Please change the version of SpamAssassin in the command below. When you install SpamAssassin via ports, it will check to see if it needs to install any of the required perl dependancies which makes things easy to install and setup. We will now want to double-check the perl dependancies after SpamAssassin is installed. To check the setting, Just hit the spacebar when the cursor is over the selected option: Lets just make sure the settings below are checked. When you run this, You will get a pop-up box asking to enable a few things. When we install SpamAssassin from ports, it installs all the required Perl Modules for us which makes installing SpamAssassin really, Really easy! Start be doing the following: SpamAssassin is a mail filter which attempts to identify spam using text analysis and several internet-based realtime blacklists.
0 Comments
Leave a Reply. |