• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

CHANGELOGH A D25-Jun-20087.3 KiB250141

COPYINGH A D25-Jun-200817.6 KiB341281

MakefileH A D25-Jun-2008535 3120

READMEH A D25-Jun-20082.6 KiB10865

README.solarisH A D25-Jun-2008753 3823

bogom.8H A D03-May-20228.4 KiB313295

bogom.conf-exampleH A D03-May-20221.8 KiB121102

conf.cH A D25-Jun-20085.7 KiB366263

conf.hH A D25-Jun-20081.2 KiB5022

milter.cH A D03-May-202225.8 KiB1,3861,135

README

1bogom - simple sendmail milter to interface bogofilter
2Copyright (C) 2004-2007 Juan J. Martinez <jjm@usebox.net>
3
4
5Required
6--------
7
8This milter requires libmiter API for sendmail 8.13.x or later.
9Installing bogofilter is a good idea also.
10
11Bogom has been developed and tested with the following:
12
13	sendmail 8.13.0 and 8.14.1
14	bogofilter 0.92.8 (with BerkeleyDB 4.2.52)
15
16
17Build and Install
18-----------------
19
20This milter has been developed in OpenBSD, so you may need to tweak the
21Makefile in order to compile it in other systems.
22
23Check README.* files for specific notes.
24
25On most Linux and BSD based systems, simply try:
26
27$ make
28$ su
29# make install
30
31Bogom has been packaged for FreeBSD (mail/milter-bogom) and non officially for
32some Linux distributions.
33
34IMPORTANT: since 1.8.1+ the bogom binary is installed into $(PREFIX)/libexec,
35           so be sure to remove $(PREFIX)/sbin/bogom from any previous
36           installation.
37
38
39Unprivileged user
40-----------------
41
42When root starts bogom, the program drops its privileges to another user. It's
43a good idea you create a new user to run the milter. By default bogofilter user
44is expected.
45
46# mkdir /var/spool/bogofilter
47
48Configure bogofilter with:
49
50bogofilter_dir=/var/spool/bogofilter
51
52... and create your intial words database.
53
54After that, setup the environment with:
55
56# chown -R bogofilter:bogofilter /var/spool/bogofilter
57# chmod 700 /var/spool/bogofilter
58# chmod 600 /var/spool/bogofilter/wordlist.db
59
60
61Custom installation step by step
62--------------------------------
63
64bogom provides some defaults, but don't have to stick into them.
65
66Here follows a 'step by step' quickstart to configure bogom and bogofilter.
67
68+ Install bogofilter
69+ Install bogom
70+ Create the '_bogom' user and group
71+ Create the directories and apply permissions:
72
73# mkdir -p /var/run/bogom && chown _bogom:_bogom /var/run/bogom
74# mkdir -p /var/db/bogofilter && chown _bogom:_bogom /var/db/bogofilter
75
76+ Copy the example bogofilter.cf file into /etc and edit it:
77
78bogofilter_dir=/var/db/bogofilter
79
80+ Setup bogofilter database. About 500 messages of spam/ham will be nice:
81
82# su _bogom -c "bogofilter -s < spam.mbox"
83# su _bogom -c "bogofilter -n < ham.mbox"
84
85(use su with -m option if _bogom user doesn't have shell account)
86
87+ Install the example conf file at /etc/bogom.conf and edit it. At least
88you should set up:
89
90user "_bogom"
91pidfile "/var/run/bogom/bogom.pid"
92connection "unix:/var/run/bogom/milter.sock"
93
94+ Add to your sendmail mc file:
95
96INPUT_MAIL_FILTER(`bogom',\
97`S=unix:/var/run/bogom/milter.sock, T=S:30s;R:1m')
98
99(rebuild and install the cf file)
100
101+ Add bogom to your rc or init.d scripts
102+ Restart sendmail
103+ Exec bogom or reboot the system
104
105
106* EOF *
107
108

README.solaris

1Solaris notes
2-------------
3
4The information in README applies, so read it too.
5
6Tested with:
7
8	bogom 1.8.2
9	Solaris 10
10	gcc 3.4.3
11	Sendmail 8.13.3+Sun
12
13Build command:
14
15	$ gmake CC=gcc LIBS="-lmilter -lpthread -lsocket -lnsl"
16
17Caveats:
18
19	Man page is in BSD man pages' format and needs mdoc macros
20
21About file descriptor limit:
22
23	This is a problem related to 23-bit applications running on
24        Solaris, that has been fixed on Solaris 10.
25
26	There have been reports of this issue with the milter under
27	high load and several threads running. The milter was built
28	with Sun Strudio 12.
29
30	bogom 1.9.1 and later have a fix, but this hasn't been tested
31	deeply.
32
33	Further information:
34	http://developers.sun.com/solaris/articles/stdio_256.html
35
36* EOF *
37
38