Spam Assassin

cryptodan

Verified User
Joined
Oct 10, 2008
Messages
75
Id like to know where you put this configuration directive:

transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}

As it doesn't really say on the help site.
 
Last edited:
What is the version at the top of your exim.conf

There should be a whole spamass part in the transport area:

Code:
spamcheck:    
  driver = pipe   
  batch_max = 100  
  command = /usr/sbin/exim -oMr spam-scanned -bS
  current_directory = "/tmp"
  group = mail
  home_directory = "/tmp"
  log_output
  message_prefix =
  message_suffix =
  return_fail_output
  no_return_path_add
  transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
  use_bsmtp     
  user = mail
  # must use a privileged user to set $received_protocol on the way back in!
 
Make sure spamd is running and check /var/log/exim/mainlog for errors
 
What is the version at the top of your exim.conf

There should be a whole spamass part in the transport area:

Code:
spamcheck:    
  driver = pipe   
  batch_max = 100  
  command = /usr/sbin/exim -oMr spam-scanned -bS
  current_directory = "/tmp"
  group = mail
  home_directory = "/tmp"
  log_output
  message_prefix =
  message_suffix =
  return_fail_output
  no_return_path_add
  transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
  use_bsmtp     
  user = mail
  # must use a privileged user to set $received_protocol on the way back in!

Code:
######################################################################
#                 SpamBlocker.exim.conf.2.1.1-release                #
#                             05-Jun-2007                            #
#   Runtime configuration file for DirectAdmin/Exim 4.24 and above   #
#          Requires exim.pl dated 20-Apr-2007 17:09 or later

Thats the version I have.

Code:
# Spam Assassin
begin transports

spamcheck:
  driver = pipe
  batch_max = 100
  command = /usr/sbin/exim -oMr spam-scanned -bS
  current_directory = "/tmp"
  group = mail
  home_directory = "/tmp"
  log_output
  message_prefix =
  message_suffix =
  return_fail_output
  no_return_path_add
  transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}
  use_bsmtp
  user = mail
  # must use a privileged user to set $received_protocol on the way back in!

Thats what I have, so I do not have to change a thing?
 
Last edited:
I would use version 3 if you use dovecot.

Code:
wget -O /etc/exim.conf http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker3/exim.conf.3.1-beta
wget -O /etc/exim.pl http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker3/exim.pl
perl -pi -e 's/example.com/YOURDOMAIN.COM/' /etc/exim.conf

*Change YOURDOMAIN.COM to your actual domain name in the code above.

Then just uncomment all the spamassassin parts in the /etc/exim.conf to get it to work.
Make sure spamd is running before you restart exim.

This version only works with dovecot so if you dont have it it wont work for you.

If you dont have dovecot then I suggest you check if your config has that spam transport area. If not I would try adding it to the transports area.


Thanks
 
I would use version 3 if you use dovecot.

Code:
wget -O /etc/exim.conf http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker3/exim.conf.3.1-beta
wget -O /etc/exim.pl http://www.nobaloney.net/downloads/spamblocker/DirectAdminSpamBlocker3/exim.pl
perl -pi -e 's/example.com/YOURDOMAIN.COM/' /etc/exim.conf

*Change YOURDOMAIN.COM to your actual domain name in the code above.

Then just uncomment all the spamassassin parts in the /etc/exim.conf to get it to work.
Make sure spamd is running before you restart exim.

This version only works with dovecot so if you dont have it it wont work for you.

If you dont have dovecot then I suggest you check if your config has that spam transport area. If not I would try adding it to the transports area.


Thanks

If I use those, will I have to run that for every domain I have on the host? Or is it the first domain I setup?
 
The command is for server wide you will only run it once.

All the perl command does is changes the deny message when people get blocked.

The default is "deny message = Email blocked by LBL - to unblock see http://www.example.com"

All you are doing is pointing them to your website.
 
The command is for server wide you will only run it once.

All the perl command does is changes the deny message when people get blocked.

The default is "deny message = Email blocked by LBL - to unblock see http://www.example.com"

All you are doing is pointing them to your website.

So it only pertains to my domain and not others? Or would I set it up to point to the main domain we will be using to advertise our services?
 
Yes your main hosting domain. Whatever your company domain is.
 
Really you would want to point them to a page that explains why they got blocked and what they need to do to get unblocked.
 
I usually just point mine to an email address or support area of my website.
 
If you're going to point them to an email address be sure to search for the word errors in the exim.conf file to learn how to whitelist a specific email address or else no one will be able to reach that email address either.

Here's what we do: we send people to a specific location; in our case it's:

http://www.spamblocked.net/blocked.html

You should NOT send people to that page; it's ours and if we get an email from people trying to reach YOUR server we cannot unblock them.

However you can use that page as a sample, or you can even copy it exactly, with ONE EXCEPTION: you may NOT use those rotating images at the top; I don't own them. I have the right to use them but I do NOT have the right to allow others to use them, so if you want similar images, please create your own.

Jeff
 
Back
Top