UserDatabaseSpec

Specify user database V8.1 and later

V8 sendmail, if compiled with USERDB defined (USERDB on page 150), can use a special, internally understood database called the User Database. Addresses that are defined in the User Database can be looked up and modified after aliasing but before the processing of the user’s ~/.forward file.

The workings of this database are described in userdb on page 942. The UserDatabaseSpec option defines the name and location of the file containing this User Database information.

The forms of the UserDatabaseSpec option are as follows:

O UserDatabaseSpec=path,...configuration file (V8.7 and later)
-OUserDatabaseSpec=path,...command line (V8.7 and later)
define(`confUSERDB_SPEC',``path,...'')   ← mc configuration (V8.7 and later)
OUpath,...configuration file (deprecated)
-oUpath,...command line (deprecated)

The argument path, . . . is of type string and is a comma-[432] or space-separated list of elements. Those elements can be database pathnames, or other information as described next. If path, . . . is missing or if the entire option is missing, the User Database is not used. Otherwise, the User Database is used, and each database is accessed in turn, leftmost to rightmost, in the list of paths. There is no default for the mc technique.

The elements of path, . . . can be either pathnames of files or other methods of lookup, depending on the first character of each:

/

A leading slash causes the element to be interpreted as a pathname; ...

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.