View Full Version : To impliment SpamBlocker...
I'm looking to implement SpamBlocker today as it looks great and SpamAssasin is really taking over system resources.
I want to verify that I am going through the correct procedure before I begin and think it might help some others aswell.
To go about this implementation:
1. I would want to back up /etc/exim.conf
2. Download http://www.nobaloney.net/downloads/spamblocker/DirectAdmin/exim.conf.spamblocked
Then download and replace:
http://files.directadmin.com/services/exim.pl
and change example.com to a new whitelist webpage with a form that I would create.
3. Then I would need to rename exim.conf.spamblocked to exim.conf and replace the old exim.conf.
4.Add all domains into the /etc/virtual/use_rbl_domains file, one on each line in the format of "example.com".
5. Go into the DA control panel and restart the exim service.
Does this sound like a correct explanation to everyone?
Thank you
Duboux
08-02-2007, 09:43 AM
Your step 4 should already be done by DA.
And most things can actually done without needing to access shell.
(if u'd keep a copy of exim.conf in notepad locally)
1.
I would first check if u have the latest Exim 4.67, which u can do in DA's System Information, or shell: # exim -C /config/file.new -bV
If you have an old version: go here (http://help.directadmin.com/item.php?id=126) plus (if needed) here (http://directadmin.com/forum/showpost.php?p=101551&postcount=16)
After updating Exim, check the version again to be safe.
2.
Create the following 7 files:
/etc/virtual/bad_sender_hosts
/etc/virtual/blacklist_domains
/etc/virtual/blacklist_senders
/etc/virtual/use_rbl_domains
/etc/virtual/whitelist_domains
/etc/virtual/whitelist_hosts
/etc/virtual/whitelist_senders
if exists: /etc/virtual/whitelist_from
copy its contents into these 3 files:
/etc/virtual/whitelist_domains
/etc/virtual/whitelist_hosts
/etc/virtual/whitelist_senders
if exists: /etc/virtual/whitelist_from
remove the file: /etc/virtual/whitelist_from
3.
Download the http://www.nobaloney.net/downloads/spamblocker/DirectAdmin/exim.conf.spamblocked file, and replace "http://example.com" with your own url towards your selfmade explenation page. (so blocked non-spammers get a chance to get on your white list)
Either edit this file in VI or in notepad.
4.
Make a copy of your current version of /etc/exim.conf
Overwrite /etc/exim.conf with the new edited+downloaded file from step 3.
You can do this in DA's File editor, or use VI in shell.
5.
restart Exim.
Either use DA's Service Monitor, or shell: # /etc/init.d/exim restart
6.
Don't forget to make that page to give the blocked non-spammers a change to get on the white list ;)
I have Exim 4.60, that is new enough to implement SpamBlocker?
I do not have anything contained with the use_rbl_domains file, should I then need to add each domain in the format of "example.com" to that file still?
To whitelist a person I would put there email domain within the /etc/virtual/whitelist_domains file?
Thank you for your reply
FYI after I implimented this I recieved an error listed below:
Remote host said: 550 "Unknown User"
To fix this I added the new exim.pl file.
So far SpamBlocker is working wonders and its only been a few minutes =)
Thanks for reading
Duboux
08-02-2007, 06:04 PM
I have Exim 4.60, that is new enough to implement SpamBlocker?
Yup, u need at v4.24 from April 20th '07. (see first 5 lines (http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/ReadMe.SpamBlocker.exim.conf.2.1.1.txt))
I do not have anything contained with the use_rbl_domains file, should I then need to add each domain in the format of "example.com" to that file still?
Then it doesn't work for your users. Add their domains in there to make it work for them.
4) Add a file /etc/virtual/use_rbl_domains
This file should contain the domain names (as they're used
for email, in most cases without the "www." prefix), of the
domains for which you want SpamBlocker turned on. If you
want SpamBlocker turned on for all domains, then this should
be created as a symbolic link to /etc/virtual/domains.
To whitelist a person I would put there email domain within the /etc/virtual/whitelist_domains file?
You can either whitelist the email address in: /etc/virtual/whitelist_senders (like: Joe@example.com)
or whitelist the entire domain in: /etc/virtual/whitelist_domains (like: example.com)
5) Add a file /etc/virtual/whitelist_domains
This file should contain any domains to be whitelisted.
A domain is defined as the right side of the "@" sign in an
email address.
6) Add a file /etc/virtual/whitelist_hosts
This file should contain any hostnames to be whitelisted.
A host is defined as the IP# or name of the server connecting
to deliver a message (the "ehlo" name).
7) Add a file /etc/virtual/whitelist_senders
This file should contain complete email addresses to be
whitelisted. Note that the email address comes from the
envelope sender, and not from any header in the email.
FYI after I implimented this I recieved an error listed below:
Remote host said: 550 "Unknown User"
To fix this I added the new exim.pl file.
So far SpamBlocker is working wonders and its only been a few minutes =)
Thanks for reading
Interesting... Check here: http://directadmin.com/forum/showthread.php?t=20261 (post 4)
jlasman
08-02-2007, 06:43 PM
Your step 4 should already be done by DA.
Not true. By default /etc/virtual/use_rbl_domains is empty.
1. I would first check if u have the latest Exim 4.67, which u can do in DA's System Information, or shell: # exim -C /config/file.new -bV
Exim 4.60 should be late enough, though I'd update if it were me.
Jeff
jlasman
08-02-2007, 06:46 PM
I have Exim 4.60, that is new enough to implement SpamBlocker?
Should be, though I'd update.
I do not have anything contained with the use_rbl_domains file, should I then need to add each domain in the format of "example.com" to that file still?
Yes. Alternatively you can delete the empty file and recreate it as a link to /etc/virtual/domains, but then all your domains will use SpamBlocker; you won't be able to pick and choose.
To whitelist a person I would put there email domain within the /etc/virtual/whitelist_domains file?
That's one way. You can also whitelist by hostname or IP#, or by individual sender (so, for example, you can whitelist myself@aol.com without whitelisting everyone at aol.com).
Jeff
Duboux
08-02-2007, 06:46 PM
Not true. By default /etc/virtual/use_rbl_domains is empty.
Then I found a mistery :D
I didn't add the domains, and am glad I didn't have to :)
Maybe something happened as I also had a former version of SB2.
jlasman
08-02-2007, 06:52 PM
If you already were running any version of SpamBlocker then you may have create the file. Or you may have a copy of one of the plugins; they manage the file for you.
Or you may have a symbolic link.
Since SpamBlocker is installed in DirectAdmin by default, and since some admins may not want to use it, it's never filled the /etc/use_rbl_domains file.
Jeff
Thank you for the responses.
So far so good today, the load has dropped dramatically :)
Waiting to see what a new day brings of this configuration.
I don't think I mentioned above but if any of you are following these details to implement the spamblocker and still would like to use spamassasin behind it don't forget to uncomment it in the exim.conf file as I almost forgot to do.
-Tom
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.