[Mimedefang] sendmail-mimedefang-spamassassin

James Whittington jwhittington at excelorant.com
Thu Jul 3 13:38:01 EDT 2003


Do you have milter support compiled in on Sendmail?
Did you include a mimedefang line in your sendmail.mc ?
Is mimedefang actually showing up in sendmail.cf?

Here's what I get when I grep for mimedefang in sendmail.cf:

[root at ns2 root]# grep MIME /etc/mail/sendmail.cf
# deliver MIME-encapsulated error messages?
# Maximum MIME header length to protect MUAs
Xmimedefang, S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T,
T=S:1m;R:1m

All of these have got me before, I've successfully installed MIMEDefang
on about 3 different systems (including RedHat 8), it's worth the
learning curve so keep plugging away.

_______________________________________________

James Whittington
Systems Administrator

Excelorant, LLC
A TM Floyd Affiliate Company
1800 St. Julian Place
P.O. Box 8263
Columbia, SC 29202

803.765.1310 | Phone
800.780.1170 | Toll Free
803.765.1431 | Fax

jwhittington at excelorant.com

_______________________________________________


-----Original Message-----
From: Bill Friedman [mailto:linguafr at sbcglobal.net] 
Sent: Thursday, July 03, 2003 4:19 AM
To: mimedefang
Subject: [Mimedefang] sendmail-mimedefang-spamassassin



This is my last stab at asking for help on this list.  I've spent two
days just 
dodging fascist (human and robot )moderators trying to get a message
posted let alone 
responded to with useful advice. 

I have sendmail 8.12.9 and mimedefang 2.34 up and running and 
SpamAssassin-2.55 installed on RH8.  

root     17078     1  0 Jul02 ?        00:00:00 sendmail: accepting
connections
smmsp    17088     1  0 Jul02 ?        00:00:00 sendmail: Queue
runner at 01:00:00

defang   17055     1  0 Jul02 ?        00:00:00
/usr/local/bin/mimedefang-multiplexor -p
/var/spool/MIMEDefang/mimedefang-multiplexor.pid -m
2 -x 10 -U defang -b 300 -l -s
/var/spool/MIMEDefang/mimedefang-multiplexor.sock
defang   17057 17055  0 Jul02 ?        00:00:03 /usr/bin/perl -w
/usr/local/bin/mimedefang.pl -server
defang   17066     1  0 Jul02 ?        00:00:00
/usr/local/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang   17068 17066  0 Jul02 ?        00:00:00
/usr/local/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang   17069 17068  0 Jul02 ?        00:00:00
/usr/local/bin/mimedefang -P /var/spool/MIMEDefang/mimedefang.pid -m
/var/spool/MIMEDefang/mimedefang-multiplexor.sock -U defang -p
/var/spool/MIMEDefang/mimedefang.sock
defang   17092 17055  0 Jul02 ?        00:00:03 /usr/bin/perl -w
/usr/local/bin/mimedefang.pl -server


Sendmail is functions fine and SA does correctly filter a test message
piped through it directly.  
But, it appears mail is not being filtered.I understand that local mail
isn't
filtered, I'm testing mail that's being forwarded.  The message gets
delivered but isn't filtered - no x-spam header ( I noticed that's
what SA does, but, not sure what mimedefang does exactly )and no
notification at all for message with all sorts of SA tests. I'm
still a bit hazy on just how mimedefang and SA interwork. My
understanding is that MD utilizes SA's filtering rules and then
makes changes the changes. I followed the Mickey Hall HOW-TO and the
mimedefang-filter with only the contact emails customized. 

Looking at README.SPAMASSASSIN there are two items (functions) in  I
hadn't incorporated into the mix. 
Interestingly, they're not mentioned in the Mickey Hill HOW-TO I'd
been following nor do they exist in
/etc/mail/mimedefang-filter.example, which I'm assuming is the
"sample filter" referred to in the README. 

Use the function spam_assassin_is_spam in your filter_begin()
function. 
   For example, put this code in filter_begin(): 

    if (spam_assassin_is_spam()) { 
        action_add_header("X-Spam-Warning", "SpamAssassin says this
is SPAM"); 
    } 

Ok, it's pretty clear where the above function goes, so, I added it,but,
what about
the one below? 

MIMEDefang does *NOT* allow SpamAssassin to modify e-mail messages. 
If you set up SpamAssassin to add headers or tag subjects, it 
will not work.  Instead, you must have MIMEDefang do the
modifications. 
For example: 

    if (spam_assassin_is_spam()) { 
        # Change Subject: header 
        action_change_header("Subject", "** SPAM ** $Subject"); 
    } 

See the sample filter for more details. 
# I don't see this in mimedefang-filter.example 

And, finally, just to make sure I understand the role of the various
config files and spamd/spamc in what I'm doing....If I'm doing
site-wide filtering on an smtp proxy then, aside from the stuff in
/usr/share/spamassassin, the conf files to be concerned with are 

/etc/mail/spamassassin 
local.cf  sa-mimedefang.cf 
...correct? 

And since I'm using mimedefang I won't be needing spamd, correct? 

What else might I check?

Thank You


_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list