1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-07-12 02:44:30 +02:00
docker-mailserver/docs/content/config/user-management/aliases.md
2016-05-23 21:08:23 -07:00

945 B

Please first read Postfix documentation on virtual aliases.

Configuring aliases

Aliases are managed in config/postfix-virtual.cf. An alias is a full email address that will be:

  • delivered to an existing account in config/postfix-accounts.cf
  • redirected to one or more other email addresses

Alias and target are space separated.

Example:

# Alias to existing account
alias1@domain.tld user1@domain.tld

# Forward to external email address
alias2@domain.tld external@gmail.com

Configuring regexp aliases

Additional regexp aliases can be configured by placing them into config/postfix-regexp.cf. The regexp aliases get evaluated after the virtual aliases (postfix-virtual.cf). For example, the following config/postfix-regexp.cf causes all email to "test" users to be delivered to qa@example.com:

/^test[0-9][0-9]*@example.com/ qa@example.com