How to match virtual alias domains in postfix?

How to match virtual alias domains in postfix?

The default configuration of Postfix ( virtual_alias_domains = $virtual_alias_maps) is assuming a map of this mixed style. virtual_alias_maps are recursively looked up. If it returns the same address as the key, that address is used.

Do you need a UNIX account for postfix virtual mailbox?

With the Postfix virtual (8) mailbox delivery agent, every recipient address can have its own virtual mailbox. Unlike virtual alias domains, virtual mailbox domains do not need the clumsy translation from each recipient addresses into a different address, and owners of a virtual mailbox address do not need to have a UNIX system account.

When to use catch-all email accounts for postfix?

For example if an email send to [email protected], [email protected] and [email protected], should be sent to the same email address. This is useful if anyone of user mistypes an email address when they send it to me, or just guesses at a valid email address, then they will likely get an error message from my server such as user / email mail box does not exist.

Can a virtual alias resolve to a remote address?

Note: virtual aliases can resolve to a local address or to a remote address, or both. They don’t have to resolve to UNIX system accounts on your machine. More details about the virtual alias file are given in the virtual(5)manual page, including multiple addresses on the right-hand side.

What’s the difference between virtual mailbox and postfix?

Virtual alias domains are not to be confused with the virtual mailbox domains that are implemented with the Postfix virtual(8)mail delivery agent. With virtual mailbox domains, each recipi- ent address can have its own mailbox.

Which is an example of a virtual alias?

The main applications of virtual aliasing are: oTo redirect mail for one address to one or more addresses. oTo implement virtual alias domains where all addresses are aliased to addresses in other domains.

Why is my Postfix server rejecting invalid recipients?

The Postfix SMTP server rejects invalid recipients with “User unknown in virtual alias table”. Turns out, the error has to do something with validation of virtual alias domains: virtual_alias_domains by default is $virtual_alias_maps, setting it to anything else (to a non-matching domain or even leaving it empty) resolves the issue.