Hi

I'm trying to setup a SMTP server that receives all mail from the
internet using sendmail, then scans the mail for spam and forwards the
mail through SMTP to my Exchange server.

The box is Linux SuSe 8.2. When I telnet to port 25 and write an e-mail,
the mail gets transfered to my exchange server without problems. When
entering an external e-mail address, mail goes through also. So I guess
mail (relay) is working fine.

Now for scanning the mail for spam (spamassassin), I read quite some
articles, faq's and google groups, but I can't figure it out.

I checked my /etc/sendmail.cf , it has a line in it:

Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn09,
S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,
                T=DNS/RFC822/X-Unix,
                A=procmail -a $h -d $u


and a section:
######################*****##############
###   PROCMAIL Mailer specification   ###
##################*****##################

#####  $Id: procmail.m4,v 8.22 2001/11/12 23:11:34 ca Exp $  #####


Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
                T=DNS/RFC822/X-Unix,
                A=procmail -m $h $f $u


This makes me think that sendmail should invoke procmail. Is that
correct?

For procmail to work, I have copied a procmail example file from the
spamassassin dir and placed it as:  /etc/procmailrc

###  BEGIN
# SpamAssassin sample procmailrc
#
#
# verbose setting:


# !!! This is something I have added myself: 

       MAILDIR=$HOME/Mail      #you'd better make sure it exists
       DEFAULT=$MAILDIR/mbox   #completely optional
       LOGFILE=$MAILDIR/from   #recommended
       VERBOSE=1 

#  !!! End private section :-)

#
# Pipe the mail through spamassassin (replace 'spamassassin' with
'spamc'
# if you use the spamc/spamd combination)
#
# 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.
#
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamassassin.lock
* < 256000
| spamassassin

# Mails with a score of 15 or higher are almost certainly spam (with
0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in
a
# different mbox. (This one is optional.)
#:0:
#* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#almost-certainly-spam

# All mail tagged as spam (eg. with a score higher than the set
threshold)
# is moved to "probably-spam".
# :0:
# * ^X-Spam-Status: Yes
# probably-spam

# Work around procmail bug: any output on stderr will cause the "F" in
"From"
# to be dropped.  This will re-add it.
 :0
 * ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "
  
  :0 fhw
  | sed -e '1s/^/F/'
}


Somehow I see no trace of procmail being called. No log is generated, no
messages in the system logs. Mail still gets delivered however.

Anybody some hints for me?

Gabrie




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to