I've been trying to get spamassassin to work with my working Postfix 
mailserver and have tried long enough that I am afraid that I need 
to ask for help. Help!

I am including below my best attempt at full details:

I've successfully installed spamassassin

% spamassassin -V
SpamAssassin version 3.1.0
   running on Perl version 5.8.6

and verified that my header_rewrite rule works with

/usr/bin/spamassassin -D < sample-spam.txt

I'd like to get spamd to insert the same header, but I can't get it 
to work, and can't get any useful clues from searching docs and 
wikis.

I tried the advice on 
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix

I created a user with name spamassassin and edited master.cf so that 
it contains
smtp      inet  n       -       n       -       -       smtpd -o  
content_filter=spamassassin

and

spamassassin unix  -       n       n       -       -       pipe
    user=spamassassin argv=/usr/bin/spamc -e /sw/sbin/sendmail -oi -f ${sender} 
${recipient}


I've launched spamd with sudo:
sudo spamd
and can see that it is there:
% ps -aux | grep spam
root     19453   0.0 -1.0    42876  21456  p3  S     4:40PM   0:11.13 
/usr/bin/perl -T -w /usr/bin/spamd
root     19455   0.0 -0.1    42416   1656  p3  S     4:40PM   0:00.12 spamd 
child
root     19456   0.0 -0.1    42416   1604  p3  S     4:40PM   0:00.08 spamd 
child


I hoped this would work, but it doesn't. Mail comes in (here is a 
typical log) but doesn't appear to be getting the header_rewrite
mail.log:
Feb 13 16:40:58 pruffle spamd[19453]: spamd: server started on port 783/tcp 
(running version 3.1.0)
      (the above is the last message from spamd)
:
:
Feb 14 12:40:53 pruffle postfix/smtpd[20557]: connect from 
fort-point-station.mit.edu[18.7.7.76]
Feb 14 12:40:53 pruffle postfix/smtpd[20557]: 3590513E8C8: 
client=fort-point-station.mit.edu[18.7.7.76]
Feb 14 12:40:53 pruffle postfix/cleanup[20554]: 3590513E8C8: message-id=<[EMAIL 
PROTECTED]>
Feb 14 12:40:53 pruffle postfix/qmgr[20527]: 3590513E8C8: from=<[EMAIL 
PROTECTED]>, size=5923, nrcpt=1 (queue active)
Feb 14 12:40:53 pruffle postfix/smtpd[20557]: disconnect from 
fort-point-station.mit.edu[18.7.7.76]
Feb 14 12:40:53 pruffle postfix/local[20559]: 3590513E8C8: to=<[EMAIL 
PROTECTED]>, relay=local, delay=0, status=sent (delivered to mailbox)
Feb 14 12:40:53 pruffle postfix/cleanup[20554]: 68E5113E8C9: message-id=<[EMAIL 
PROTECTED]>
Feb 14 12:40:53 pruffle postfix/local[20559]: 3590513E8C8: to=<[EMAIL 
PROTECTED]>, relay=local, delay=0, status=sent (forwarded as
68E5113E8C9) Feb 14 12:40:53 pruffle postfix/qmgr[20527]: 68E5113E8C9:
from=<[EMAIL PROTECTED]>, size=6058, nrcpt=1 (queue active)
Feb 14 12:40:53 pruffle postfix/qmgr[20527]: 3590513E8C8: removed
o

Thanks for any advice! Craig Carter

PS: I've also tried following the simple example in FILTER_README 
with
# Specify your content filter here.
  spamassassin <in.$$
didn't work either, even though the script seems to be behaving 
propoerly..



W. Craig Carter
Lord Foundation Professor of Materials Science and Engineering
MIT, Dept. of Materials Science and Engineering 13-5018  77 Massachusetts Ave, 
Cambridge, MA 02139-4307 USA
617-253-6048  [EMAIL PROTECTED] http://pruffle.mit.edu/~ccarter 
http://pruffle.mit.edu/~ccarter/FAQS/ 
http://pruffle.mit.edu/~ccarter/I_do_not_use_microsoft.html

Reply via email to