Update for the recent version.
[PerlMail.git] / README
1 $Id$
2
3
4 Installation
5 ------------
6
7 Edit: PerlMail/Config.pm
8 MySQL database password store to: /home/USERNAME/priv/mysql.USERNAME.pwd
9 Run: ./perlmail-submit --initdb
10
11
12 (if you are using xinetd(8) instead of inetd(8)) workstation: /etc/xinetd.d/perlmail
13 Copy "xinetd.perlmail" as "/etc/xinetd.d/perlmail".
14 substitute: USERNAME, PATH/TO
15 Use ntsysv(8) to enable the service "perlmail".
16
17 (if you are using inetd(8) instead of xinetd(8)) workstation: /etc/inetd.conf
18 substitute: USERNAME, PATH/TO
19 ---------------------------------- cut here ----------------------------------
20 852 stream tcp nowait USERNAME /home/USERNAME/PATH/TO/PerlMail/perlmail-accept perlmail-accept --inetd
21 ---------------------------------- cut here ----------------------------------
22
23
24 (optional, recommended) workstation: /etc/services
25 ---------------------------------- cut here ----------------------------------
26 perlmail 852/tcp
27 ---------------------------------- cut here ----------------------------------
28
29
30 (optional if using sendmail wrapper) workstation: /etc/aliases
31 run after: newaliases
32 substitute: USERNAME
33 ---------------------------------- cut here ----------------------------------
34 sentout: /home/USERNAME/Mail/sentout
35 ---------------------------------- cut here ----------------------------------
36
37
38 (optional if using sendmail wrapper) workstation: Run
39 substitute: USERNAME, PATH/TO
40 ---------------------------------- cut here ----------------------------------
41         mv /usr/sbin/sendmail /usr/sbin/sendmail-orig
42         ln -s /home/USERNAME/PATH/TO/PerlMail/perlmail-sendmail /usr/sbin/sendmail
43 ---------------------------------- cut here ----------------------------------
44
45
46 server: crontab -e
47 substitute: PATH/TO
48 ---------------------------------- cut here ----------------------------------
49 */10 * * * * exec $HOME/PATH/TO/PerlMail/perlmail-submit &>/dev/null --submit --clean 4d
50 ---------------------------------- cut here ----------------------------------
51
52
53 server: $HOME/.procmailrc
54 substitute: PATH/TO
55 ---------------------------------- cut here ----------------------------------
56 #:0 c:
57 #Mail/backup
58
59 # PerlMail forward
60 :0 W
61 |./PATH/TO/PerlMail/perlmail-submit --store --forkoff --submit >/dev/null 2>>.perlmail-submit.log
62
63 # PerlMail fallback
64 :0:
65 Mail/perlmail-submit-failed
66 ---------------------------------- cut here ----------------------------------