Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] OT - Spamassassin and sendmail
Date: Sun, 29 Apr 2007 16:40:53
Message-Id: 1177864133.17356.34.camel@camille.espersunited.com
1 Can anyone tell me how to integrate sendmail and spamassassin? All my
2 efforts till now have failed. Here's my info:
3
4 baby ~ # emerge -pv sendmail spamassassin procmail
5
6 These are the packages that would be merged, in order:
7
8 Calculating dependencies... done!
9 [ebuild R ] mail-mta/sendmail-8.14.0 USE="sasl ssl tcpd -ipv6 -ldap
10 -mailwrapper -mbox -nis -sockets" 0 kB
11 [ebuild R ] mail-filter/spamassassin-3.1.8-r1 USE="berkdb doc mysql
12 ssl -ipv6 -ldap -postgres -qmail -sqlite -tools" 0 kB
13 [ebuild R ] mail-filter/procmail-3.22-r7 USE="-mbox (-selinux)" 0
14 kB
15
16 Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
17
18 baby ~ # cat /etc/mail/sendmail.mc
19 divert(-1)
20 divert(0)dnl
21 include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
22 VERSIONID(`$Id: sendmail.mc,v 1.2 2004/12/07 01:59:31 g2boojum Exp
23 $')dnl
24 OSTYPE(linux)dnl
25 DOMAIN(generic)dnl
26
27 #define(`confTO_IDENT',`0s')dnl
28
29
30 FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
31 FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
32 FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
33 FEATURE(local_procmail)dnl
34
35
36
37 MASQUERADE_AS(`espersunited.com')dnl
38 MASQUERADE_DOMAIN(`espersunited.com')dnl
39 FEATURE(`masquerade_entire_domain')dnl
40
41
42 MAILER(local)dnl
43 MAILER(smtp)dnl
44 MAILER(pop)dnl
45 MAILER(procmail)dnl
46
47 baby ~ # cat /etc/procmailrc
48 # Use maildir-style mailbox in user's home directory
49 DEFAULT=$HOME/.maildir/
50
51 DROPPRIVS=yes
52 #Uncomment the following lines to allow for logging
53 #
54 LOGFILE=/var/log/procmail
55 VERBOSE=ON
56 #
57 :0fw
58 # The following line tells Procmail to send messages to Spamassassin
59 only if they are less thatn 256000 bytes. Most spam falls well below
60 this size and a larger size could seriously affect performance.)
61 * < 256000
62 #
63 | /usr/bin/spamassassin -P
64 #
65 :0e
66 {
67 EXITCODE=$?
68 }
69 baby ~ #
70
71 baby ~ # /etc/init.d/spamd status
72 * status: started
73 baby ~ #
74
75 Please help!
76
77
78
79 --
80 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] OT - Spamassassin and sendmail Randy Barlow <randy@×××××××××××××××××.com>
Re: [gentoo-user] OT - Spamassassin and sendmail Jarry <jarry@×××.net>