1 | $Id: sendmail.txt,v 1.2 2010/06/12 15:12:15 sbajic Exp $ |
---|
2 | |
---|
3 | SENDMAIL INTEGRATION |
---|
4 | |
---|
5 | Please follow the instructions in the README for building DSPAM. Once DSPAM |
---|
6 | has been built, the following instructions may be used to integrate it with |
---|
7 | sendmail. |
---|
8 | |
---|
9 | DSPAM is best integrated with sendmail by masquerading as the local delivery |
---|
10 | agent. This can be done by adding two lines to your config.mc file and |
---|
11 | rebuilding your configuration: |
---|
12 | |
---|
13 | define(`LOCAL_MAILER_PATH', `/usr/local/bin/dspam') |
---|
14 | define(`LOCAL_MAILER_ARGS', `dspam "--deliver=innocent" --user $u -d %u') |
---|
15 | |
---|
16 | Make sure these definitions are placed before the MAILER(local) definition. |
---|
17 | |
---|
18 | Alternatively, you may define additional procmail arguments if you are using |
---|
19 | procmail. For example: |
---|
20 | |
---|
21 | define(`LOCAL_MAILER_PATH', `/usr/local/bin/dspam') |
---|
22 | define(`LOCAL_MAILER_ARGS', |
---|
23 | `dspam -t -Y -a $h "--deliver=innocent" --user $u -d %u') |
---|
24 | |
---|
25 | NOTE: By default MAILER(local) define the flag F=w and sendmail check for a |
---|
26 | valid user identity in passwd(5). This Flag does not play well with |
---|
27 | virtual users - e.g. users authenticated via the saslauthd daemon. This |
---|
28 | flag can be removed with: MODIFY_MAILER_FLAGS(`LOCAL', `-w') |
---|
29 | |
---|
30 | If you don't feel like rebuilding your .cf files, you can alternatively |
---|
31 | just replace your local mailer in the Mlocal block of sendmail.cf and |
---|
32 | submit.cf. Be sure to update the path (P=) as well as arguments (A=). |
---|
33 | |
---|
34 | NOTE: If you are using sendmail restricted shell (smrsh), you will |
---|
35 | need to either disable it, or add /usr/local/bin/dspam to the allow list. |
---|
36 | Some administrators have experienced problems using smrsh with DSPAM. |
---|