fix layout problems
[mirror/userdir-ldap-cgi.git] / html / forward.wml
1 #use wml::db.d.o title="Email Forwarding"
2
3 <dsatoc/>
4
5 <p>
6 Emails to @debian.org addresses now go through a LDAP distributed email system. 
7 This system uses the forwarding field in the LDAP directory to route mail 
8 without passing it through a users .forward file on a single host.
9 Multiple machines participate in the forwarding to provide redundancy.
10
11 <p>
12 Each forwarders inspects the LDAP database
13 to see if foo@debian.org has forwarding set to an address, if so the <i>envelope
14 to address</i> is rewritten and the message redirected to the new address.
15 Otherwise the message is relayed to master.debian.org for processing by the
16 users .forward files. If email forwarding is setup then .forward files are
17 <b>NOT</b> considered. Extension addresses (foo-lists) are always routed
18 directly to master for processing.
19
20 <p>
21 All machines also use the forwarding attribute as a default destination for
22 email. If the user has a home directory and no .forward file the mail is
23 forwarded rather than delivered to /var/spool/mail. This makes sure cron
24 reports, bug responses and other unexpected emails are not misplaced.
25
26 <p>
27 If you set the forwarding address to be a specific Debian machine and do 
28 not create a forward file then that machine will spool the mail to 
29 /var/spool/mail instead of creating a mail loop.
30
31 <p>
32 The email forwarding can be easily reconfigured using GnuPG:
33 <pre>
34 echo "emailforward: foo@bar.com" | gpg --clearsign | mail changes@db.debian.org
35 </pre>
36 or by visiting <a href="https://db.debian.org/login.html">db.debian.org</a>
37
38 <p>
39 You can test the email routing by using the command <tt>/usr/sbin/exim -bt
40 foo@debian.org</tt>
41
42 <h2>procmail</h2>
43 If you use procmail for your main mailbox, PLEASE, erase your .forward
44 file and put a .procmailrc in its place instead. This feature has been
45 supported on debian.org machines for a good while now, and will continue to be
46 supported.  .procmailrc files won't be synchronised to all hosts in
47 the LDAP directory.
48
49 <p>
50 The correct way to invoke procmail for extension addresses is "|/usr/bin/procmail [options]"
51 Ignore the IFS=".." stuff in the procmail man page.
52
53 <h2>MailBox formats</h2>
54 Email can be saved to mailboxes or maildirs by using the correct lines in a
55 .forward file:
56 <p>
57 Mailbox format files "/debian/home/foo/Mbox"
58 <br>Maildir format files "/debian/home/foo/MDir/"
59
60 <p>
61 To deliver to /var/spool/mail/foo use a construct like '|/usr/bin/procmail
62 -m /dev/null'. Putting the mailbox path will not work. You must use
63 absolute paths for mailboxes, qmail-like ./ paths are not supported by
64 Exim.
65
66 <p>
67 Also, 'Exim Filter' files are deliberately turned off.