summaryrefslogtreecommitdiff
path: root/fml/doc/en/tutorial/setup/procmail.sgml
blob: 8f48faff54a00a14c667814ddae593e5a19b00e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!--
   $FML$
   $jaFML: procmail.sgml,v 1.3 2003/04/15 14:51:44 fukachan Exp $
-->

<sect1 id="setup.procmail">
	<title>
	I want to use ML by my account.
	</title>

<para>
When you need to set up a ML on your account, for example virtual
domain service of ISP, use a mail processor such as procmail.
</para>

<para>
You need to filter messages according to To: or Cc: in the mail header
and redistribute it.
</para>

<para>
makefml creates/updates ~/.procmailrc sample in newml 
at /var/spool/ml/etc/procmail/procmailrc.
</para>


<sect2 id="setup.procmailrc">
	<title>
	~/.procmailrc example
	</title>

<para>
<screen>
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:/usr/pkg/bin
MAILDIR=$HOME/Mail	# You'd better make sure it exists
DEFAULT=$HOME/Mail/mbox
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=$HOME/.lockmail
VERBOSE=on

:0
* To.*elena@fml.org
| /usr/local/libexec/fml/fml.pl /var/spool/ml/elena

:0
* To.*elena-ctl@fml.org
| /usr/local/libexec/fml/fml.pl /var/spool/ml/elena --ctladdr

# last resort, mail for me et. al.
:0
inbox/.
</screen>
</para>

</sect2>

</sect1>