1 |
On Sun, 2006-01-15 at 12:53 -0600, Michael Sullivan wrote: |
2 |
> I'm trying to set up spamassassin with sendmail-8.13.4 using. sendmail |
3 |
> and spamd are both running, and I sent the GTUBE message to |
4 |
> michael@××××××××××××.com from msulli1355@×××××.com and it wasn't marked, |
5 |
> yet when I run |
6 |
> |
7 |
> spamassassin -tD < /var/spool/mail/michael | more |
8 |
> |
9 |
> it tags the message. How do I get spamassassin to integrate with |
10 |
> sendmail? Here is my sendmail.mc file (which I ran m4 on redirected to |
11 |
> sendmail.cf right before I stopped sendmail, started spamass-milter and |
12 |
> restarted sendmail): |
13 |
> |
14 |
> bullet ~ # cat /etc/mail/sendmail.mc |
15 |
> divert(-1) |
16 |
> divert(0)dnl |
17 |
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl |
18 |
> VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp |
19 |
> $')dnl |
20 |
> OSTYPE(linux)dnl |
21 |
> DOMAIN(generic)dnl |
22 |
> |
23 |
> #define(`confTO_IDENT',`0s')dnl |
24 |
> |
25 |
> |
26 |
> FEATURE(`smrsh',`/usr/sbin/smrsh')dnl |
27 |
> FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl |
28 |
> FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl |
29 |
> |
30 |
> MASQUERADE_AS(`espersunited.com')dnl |
31 |
> MASQUERADE_DOMAIN(`espersunited.com')dnl |
32 |
> FEATURE(`masquerade_entire_domain')dnl |
33 |
> |
34 |
> |
35 |
> #Begin spamass-milter config |
36 |
> |
37 |
> INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, |
38 |
> F=, T=C:15m;S:4m;R:4m;E:10m')dnl |
39 |
> define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, |
40 |
> {if_addr}')dnl |
41 |
> |
42 |
> #End spamass-milter config |
43 |
> |
44 |
> MAILER(local)dnl |
45 |
> MAILER(smtp)dnl |
46 |
> MAILER(pop)dnl |
47 |
> |
48 |
> |
49 |
> Here's my /etc/mail/spamassassin/local.cf file: |
50 |
> |
51 |
> bullet ~ # cat /etc/mail/spamassassin/local.cf |
52 |
> # SpamAssassin config file for version 3.x |
53 |
> # NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6 |
54 |
> # See http://www.yrex.com/spam/spamconfig25.php for earlier versions |
55 |
> # Generated by http://www.yrex.com/spam/spamconfig.php (version 1.50) |
56 |
> |
57 |
> # How many hits before a message is considered spam. |
58 |
> required_score 5.0 |
59 |
> |
60 |
> # Encapsulate spam in an attachment (0=no, 1=yes, 2=safe) |
61 |
> report_safe 1 |
62 |
> |
63 |
> # Enable the Bayes system |
64 |
> use_bayes 1 |
65 |
> |
66 |
> # Enable Bayes auto-learning |
67 |
> bayes_auto_learn 1 |
68 |
> |
69 |
> # Enable or disable network checks |
70 |
> skip_rbl_checks 1 |
71 |
> use_razor2 1 |
72 |
> use_dcc 1 |
73 |
> use_pyzor 1 |
74 |
> |
75 |
> # Mail using languages used in these country codes will not be marked |
76 |
> # as being possibly spam in a foreign language. |
77 |
> ok_languages all |
78 |
> |
79 |
> # Mail using locales used in these country codes will not be marked |
80 |
> # as being possibly spam in a foreign language. |
81 |
> ok_locales all |
82 |
> |
83 |
> |
84 |
> What am I doing wrong here? |
85 |
|
86 |
I'm sorry, everyone. They WERE marked (sort of) - I just forgot to have |
87 |
spamassassin rewrite the headers... |
88 |
|
89 |
-- |
90 |
gentoo-user@g.o mailing list |