How To Sort Email Using Address Extensions

From ECE Information Technology Services
Revision as of 10:53, 20 August 2021 by WikiSysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Email can be addressed to you in one of two ways:

  • to your standard email address: username@ece.ubc.ca (e.g., johns@ece.ubc.ca)
  • to an extended email address: username+extension@ece.ubc.ca (e.g., johns+foobar@ece.ubc.ca)

Both address forms are recognized as being for you. The difference is that the mail server can be told to do different processing for mail addressed to your extended email address based on the extension. The delimiter separating your username and the extension is the + (plus) character. You can use as many different extensions as you like: all the email will still be delivered to you.

One particularly handy use of extended usernames is automatic sorting of your incoming email.

Suppose you are interested in subscribing to the bugtraq mailing list. If you subscribe with username+bugtraq@ece.ubc.ca, and you place a file named .forward+bugtraq file in your home directory containing:

~/Maildir/.bugtraq/

Then email from the bugtraq mailing list would be sorted into your bugtraq folder automatically. No more bugtraq emails cluttering your normal inbox!

NB: the trailing slash on ~/Maildir/.bugtraq/ tells the mail server to deliver to a Maildir-formatted mailbox.


See Also