Global
The format is the source address, then the destination address. The section on forwarding itself (§ 13.9) clarifies: there can be several destination addresses, separated by commas.
The short form is a local part only. Then forwarding fires for that local part in any of the node’s local names. There is no matching by domain or by pattern.
Two places to write it, and the manual disagrees. Chapter 3 (§ 3.3.1.24) describes the line at the node level and shows it at the root of the file. Chapter 13 (§ 13.9) in all three examples places the same lines inside an <aliases> block — a block that is in neither the chapter 15 index nor the chapter 3 description of blocks.
Which form works on your engine version can only be checked by applying the configuration.
The other half is the manual’s own disagreement about whether to write the line at the root of the file or inside a block. It is easy to get wrong: a line written in the wrong place will most likely just not work, and there will be no error.
What to set. The value is a “from, to” pair; what you choose is the form of the entry:
| Value | When |
|---|---|
| a full address and one recipient | the usual case: one mailbox instead of another |
| a full address and several separated by commas | the message must go to several at once |
| a bare local part | the same mailbox in all of the node’s names |
The third form is the broadest and the least noticeable: it silently covers all local names, including those added later.
# two addresses on output and the short form in the second line <aliases> alias example@yourdomain.com support@example.net,sales@example.net alias jdoe someone@example.com </aliases>
what people get wrong and how it ends3 mistakes▶
§ 13.9
§ 3.3.1.24
§ 13.9
1 relation
grep -n -A5 '^<aliases>\|^alias ' /etc/pmta/config pmta show queues --maxitems=20
3 articles
◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.