Sorry for this long post, but I am in need for some advice/help (pretty please:)
I just updated to SpamAssassin 2.0 (the release version) after doing a full deinstall. However, SA still seems to have a problem with CommuniGate Pro: I defind every command option to launch spamd (see below) and tuned on the -F0 flag however the problem persits: "normal" mail is being received and sent appropiatly and everything is a-ok. The munching happens when CGate Pro delivers outgoing messages to subscribers of a mail list and/or mail group...(forgive me, but I am not 100% sure how CGate Pro handles delivery to mailing lists and /or groups) How I launch spamd: % spamd -c -d -i 127.0.0.1 -p 783 -s daemon -u spamd -x -A 127.0.0.1 -P -F0 How SA is being envoked: [STDERR] [FILE] [RETPATH] [RCPT] /var/CommuniGate/scanspam.sh ========= begin script scanspam.sh ========= #!/bin/sh ########################################################################### ##### # Script to call Spam Assassin from CommuniGate Pro Rules v1.1 Ed Fang # If you have any improvements, drop me a line at [EMAIL PROTECTED] # Thanks for Stefan Seiz for the original template # # Script will call SpamAssassin spamc from CommuniGate. Since SA modifies # the actual message, it must be re-delivered via the Submitted directory. # Sneaky Header Tagging is used to prevent the message from being scanned # again, and/or being caught in a loop is spamd fails. # # DATA # Communigate Pro Rules # Any Recipient in *@domain.com # Message Size less than 32768 # Header Field is not X-Spam-Status* # # ACTION # Execute [STDERR] [FILE] [RETPATH] [RCPT] /var/CommuniGate/scanspam.sh # Discard # # You must discard the message as the script will re-submit the marked message through the # Submitted directory of CommuniGate. If you don't, you'll get every message # twice - once scanned, once clear through. (which is a good way to test # before actually discarding the message. Stalker has asked that messages # not be modified in the Queue directory, so it's just safer to play by their # rules. # # 1.1 - Changed to run using gawk. Highly advised as awk will occasionally # crap out with trememdously long html lines. # # Note: The global variables aren't used all over the place, so I'll clean that # up in a later version. I think there might be a more efficient awk script # so any other awk gurus out there might be able to give me a better awk # than the one I have (which skips everything until it matches Received # and then to the end of the file. # ########################################################################### ##### #### START user configurable variables # CGate base directory myCgate="/var/CommuniGate" myLogFile="/var/CommuniGate/SpamAssassin/spam-result.out" spamcCommand="/usr/local/bin/spamc -d 127.0.0.1 -p 783 -u spamd -f" #### END user configurable variables #Comment out following two lines if you don't want to echo the passed variable info to #the spam-result.out file. myDate=`date +%Y-%m-%d\ %H:%M:%S` echo "Date $myDate " $@ >> $myLogFile #Get the fileid of the message file QueuePath=$2 NewFile=`basename $QueuePath`'.tmp' FinalFile=$NewFile'.sub' # Formulate return-path and Envelope-To addresses from command line args. # shift out the first 3 arguments, make sure one > to create a new file shift 3 echo "Return-Path:" $1 > /var/CommuniGate/Submitted/$NewFile # shift out 5 command arguments. and start appending shift 2 Envelope=$1 shift while [ $# -gt 0 ] do Envelope=$Envelope','$1 shift done # Formulate the envelope Header file. echo "Envelope-To: " $Envelope >> $myCgate/Submitted/$NewFile # Append an X-Spam header in there. This is very important. Without this # tag, if spamc fails to call spamd, it will send the message back without # a tag and your message will fall into an UGLY loop. This alleviates that. echo "X-Spam-Status: Scanner Called" >> $myCgate/Submitted/$NewFile # strip out CommuniGate stuff for SpamAssassin first # using awk, and then send to spamc. gawk '/Received/, /\n/' $myCgate/$QueuePath | $spamcCommand >> /var/CommuniGate/Submitted/$NewFile ========= end script scanspam.sh ========= Any help would be appreatiated, - Uwe _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk