Password table

auth.pass_table module implements username:password authentication by looking up the password hash using a table module (maddy-tables(5)). It can be used to load user credentials from text file (via table.file module) or SQL query (via table.sql_table module).


auth.pass_table [block name] {
    table <table config>


Shortened variant for inline use:

pass_table <table> [table arguments] {
    [additional table config]

Example, read username:password pair from the text file:

smtp tcp:// {
    auth pass_table file /etc/maddy/smtp_passwd

Password hashes

pass_table expects the used table to contain certain structured values with hash algorithm name, salt and other necessary parameters.

You should use 'maddyctl hash' command to generate suitable values. See 'maddyctl hash --help' for details.

maddyctl creds

If the underlying table is a "mutable" table (see maddy-tables(5)) then the 'maddyctl creds' command can be used to modify the underlying tables via pass_table module. It will act on a "local credentials store" and will write appropriate hash values to the table.