This userbase parses a simple textfile with mailbox information. The default location of this file is /etc/powermail/mailboxes. To select, set userbase=text.
Sample configuration:
/* mailbox with account info@example.com (or info%example.com) */ address "info@example.com" { password "{plain}s3cr3t!"; # plaintext! quota 250k; }; address "md5@example.com" { password "{md5}$1$shAcLd5E$7VrUnZ46/LkOmychA.Jca0"; # md5 hash of 's3cr3t!' }; address "sales@example.com" { forward "info@example.com"; };
Note the need for a semicolon after the closing brace of each completed address statement. Furthermore, each statement within also needs a semicolon.
If no quota is specified, it is infinite. To specify kilobytes, use the suffix 'k', megabytes 'm'.
If this file is changed, it is reread instantly. Any parsing errors are noted in the log and in that case the old configuration is retained in memory. A reparse will be attempted for each new message coming in, or each attempt to check email.
Each new message will cause the file to be reparsed, until it is read succesfully.
Even though this backend is quite simplistic, it parses 50.000 mailboxes within a second on a commodity server. In case a mailbox is present multiple times, behaviour is undefined. The first, last or even middle appearances may be chosen.
The location of the textfile is configured with the text-base setting.