Joyent

Translations of this page:

Managing mail aliases

Mail aliases let you define mail destinations (basically email addresses) on your virtual servers that can be handled in various ways. There are four default aliases created for each virtual server, mapping the RFC recommended addresses of abuse@, hostmaster@, postmaster@ and webmaster@ (under the respective domain) to your primary user.

Make sure you have enabled mail for your domain, otherwise your user will not be able to send or receive email. You can enable mail from Virtualmin by doing the following:

  1. Sign in to Virtualmin (see Account logins and important URLs).
  2. Select a virtual server from the drop-down in the left-hand navigation (your main virtual server should be already selected when you first login to Virtualmin).
  3. Click Edit Virtual Server in the left-hand navigation.
  4. Click Enabled features
  5. Select Mail for domain enabled? and click Save Virtual Server

Creating a mail alias

  1. Sign in to Virtualmin (see Account logins and important URLs).
  2. Select a domain from the drop-down in the left-hand navigation (your main domain should be already selected when you first login to Virtualmin). The domain you select here will be the one that you'll be adding a user to.
  3. Click Edit Mail Aliases in the left-hand navigation.
  4. Click Add an alias to this domain.
  5. For Description, enter any suitable description for your alias.
  6. For Name, enter the desired alias name in the Mailbox field (this would be the part that precedes yourdomain.com).

The rest of the controls on the page provide for all the actions that may be taken for mail destined for the mail alias.

Don't forget that you can always click on the (blue) option titles link to get some help on how the various features work and how are they best used.

  • Deliver locally? - enable the Yes, deliver to mailbox option to have mail delivered to one of the mailboxes on your account (enter the full username eg joe-yourdomain into the field next to the option). Note any mail forwarding that this user has set up will be ignored.
  • Bounce mail? - enable the Yes, send bounce reply option if you want all mail bounced back to sender.
  • Forward to other address? - enable the Yes, forward to addresses option to have mail forwarded to mail addresses entered in the input box below. This can also be to a local mailbox like “Deliver locally”, but respecting that user's forwarding.
  • Send automatic reply? - enable the Yes, respond with message option to have the response entered below automatically sent back to senders of any mail you receive at this address.
  • For Minimum time between autoreplies, select the option next to minutes and enter a reasonable delay in the text field, such as 10 minutes. This will prevent an automatic response from being created for someone who has sent more than one message in the given time period (in this case, 10 minutes), which helps avoid creating endless loops.
  • For Automatic reply start date and Automatic reply end date, you may set dates when an automatic response should enable (start) and disable (end) itself automatically, e.g. on the days of your vacation.
  • For From: address for replies, you may define an explicit email address that the automatic response should have as the sender (From).

If you click on Advanced mode on the top of the alias page, a different interface will show - one that will let you achieve the same as above and more, ending up with a potentially long list of actions (e.g. have mail delivered to several mailboxes). Click the Alias destinations link there to get a description of all the options available.

Creating multiple aliases in batches

If you have to add many users to your account you can do so easily by following these steps rather than creating each user one at a time.

  1. Sign in to Virtualmin (see Account logins and important URLs).
  2. Select a virtual server from the drop-down in the left-hand navigation (your main virtual server should be already selected when you first login to Virtualmin). The virtual server you select here will be the one that you'll be adding an alias to.
  3. Click Edit Mail Aliases in the left-hand navigation.
  4. Click Manually edit aliases.
  5. In the text field below, list all the aliases that you want to create and their permissions. The list should include one alias per line and each line must be in the following format:
    mailbox:comment:destination:[destination...]
    • For more information on the file format and the batch alias creation process, click Help.. at the top-left of the page.
  6. Finally, click Save to update your list of aliases.

Editing and deleting aliases

You can edit an alias on the same screen as when creating it, just by clicking its name in the list. To delete, either click Delete on the particular alias page, or select one or more from the list by ticking the boxes, and click Delete selected aliases.

 
shared/kb/mail-aliases.txt · Last modified: 2008/08/17 14:08 by daniel
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki