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