Email Forwarding

Emails to @debian.org addresses go through an LDAP distributed email system. This system uses the forwarding field in the LDAP directory to route mail without passing it through a user's .forward file on a single host. Multiple machines participate in the forwarding to provide redundancy.

Each forwarder inspects the LDAP database to determine the forwarding address for foo@debian.org. The envelope to address is rewritten and the message redirected to the new address. As that redirection occurs on the mail relays, there is no opportunity for the use of .forward files, procmail or other filtering. Extension addresses (foo-lists) are supported, but the extension will not be preserved when forwarding - i.e. if foo@debian.org redirects to foo@example.com, then foo-lists@debian.org also redirects to foo@example.com.

As a special-case, the forwarding address may be foo@master.debian.org, in which case the message is relayed to that system for processing by the user's .forward or .procmailrc files. Forwarding to master.debian.org preserves the extension part of the original address.

All machines also use the forwarding attribute as a default destination for email. If the user has a home directory and no .forward file the mail is forwarded rather than delivered to /var/spool/mail. This makes sure cron reports, bug responses and other unexpected emails are not misplaced.

If you set the forwarding address to be a specific Debian machine and do not create a forward file then that machine will spool the mail to /var/spool/mail instead of creating a mail loop.

The email forwarding can be easily reconfigured using GnuPG:

echo "emailforward: foo@bar.com" | gpg --clearsign | mail changes@db.debian.org
or by visiting db.debian.org

You can test the email routing by using the command /usr/sbin/exim -bt foo@debian.org

procmail

If you use procmail for your main mailbox, PLEASE, erase your .forward file and put a .procmailrc in its place instead. .procmailrc files will not be synchronised to all hosts in the LDAP directory, so you will need to make sure the file exists on any relevant hosts yourself.

The correct way to invoke procmail for extension addresses is "|/usr/bin/procmail [options]" Ignore the IFS=".." stuff in the procmail man page.

Mailbox formats

Email can be saved to mailboxes or maildirs by using appropriately formatted lines in a .forward file:

Mailbox format files "/home/foo/Mbox"
Maildir format files "/home/foo/MailDir/"

To deliver to /var/spool/mail/foo use a construct like '|/usr/bin/procmail -m /dev/null'. Putting the mailbox path will not work. You must use absolute paths for mailboxes, qmail-like ./ paths are not supported by Exim.

Also, 'Exim Filter' files are deliberately turned off.

Spam handling

Debian developers have a wide variety of loud and conflicting opinions about what constitutes correct handling of their mail, making it impossible for an admin to choose a single setup that fits all use cases.

Instead, we invite you to configure your own spam handling.

Some options available to you are:


You can contact us at admin@db.debian.org.

Last Modified: Mon, Oct 21 20:08:47 UTC 2019
Copyright © 1997-2019 SPI; See license terms
Debian is a registered trademark of Software in the Public Interest, Inc.