To perform delivery, sendmail needs to find information about any recipient or sender that is local. The items of interest are:
In the past, all of this information was gathered using getpwent (3). Beginning with V8.12 sendmail , it is possible to specify this or a different method using an API designed to allow you to write your own method. The MailboxDatabase option is used to specify how user information is acquired : O MailboxDatabase= method configuration file (V8.12 and later) -OMailboxDatabase= method command line (V8.12 and later) define(`confMAILBOX_DATABASE', method) mc configuration (V8.12 and later) Here, the method is of type string . The default (and, as of V8.12, the only) method is the literal string pw , which means to use getpwent (3). An LDAP implementation of a method is included in the source as an example. If you wish to write your own method, see the code in libsm/mbdb.c . The MailboxDatabase option is not safe. If it is specified from the command line, it can cause sendmail to give up any special privileges. |