I'm in the process of dropping sendmail+procmail and switching to 
exim 4.  Since I am brand new at exim, I'm kind of flogging around 
blindly.

Googling on "exim spamassasin" found me the proper router and 
transport config settings (I've pasted them below), what's left is the 
redirecting of high scoring spam to my "spam" email account.  In 
procmail.conf I used this:

:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
/var/mail/spam

It is my understanding I can dump procmail entirely with exim and 
have it handle the redirect.  Since the only reason I'm using 
procmail is to support spamassassin, this would be a good thing.  
Any help would be appreciated.

One other thing, off topic for SA.  I want to allow email addresses 
of the form [EMAIL PROTECTED], where 'anything' can 
be anything at all (and not require additions to any configuration 
files or .forward file).  I use this when a website requires an email 
address for access.  I always use a keyword related to the website 
so I can track who does what with email addresses, e.g. 
[EMAIL PROTECTED], and can specifically 
blacklist the "to" address if someone abuses it.  This is easy to do 
in sendmail, but I'm not sure how to do it in exim.  If you know the 
answer, please respond privately since it is not really an SA 
subject.

Thanks.

# Spam Assassin - router
spamcheck_router:
  no_verify
  check_local_user
  # When to scan a message :
  #   -   it isn't already flagged as spam
  #   -   it isn't already scanned
  condition = "${if and { {!def:h_X-Spam-Flag:} {!eq 
{$received_protocol}{spam-scanned}}} {1}{0}}"
  driver = accept
  transport = spamcheck

# Spam Assassin - transport
spamcheck:
    driver = pipe
    command = /usr/exim/bin/exim -oMr spam-scanned -bS
    use_bsmtp = true
    transport_filter = /usr/bin/spamc
    home_directory = "/tmp"
    current_directory = "/tmp"
    # must use a privileged user to set $received_protocol on the 
way back in!
    user = mail
    group = mail
    log_output = true
    return_fail_output = true
    return_path_add = false
    message_prefix =
    message_suffix =


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to