Here is my goal:

Internet -> SpamAssassin -> Exchange

I am trying to have spamassassin filter all email traffic and then pass
them, which will include something denoting that it is spam (perhaps put
SPAM in the subject), to the exchange server.

I have done the following and have had no luck:
Running:
  Mandrake 9.0
  spamassassin 2.44
  postfix 1.11.11
  procmail 3.22

created /home/user/.forward with the following info (owner "user" permissions 600):
  "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 user"                             
 ACCORDING TO THE SA INSTALL FILE
  [EMAIL PROTECTED]                                                                    
 MAIL IS NOT FORWARDED WITHOUT THIS

created /home/user/.procmailrc with the following info (owner "user" permissions 600): 
 ACCORDING TO THE SA INSTALL FILE
  :0fw
  | /usr/bin/spamc

edited /etc/postfix/main.cf:
  mailbox_command = /some/where/procmail                                               
 THIS WAS ORIGINALLY COMMENTED OUT
  #mailbox_command = /some/where/procmail -a "$EXTENSION"                              
 THIS WAS NOT CHANGED
  #mailbox_command = /usr/bin/procmail -Y -a $DOMAIN                                   
 THIS WAS ORIGINALLY UNCOMMENTED

edited /etc/postfix/master.cf:                                                         
 ACCORDING TO GREG WEBSTER'S HOW TO
  added to "service type" section:
    smtp    inet    n       -       y       -       -       smtpd
     -o content_filter=spamfilter

  added to "Interfaces to non-Postfix software":                                       
 ACCORDING TO GREG WEBSTER'S HOW TO
    spamfilter unix -       n       n       -       -       pipe
    flags=Rq user=spamfilter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient}

created /usr/bin/postfixfilter (owned by spamfilter permissions 755) which contains:   
 ACCORDING TO GREG WEBSTER'S HOW TO
  #!/bin/bash
  /usr/bin/spamc | /usr/sbin/sendmail -i "$@"
  exit $?


created "spamfilter" user                                                              
 ACCORDING TO GREG WEBSTER'S HOW TO

created /etc/procmailrc which contains:                                                
 I DON'T REMEMBER WHERE I GOT THIS
  DROPPRIVS=yes
  #Uncomment the following lines to allow for logging
  #
  #LOGFILE=/var/log/procmail
  #VERBOSE=ON

  # The condition line ensures that only messages smaller than 250 kB
  # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
  # isn't bigger than a few k and working with big messages can bring
  # SpamAssassin to its knees.

  :0fw
  * < 256000
  | /usr/bin/spamc
---------------------------------------------------------------------------------------------
I am able to type the following command and get results:
spamassassin < sample-spam.txt > output.txt

The results contain a subject of "*****SPAM*****" so this is a desired result.
---------------------------------------------------------------------------------------------
I am able to send email from the SA server to "user" using "metasend -b -s
"TEST" -t user -m plain/text -f /usr/share/doc/spamassassin-2.44/sample-spam.txt".  
The email is sent to
the exchange server after about 3 minutes (why so long?).  The subject
does not contain "*****SPAM*****" nor are there SPAM header information
therefore I'm afraid I have done something(s) incorrectly.  I assume that
the mail is not being evaluated by SA.  Please let me know what I'm
missing.

Thanks for your help.

Mark



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to