-A

Append values for duplicate keys V8.7 and later

Ordinarily, when sendmail builds (rebuilds) an aliases database, it objects to duplicate keys on the left of the colon:

staff:  bill
staff:  leopold        ← this is an error

But sometimes—for example, in automating—such duplicates are necessary. In such instances, the -A switch can be used with the AliasFile (A) option (see AliasFile on page 970) to cause duplicates to be silently appended:

staff:  bill
staff:  leopold
... silently modified by sendmail to internally become
staff:  bill, leopold

Note that this process is further illustrated in Duplicate Entries and Automation on page 477.

The -A database switch is useful only with alias files because those are the only files that sendmail rebuilds on its own. Beginning with V8.10, this switch is also useful with the ph type (ph on page 930).

Get sendmail, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.