Deliver everything for 1 email account

donkeyKICK

Verified User
Joined
Jul 24, 2007
Messages
387
This sounds sorta strange, I know, but I want to turn off all spam bocking/filtering for a specific email address. I have a customer saying that I am "not blocking any spam". I look in the logs and I see I am blocking tons. This one customer is receiving about 5 spams a day. I am blocking about 1 spam every few seconds for the customer. I'd like him to see that.

I just want it all to come thru for a little while, then I'll want to turn it back on. Is this easy?
 
That depends on how you're using spamblocking/filtering for him.

Are you using SpamAssassin for him? If so you can turn it on or off in the SpamAssassin page in the user account.

Are you using SpamBlocker? If so, then the question is Is /etc/virtual/use_rbl_domains a separate file or is it a link to /etc/virtual/domains?

If the former then delete his domain name from the /etc/virtual/use_rbl_domains file.

If the latter, first break the link. Then create a file /etc/virtual/use_rbl_domains with the same rights and ownership as /etc/virtual/domains. And then populate the file with all the domain names in /etc/virtual/domains.

Then delete the user's domain name from /use/virtual/use_rbl_domains.

If you do the latter then your system will no longer automatically add all newly added domains to your /etc/virtual/use_rbl_domains file; you'll have to add new users yourself.

If you're using a plugin to manage your blocklists and whitelists then you need to check the documentation for your plugin.

Jeff
 
/etc/virtual/use_rbl_domains

is a file with nothing inside it... it is not a link. I am using spamblocker 3.0.

How do I fix this?
 
If use_rbl_domains is blank, then you're not blocking spam with SpamBlocker.

You say you're blocking spam for him.

How?

Jeff
 
I see stuff in the logs that isn't being delivered. I guess spamassassin.

I just made the link to turn it on... Is there a way to test spamblocker to see that it is working right?

I guess I can make the file file, leave his out and turn off spamassassin and that would do it? Does DA have any other spam-protection?
 
I'm not sure what you mean.

What link did you make to turn SpamAssassin on?

SpamAssassin isn't a link. It's a software installation, and also an uncommenting of certain lines in your exim.conf file.

Do you mean a link to turn on SpamBlocker for all domains? The way to test SpamBlocker is to check your /var/log/exim/rejectlog file. If that file is being added to, then SpamBlocker is working.

Jeff
 
Sorry, I jumbled up my last post... guess that happens when you spend too much time with no sleep.

Anyway, I guess the only spam filter I was running before you pointed out I needed the file /use/virtual/use_rbl_domains to contain a list of domains to filter was spamassassin. I made a link from /use/virtual/use_rbl_domains to /use/virtual/domains to turn spamblocker on for all domains.

Also, for clarity, in order to have anything delivered, I would delete the link from /use/virtual/use_rbl_domains --> /use/virtual/domains and create a file /use/virtual/use_rbl_domains containing a list of domains to run spamblocker on, and I would omit the domain in question. I would also turn off spamassassin.

What confuses me, is when I look into the log /var/log/exim/rejectlog there are lots of entries even when the file /use/virtual/use_rbl_domains was empty.

What happens when /use/virtual/use_rbl_domains is empty? What does that mean?
 
Last edited:
Sorry, I jumbled up my last post... guess that happens when you spend too much time with no sleep.
No problem ;)
Anyway, I guess the only spam filter I was running before you pointed out I needed the file /use/virtual/use_rbl_domains to contain a list of domains to filter was spamassassin. I made a link from /use/virtual/use_rbl_domains to /use/virtual/domains to turn spamblocker on for all domains.

Also, for clarity, in order to have anything delivered, I would delete the link from /use/virtual/use_rbl_domains --> /use/virtual/domains and create a file /use/virtual/use_rbl_domains containing a list of domains to run spamblocker on, and I would omit the domain in question.
I'm still a bit confused. With the link in place, when you do a cat of use_rbl_domains, you should see a list of all the domains on your server, and SpamBlocker should be blocking for all of them. Without the link, SpamBlocker will block only for the domains you manually put into the file.
I would also turn off spamassassin.
If you want it off. It's completely separate.
What confuses me, is when I look into the log /var/log/exim/rejectlog there are lots of entries even when the file /use/virtual/use_rbl_domains was empty.
There's a lot of functionality in your SpamBlocker exim.conf which for example blocks relaying, and for lots of other reasons having nothing to do with blocklists. The use_rbl_domains file only manages which domains get checked against blocklists. All other blocking, for all other reasons, is enabled, and likely should be enabled.

You can of course study the exim.conf file and make changes to it to manage which other functionality is available for which domains, based on any decision criteria you make.
What happens when /use/virtual/use_rbl_domains is empty? What does that mean?
It means no email is checked against blocklists, but all other functionality is still available.

Jeff
 
Thank you, I think I got it. The only thing I was wondering is why would /etc/virtual/use_rbl_domains exist (not a link) and be empty? Is this a default that I will need to keep an eye on when I setup DA?
 
Yes, the default is to run no domains through SpamBlocker's RBL lists, which means an empty /etc/virtual/use_rbl_domains file.

Jeff
 
Okay, thanks. Please correct me if I am wrong, but in order to turn on RBL in spamblocker, I must either make the link, or manually populate that file.

Back to the original question then. How do I turn SpamBlocker completely off for only 1 email user (or domain if that isn't possible)?
 
Okay, thanks. Please correct me if I am wrong, but in order to turn on RBL in spamblocker, I must either make the link, or manually populate that file.
That is correct.
Back to the original question then. How do I turn SpamBlocker completely off for only 1 email user (or domain if that isn't possible)?
You've actually answered your question. If what you want to do is create a list of all domains except one, then you use two separate files, copy the domain list from your /etc/virtual/domains file to your your /etc/virtual/use_rbl_domains file, and then delete the domain you don't want to use SpamBlocker from the /etc/virtual/use_rbl_domains file.

Perhaps one of the two commercial plugins created to manage the exim.conf file can do this for you automatically and still allow automatic additions of all future domains. If that's what you want then search these forums for plugin spamblocker or plugin SpamBlocker and see if you can find one that'll do what you want.

Jeff
 
You said earlier:

There's a lot of functionality in your SpamBlocker exim.conf which for example blocks relaying, and for lots of other reasons having nothing to do with blocklists. The use_rbl_domains file only manages which domains get checked against blocklists. All other blocking, for all other reasons, is enabled, and likely should be enabled.

and my question is how do I turn off everything, not just RBL for 1 person. I now understand the RBL in SpamBlocker (thanks!), but what about the rest?

The purpose is to get all spam delivered to one person who thinks that I don't filter any spam (and yes, I did show logs... but he isn't convinced). This is only a temporary thing I need to do, as I am sure after a few hours he will go nuts and want the filtering back on.
 
Last edited:
Comment out everything in the ACL sections, and restart. Be aware this is NOT going to catch all the spam and send it somewhere. And it is going to be serverwide. It's going to deliver all spam and viruses to everyone.

Jeff
 
Okay, thanks for your help on this. I guess serverwide makes sense as much of the filtering is serverwide.

Thanks again for your help on this
 
You're welcome.

When I wrote my first SpamBlocker exim.conf file I wrote it for me. It's main feature was that it didn't accept email if the user didn't exist; at that time the exim.conf supplied with DirectAdmin (from the Exim3 exim.conf file, converted with an auto-converter) accepted all email and tried to send email back if it wasn't for an account on the server.

Of course this was a few years ago.

At that time I posted it on these forums, as open source (which exim.conf is), and JBMC (publishers of DirectAdmin) decided to use it.

So I got into the email business ;) .

But the original was for me and still is written to meet my needs. You're welcome to rewrite it yourself for yours, of course.

Jeff
 
Back
Top