To impliment SpamBlocker...

TMMM

Verified User
Joined
Oct 29, 2006
Messages
48
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

Verified User
Joined
Apr 20, 2007
Messages
264
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 plus (if needed) here
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 ;)
 
Last edited:

TMMM

Verified User
Joined
Oct 29, 2006
Messages
48
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
 
Last edited:

TMMM

Verified User
Joined
Oct 29, 2006
Messages
48
yikes

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
 
Last edited:

Duboux

Verified User
Joined
Apr 20, 2007
Messages
264
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)

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.
Code:
4) Add a file [COLOR="Blue"][B]/etc/virtual/use_rbl_domains[/B][/COLOR]
   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)
Code:
5) Add a file [COLOR="Blue"][B]/etc/virtual/whitelist_domains[/B][/COLOR]
   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 [COLOR="Blue"][B]/etc/virtual/whitelist_hosts[/B][/COLOR]
   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 [COLOR="Blue"][B]/etc/virtual/whitelist_senders[/B][/COLOR]
   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)
 
Last edited:

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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

Verified User
Joined
Apr 20, 2007
Messages
264
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.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 

TMMM

Verified User
Joined
Oct 29, 2006
Messages
48
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
 
Last edited:
Top