PDA

View Full Version : SpamBlocker2.1 available now


jlasman
05-29-2007, 08:28 PM
I've just released SpamBlocker2.1.

Currently it can only be found on my website at:

http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/

This is NOT just a plugin replacement, but to save you the effort of reading the new ReadMe file, I'll explain the changes here:

We've removed a lot of blocklists and included the blocklists I'm now testing with good results. While these may or may not be the same blocklists we use in SpamBlocker3, they are the blocklists I'm currently using with good result (see my Current Test Results (http://www.directadmin.com/forum/showthread.php?t=19030)).

And of course when you download the new file it will include instances of example.com in a lot of places; before making this your working exim.conf file be sure to replace them with a link to your own spamblock explanation page so users with occasional false positives will get a meaningful error message.

If you're using SpamBlocker2 we recommend installing SpamBlocker2.1 immediately.

Jeff

jca
05-29-2007, 10:37 PM
Thanks!!! I just wonder... what file to use? Blocked or Blocker?

Thanks again

Jose

Edit:

I updated using SpamBlocker.exim.conf.2.1-release and did a line by line compare for differences. Restarted and it seems to be working great. A nice idea would be to include ClamAV options (commented as spamassassin) so it would be easier to update (just my thought) Thanks for the update, I will report on spam levels (although I don't get much)

tlchost
05-30-2007, 02:42 AM
I've just released SpamBlocker2.1.

And of course when you download the new file it will include instances of example.com in a lot of places; before making this your working exim.conf file be sure to replace them with a link to your own spamblock explanation page so users with occasional false positives will get a meaningful error message.
Jeff

I'd appreciate a link to a working spamblock explanation page....figure most folks will have worded it better than I can.

thanks

jca
05-30-2007, 02:46 AM
I'd appreciate a link to a working spamblock explanation page....figure most folks will have worded it better than I can.

thanks

Great idea... I just link it to a generic "this mail might be spam" kind of page without many details...

jlasman
05-30-2007, 09:24 AM
Thanks!!! I just wonder... what file to use? Blocked or Blocker?
They're both links to the same file. Back in the old days we've called it both. Starting with SpamBlocker3 the problem no longer exists ;) .
I updated using SpamBlocker.exim.conf.2.1-release and did a line by line compare for differences.
Did you change the references to example.com so any senders getting a false positive (there are few, but it can and sometimes does, happen) will get a meaningful error message?
Restarted and it seems to be working great. A nice idea would be to include ClamAV options (commented as spamassassin) so it would be easier to update (just my thought)
I can't. Because these forums include at least three different methods for using ClamAV. All we can distribute is the vanilla file. Changes are up to you.

This too will change with SpamBlocker3, but only because we support by default only one of those installs, and a totally new way of calling it, that doesn't require MailScanner.
Thanks for the update, I will report on spam levels (although I don't get much)
Great.

And now the bad news; we'll be issuing 2.1.1 so our version matches the DA version. It will require the latest exim.pl be installed, and both the latest exim.pl and the SpamBlocker exim.conf will be available on our site and on the official DA site.

An announcement will be made as soon as everything's available.

Jeff

jlasman
05-30-2007, 09:27 AM
I'd appreciate a link to a working spamblock explanation page....figure most folks will have worded it better than I can.
You can use almost everything on my page, here (http://www.spamblocked.net/blocked.html).

Here's what you can't use: You cannot send people to my address to get whitelisted; our system checks to make sure the destination domain is hosted on our servers and if it isn't we send back a note telling them we can't unblock them because we didn't block them in the first place.

And you can't use those two spinning graphics at the top of the page; we don't own them so we can't give you rights to them.

Jeff

jlasman
05-30-2007, 09:29 AM
Great idea... I just link it to a generic "this mail might be spam" kind of page without many details...
I've discussed this with DirectAdmin staff, and at some point in the future we'd like to include something that creates a page on your server at installation time, based on the servername, and automatically customizes your exim.conf file.

It could happen some day ;) .

Jeff

jlasman
05-30-2007, 09:31 AM
We'll be issuing 2.1.1 as soon as possible so our version matches the DA version. It will require the latest exim.pl be installed, and both the latest exim.pl and the SpamBlocker exim.conf will be available on our site and on the official DA site.

An announcement will be made as soon as everything's available.

jca
05-30-2007, 10:54 AM
We'll be issuing 2.1.1 as soon as possible so our version matches the DA version. It will require the latest exim.pl be installed, and both the latest exim.pl and the SpamBlocker exim.conf will be available on our site and on the official DA site.

An announcement will be made as soon as everything's available.

Excellent, if possible please inform of which lines to change (or something) so it's quicker for the people that have installed 2.1. If it's too much trouble I will do a line per line compare.

Thanks!

Jose

jlasman
05-30-2007, 10:56 AM
I'll publish the diff :) .

Jeff

jca
05-30-2007, 11:00 AM
Thanks!!! I'll be checking around for news.

johannes
05-30-2007, 07:56 PM
Is there a way to see if the new exim.conf v2.1 is used ?
Thank you

Jo

jlasman
05-30-2007, 08:55 PM
Sure. From a shell prompt:
head -3 /etc/exim.conf
If you're running SpamBlocker2 the exact version will be shown.

Jeff

RadMan
05-31-2007, 09:13 PM
Is there someplace a person can go to see a demo of this software?

jlasman
05-31-2007, 10:53 PM
Sure, any properly configured DA system.

DirectAdmin has included SpamBlocker for years. Two or three at least.

Jeff

RadMan
06-01-2007, 05:20 AM
Sure, any properly configured DA system.

DirectAdmin has included SpamBlocker for years. Two or three at least.

Jeff


OK.. SO I guess somebody forgot to activate mine... :(

Where do I find it in the admin panel or how do I activate it so Admin can make use of this feature...

I shoulda been a dentist... :(

floyd
06-01-2007, 09:30 AM
OK.. SO I guess somebody forgot to activate mine...

That would be you.

Where do I find it in the admin panel or how do I activate it so Admin can make use of this feature...

Its not. You have to use SSH and make use of the /etc/virtual/use_rbl_domains file.

There is plenty of explanations on this forum on how to use it.

Basically all you have to do is copy all the domains that you want to use spamblocker to /etc/virtual/use_rbl_domains. Or you could either create a symlink from /etc/virtual/use_rbl_domains to /etc/virtual/domains or change the line in exim.conf from /etc/virtual/use_rbl_domains to /etc/virtual/domains

Change the example.com lines in exim.conf to form whatever message you want sent back to the sending server.

If you want it to be in the DA admin section then get your programmers to write a plugin for it.

jlasman
06-01-2007, 03:16 PM
Just a reminder that there are two commercial plugins for it. They're not expensive. I have no idea if either is still supported; I have no idea if either works with newer versions of SpamBlocker.

Jeff

smtalk
06-02-2007, 03:11 AM
The latest exim.conf file (that is in DirectAdmin servers):
2007-06-02 04:20:27 failed to expand condition "${perl{save_virtual_user}}" for virtual_user router: Undefined subroutine &main::save_virtual_user called.

Edit: exim.pl file was old, without "save_virtual_user"

RadMan
06-02-2007, 09:27 AM
Let's try this again...

Where do I find this SpamBlocker feature in the admin panel and how do I activate it sol one can make use of this feature...

smtalk
06-02-2007, 09:43 AM
It's not a plug-in of DirectAdmin or something like that, it's just like a "configuration" file, so you won't be able to access it via DirectAdmin (change its settings etc.).

RadMan
06-02-2007, 09:50 AM
Thanks for the response Martynai.. :)

Can you recommend a supported plugin that can be administered via the DA admin panel?

Cheers

smtalk
06-02-2007, 10:11 AM
SpamBlocker plugin: http://www.directadmin.com/forum/showthread.php?t=10049

tlchost
06-02-2007, 11:32 AM
Let's try this again...

Where do I find this SpamBlocker feature in the admin panel and how do I activate it sol one can make use of this feature...

You don't...it's not there. Floyd told you yesterday how to do it in the shell, and Jeff told you that at one time there were commercial plugins available.

Of course, you could reduce everyone's reading time by simply doing it in the shell.

The other alternative is to find a provider who will do all this nuisance stuff for you.

RadMan
06-02-2007, 11:56 AM
You don't...it's not there. Floyd told you yesterday how to do it in the shell, and Jeff told you that at one time there were commercial plugins available.

Of course, you could reduce everyone's reading time by simply doing it in the shell.

The other alternative is to find a provider who will do all this nuisance stuff for you.

Thanks Thom..

Was asking the apparent creator of the software and I didn't realize that he was responding to me about the plugins even though his response would cause one to continue to dwell even deeper into the depths of darkness in order to find a suitable solution...

Would save a lot more time if there were links on this thread to viable commercial plugins so one wouldn't have to waste bandwith or time on this forum.. :)

As for the other guy... I can't see his responses and he knows that I can't, so I have no idea why he continues to persist in responding to my queries but then again I really don't want to know why anyway..

Cheers...

RadMan
06-02-2007, 12:00 PM
SpamBlocker plugin: http://www.directadmin.com/forum/showthread.php?t=10049

Thanks.. But it looks like that guy is outta business as there appears to be quite a few irritated customers on that thread...

Somebody should delete the advertisement so people wouldn't have to go through 17 pages of postings to find out.. LOL

tlchost
06-02-2007, 12:21 PM
Would save a lot more time if there were links on this thread to viable commercial plugins so one wouldn't have to waste bandwith or time on this forum.. :)

OR...if you simply learned how to use the shell, or if that's not possible. hire a System Adiministrator.

As for the other guy... He's "tuned out" as I don't want my blood pressure to boil no more .. :)))

Well, now there's a problem...you ask for help, we all read it, and when someone tells you how to do it(even if it is via the shell), you have them blocked....so we all get to read more, wondering why you still need help.

But who knows, maybe there are not more offers of help because folks might have you blocked?

Ah, and then there's the old adage:
"The Lord helps those that help themselves"

RadMan
06-02-2007, 12:26 PM
Nuff said.. Not worth expounding upon.

scarecrow
06-02-2007, 07:08 PM
A simple search on this forum for spamblocker plugin also produces this thread for another company.

http://www.directadmin.com/forum/showthread.php?t=16451

It might be useful. I have never tried it. Maybe they will give you some kind of demo or trial license.

RadMan
06-03-2007, 08:54 AM
A simple search on this forum for spamblocker plugin also produces this thread for another company.

http://www.directadmin.com/forum/showthread.php?t=16451

It might be useful. I have never tried it. Maybe they will give you some kind of demo or trial license.

Nice one.. Iinstalled and is working justafine.. :)

Cheers

tlchost
06-03-2007, 11:46 AM
We'll be issuing 2.1.1 as soon as possible so our version matches the DA version. It will require the latest exim.pl be installed, and both the latest exim.pl and the SpamBlocker exim.conf will be available on our site and on the official DA site.

An announcement will be made as soon as everything's available.

Did I miss the announcement?

Thom

jlasman
06-04-2007, 12:05 PM
Where do I find this SpamBlocker feature in the admin panel and how do I activate it sol one can make use of this feature...
It's not in the control panel. I wrote it to replace the original exim.conf file supplied by DA in 2003 because I wanted the ability to block spam. DA staff decided to include it in DA.

Two companies sell Plugins for it; search these forums, and caveat emptor as a lot of changes are being made to SpamBlocker these months, and I don't know if anyone is supporting the latest versions properly; ask them first.

It's already installed. It's already activated. All you have to do to make it work is copy-and-paste (not cut-and-paste) domain names for which you want it activated, from /etc/virtual/domains to /etc/virtual/use_rbl_domains. Or buy one of the plugins that does that, or write your own.

Or you can delete the empty /etc/virtual/use_rbl_domains file you've got and create a link:
# ln -s /etc/virutal/domains /etc/virtual/use_rbl_domains
If you create the link then all domains, including new domains, will automatically use SpamBlocker, but then I'd recommend the latest version of SpamBlocker (version SpamBlocker2.2, to be released today), or SpamBlocker3-beta (for which the plugins may not work). If you decide to implement SpamBlocker for all domains you should probably let your clients know you've done it.

Also, if you're going to use SpamBlocker I recommend you let your clients know; it's only common courtesy.

Now, why is it so hard to use:

I wrote it for my own use. It does everything I want. DA thought it was a better exim.conf file than the one they were using and decided to use it.

Since it's open source, of course I said yes ;) .

Even if you never enable the SpamBlocking features, it's still a better exim.conf file than the one originally released with DA, since that one was written for Exim3.x and was converted automatically through an automatic conversion program for Exim4.

After SpamBlocker3 is released I'll be working on MailBlockerPro, which will include a plugin interface to DirectAdmin, but will be a commercial product.

Jeff

jlasman
06-04-2007, 12:57 PM
Did I miss the announcement?
Nope. Not done yet :( . Today. Either as 2.1.1 or 2.2, depending on what changes I've had to make.

Jeff

jlasman
06-07-2007, 12:59 PM
SpamBlocker2.1.1 has just been released; see the new post in this section. It's a recommended update.

Jeff

tlchost
06-07-2007, 01:27 PM
I've just released SpamBlocker2.1.

Currently it can only be found on my website at:

http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/



Not knowing whether I needed the exim.pl there, I attempted to download it and got:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@nobaloney.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Do I need a new version, or can I simply use the one that worked with version 2.0 of the config file?

jca
06-07-2007, 01:37 PM
Get the file from directadmin server, that one is working great

tlchost
06-07-2007, 04:19 PM
Get the file from directadmin server, that one is working great

http://files.directadmin.com/services/exim.pl

This one?

Thanks

floyd
06-07-2007, 04:26 PM
Not knowing whether I needed the exim.pl there, I attempted to download it and got:

Internal Server Error

You want to right click on the exim.pl link and do 'save as' Otherwise the webserver tries to execute the file instead or prompting you to download it.

tlchost
06-07-2007, 04:56 PM
You want to right click on the exim.pl link and do 'save as' Otherwise the webserver tries to execute the file instead or prompting you to download it.

Thanks....might I suggest that you look at the link and then tell me what you've discovered?

http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/exim.pl

I'd be real interested in what you get when you right-click and save-as

jlasman
06-10-2007, 06:45 PM
Okay, so visit:
http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/
instead ... and then right click on exim.pl.

Generally I expect people to be using wget directly from a shell login when getting a file to use on a server (saves having to upload again). I'm sorry I didn't make myself more clear. I've edited my original post.

Jeff

tlchost
06-10-2007, 09:16 PM
Okay, so visit:
http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/
instead ... and then right click on exim.pl.

Generally I expect people to be using wget directly from a shell login when getting a file to use on a server (saves having to upload again). I'm sorry I didn't make myself more clear. I've edited my original post.

Jeff

But that completely doens't address the issue that if one looked in the folder that contained the file you referenced, one saw exim.pl....and it's either bad or there is some misconfiguration.

Just checked it a minute ago

tlchost
06-10-2007, 09:30 PM
Okay, so visit:
http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/
instead ... and then right click on exim.pl.

OK....and I get
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@nobaloney.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

With Opera and Internet Explorer


Generally I expect people to be using wget directly from a shell login when getting a file to use on a server (saves having to upload again). I'm sorry I didn't make myself more clear. I've edited my original post.
Jeff

Generally, I expect that when using wget from a shell login I don't receive

Connecting to www.nobaloney.net|4.79.140.157|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
23:20:50 ERROR 500: Internal Server Error.

I'm not sure how I can be making a mistake with two browsers and wget...but I'm open to learning.

nzyme
06-11-2007, 03:14 AM
i had the same problem, but those .tar.gz archives aren't there for nothing ;) They include .pl and de .conf.
I guess the server wants to parse the .pl and thats why wget fails...

Why is the spamassassin part commented Jeff ?

Its working great btw, i was using SB3 but it somehow didnt work to good with Exim-4.67 so i moved to the official SB2 (perfectly announced to my mailbox :)

tlchost
06-11-2007, 07:25 AM
i had the same problem, but those .tar.gz archives aren't there for nothing ;) They include .pl and de .conf.
I guess the server wants to parse the .pl and thats why wget fails...


It's really amazing.....so far I have been told by one of the "experts" that:

You want to right click on the exim.pl link and do 'save as' Otherwise the webserver tries to execute the file instead or prompting you to download it.

And I responded that didn;t work

And then Jess tells me that he expects people to use wget....and I reported that doesn't work.

I guess it's a difference in attitude...when my customers tell me something doesn't work, I attempt to recreate the error....and when it is recreated not only do I fix it, but I tell them why it happended, how it was fixed and thank them for bringing it to my attention.

I try real hard not to offput my errors on themm their software or other mysterious things.

nzyme
06-11-2007, 08:33 AM
wget, ofcourse, is the prefered way to use when downloading these kind of server-related files. However, it fails just like my browser. Or is there a wget parameter (Jeff) ?
Anyway, just download the archive and you'll be fine :)

nzyme
06-12-2007, 02:28 AM
Jeff, how do i get clamav support in this release?

scarecrow
06-12-2007, 07:18 AM
Nice one.. Iinstalled and is working justafine.. :)

Cheers

Glad I could help.

floyd
06-12-2007, 07:28 AM
Okay, so visit:
http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/
instead ... and then right click on exim.pl.

Generally I expect people to be using wget directly from a shell login when getting a file to use on a server (saves having to upload again). I'm sorry I didn't make myself more clear. I've edited my original post.

Jeff

The saved file is
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
webmaster@nobaloney.net and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
</BODY></HTML>


I don't think you can save or wget a .pl file if the webserver is set to execute .pl files. Jeff I think your webserver needs to be reconfigured or rename exim.pl to exim.txt.

tlchost
06-12-2007, 09:06 PM
I don't think you can save or wget a .pl file if the webserver is set to execute .pl files. Jeff I think your webserver needs to be reconfigured or rename exim.pl to exim.txt.

Glad someone else pointed out exactly what happened when exim.pl was right clicked.

Sounds like your suggestion makes sense....maybe Jeff will believe you.

jlasman
06-12-2007, 10:06 PM
Why is the spamassassin part commented Jeff ?
DirectAdmin has never had SpamAssassin turned on by default, so our exim.conf files don't either.

Jeff

jlasman
06-12-2007, 10:14 PM
Sounds like your suggestion makes sense....maybe Jeff will believe you.
I believe you. I believe you.

We'd turned on .pl with an AddHandler further up the chain to make something else work, so we had to turn it off with RemoveHandler at the proper level so you could just download the .pl files.

Thanks for continuing to be so persnickity until I found the problem ;) .

Jeff

tlchost
06-13-2007, 03:57 PM
I believe you. I believe you.

Ad example of your superior perceptive abilities :D

In another thread I see that the spamcannibal is giving some false postives.

Am I correct in thinking that to disable it, without deleting it, I should comment out the following lines?

deny message = Email blocked by SPAMCANNIBAL - to unblock see http://www.example.com/
hosts = !+relay_hosts
domains = +use_rbl_domains
!authenticated = *
dnslists = bl.spamcannibal.org

And then restart exim ?

skruf
06-13-2007, 04:33 PM
Hey,

In a word... Yes.

David

selfwebhosting
06-16-2007, 08:40 PM
I followed instructions here to install SpamBlocker2:

http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/ReadMe.SpamBlocker.exim.conf.2.1.1.txt

After restarting exim, I could not send or receive any email. The error message in exim log is this:

2007-06-16 17:38:02 failed to open /etc/virtual/whitelist_from for linear search: No such file or directory

The file was there but I removed it as that is what Jeff instructions tells me.

Anyway, I initially thought it was the exim not updated. So I followed instructions here to update it:

http://www.directadmin.com/forum/forumdisplay.php?f=40

However, after updating exim I could not start it at all. The error message is this:

Starting exim: 2007-06-16 20:45:35 Exim configuration error in line 380 of /etc/exim.conf:
error in ACL: unknown ACL verb "domains" in "domains = +use_rbl_domains"

What should I do?

rohit
06-16-2007, 09:18 PM
did u get the latest exim.pl from http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/

selfwebhosting
06-16-2007, 09:24 PM
Thanks for the quick reply. Yes, I did. I followed the instructions.

Just wonder the ownership and mod settings for these files. Here are my settings:

-rwxr-xr-x 1 root root 952 Jul 7 2005 exim.cert
-rwxr-x--x 1 root root 35940 Jun 16 20:41 exim.conf
-rwxr-xr-x 1 root root 40507 Apr 29 06:10 exim.conf.orig
-rw-r--r-- 1 root root 35933 Jun 16 11:22 exim.conf.spamblocker
-rwxr-xr-x 1 root root 887 Jul 7 2005 exim.key
-rwxr-x--x 1 mail mail 6501 Jun 5 21:22 exim.pl

Looking OK?

selfwebhosting
06-16-2007, 10:41 PM
I removed exim.conf (customized copy of exim.conf.spamblocker) and copy exim.conf.orig to exim.conf. Now exim restarted and I can send email now. But no sites on the server can receive any email.

What should I do now? This is urgent. Please help!!!

smtalk
06-17-2007, 02:44 AM
wget -O /etc/exim.conf http://files.directadmin.com/services/exim.conf
wget -O /etc/exim.pl http://files.directadmin.com/services/exim.pl
chmod 755 /etc/exim.pl
cd /etc/virtual
touch blacklist_domains whitelist_from use_rbl_domains bad_sender_hosts blacklist_senders whitelist_domains whitelist_hosts whitelist_senders
echo 0 > limit
mkdir usage
chown mail:mail blacklist_domains whitelist_from use_rbl_domains bad_sender_hosts blacklist_senders whitelist_domains whitelist_hosts whitelist_senders limit usage

nobaloney
06-17-2007, 03:14 AM
I had to register a new account to respond; I can't login under my regular account because I'll lose track of "new messages since last login" if I do, and I don't have time to manage that right now.
I followed instructions here to install SpamBlocker2:

http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker2/ReadMe.SpamBlocker.exim.conf.2.1.1.txt

After restarting exim, I could not send or receive any email. The error message in exim log is this:
2007-06-16 17:38:02 failed to open /etc/virtual/whitelist_from for linear search: No such file or directory

The file was there but I removed it as that is what Jeff instructions tells me.
The instructions are correct for that particuloar version of exim.conf. If you installed that version and restart exim you should not get that error, because /etc/virtual/whitelist_from isn't referenced anywhere in that exim.conf file. To see what I mean, open the above link in your browser and search for whitelist_from right in your browser. If you're getting that error then you did NOT install the new exim.conf file.
Anyway, I initially thought it was the exim not updated. So I followed instructions here to update it:

http://www.directadmin.com/forum/forumdisplay.php?f=40

However, after updating exim I could not start it at all. The error message is this:
Starting exim: 2007-06-16 20:45:35 Exim configuration error in line 380 of /etc/exim.conf:
error in ACL: unknown ACL verb "domains" in "domains = +use_rbl_domains"
What should I do?
Users rohit and smtalk gave you correct information.

I'd really like to know what you actually installed, since if you installed SpamBlocker2.1.1 exim.conf you couldn't have gotten that message.

Jeff

selfwebhosting
06-17-2007, 03:32 AM
Thank you for all the help.

Looking at what smtalk suggests above, I think I screwed up at chmod 755 exim.pl - somehow I thought it could be set for 751 - would this make the difference?

selfwebhosting
06-17-2007, 05:24 AM
Got it fixed! Now all sites can receive email. This is what I did...

I followed instructions given by smtalk, it did not work because I am running dovecot. So I got the hint from this thread:

http://www.directadmin.com/forum/showthread.php?t=11539

because I had the same error: "failed to create directories for /var/spool/virtual/domain.tld: Permission denied"

So I re-patch my exim.conf following the instructions given here:

http://help.directadmin.com/item.php?id=51

As soon as I re-patched exim.conf and restart exim, bingo, I got the emails flushing in :-)

Now I need to try SpamBlocker2 to see how much spam it can block - hopefully not blocking any legitimate email.

kanary
06-17-2007, 06:36 AM
How can i install this because spam assassin doesnt work for me still getting all the spam and junk

selfwebhosting
06-17-2007, 06:55 AM
Just follow the above link for the instructions. Here is the link again:

http://help.directadmin.com/item.php?id=51

If you run dovecot, then re-patch your exim.conf; if not, then ignore that part. Restart exim and the SpamBlocker2 will do the work for you.

To test it live, put a site domain hosted on your server (has to be one of your own sites) in the blacklist_domains file in /etc/virtual and make sure the same domain is not in the whitelist_domains and then try to send to another email address of yours (this one better not hosted on the same server) from this test email address/domain. If you receive a "Mail delivery failed..." message at your tested blocked email address, that means it works in blocking that email - to unblock it, just remove your test domain from the blacklist_domains file or add it back to whitelist_domains file.

As Jeff suggests in the exim.conf file, you need to edit anywhere it says example.com to customize it to your case so that legitimate senders can go and send request to put their email/domain in your whitelist files. Jeff's sample page use email to receive this request. I modified it and use a php contact form to receive the unblock request. See here:

http://www.selfwebhosting.ws/emailblocked.php

Hope you get yours working!

kanary
06-17-2007, 09:08 AM
if i do wget i get the error

failed: Name or service not known.

How can i fix this ?

jlasman
06-17-2007, 01:03 PM
Looking at what smtalk suggests above, I think I screwed up at chmod 755 exim.pl - somehow I thought it could be set for 751 - would this make the difference?
Probably not; I just checked on two of my servers and it's:
-rw-r--r-- 1 root root 6501 Apr 25 22:53 /etc/exim.pl
Jeff

jlasman
06-17-2007, 01:09 PM
I modified it and use a php contact form to receive the unblock request. See here:

http://www.selfwebhosting.ws/emailblocked.php
Nice page, Aubrey. The reason I didn't use a form is that I want to get the email headers from the address being blocked, so I can whitelist by server rather than by email address. Saves having to block more than once if the emails being blocked are all from (for example) one company.

Jeff

jlasman
06-17-2007, 01:10 PM
Exactly what wget line are you using, kanary? Remember what I wrote in my other reply to your other post? If you're getting those resolution errors you may not have DNS set up correctly on your server.

Jeff

selfwebhosting
06-18-2007, 05:29 AM
Probably not; I just checked on two of my servers and it's:
-rw-r--r-- 1 root root 6501 Apr 25 22:53 /etc/exim.pl
Jeff

You are right, Jeff! It was not the permission setting for exim.pl - it was the settings for /var/spool and other folders. Eventually I corrected all permission settings according to the following commands that smtalk told me:

cd /usr/local/directadmin/scripts
./set_permissions.sh all

So everything is working fine now. And after this I got the SpamBlocker2 installed and is working. I tested it live by intentionally block one of my own email and it worked.

There is one problem remaining... it is the fact that I still have to reboot the server daily. The server hangs on heavy load. I thought SpamBlocker2 can reduce the load by blocking spam straight. It does not seem to help much or I have not set up something right.

What should I do to reduce to the need to have to reboot the server on daily basis?

jlasman
06-21-2007, 08:49 PM
How do you know the problem is email?

usually when a server hangs it's because it's run out of both memory and swap memory.

Check the output of your top command regularly to see if you can catch it happening.

Or run a copy of the first x lines of top to your email address every five minutes, and look at the last email you get before the server hangs.

Jeff