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