1# Password table23auth.pass_table module implements username:password authentication by looking up the4password hash using a table module (maddy-tables(5)). It can be used5to load user credentials from text file (via table.file module) or SQL query6(via table.sql_table module).789Definition:10```11auth.pass_table [block name] {12 table <table config>1314}15```16Shortened variant for inline use:17```18pass_table <table> [table arguments] {19 [additional table config]20}21```2223Example, read username:password pair from the text file:24```25smtp tcp://0.0.0.0:587 {26 auth pass_table file /etc/maddy/smtp_passwd27 ...28}29```3031## Password hashes3233pass_table expects the used table to contain certain structured values with34hash algorithm name, salt and other necessary parameters.3536You should use `maddy hash` command to generate suitable values.37See `maddy hash --help` for details.3839## maddy creds4041If the underlying table is a "mutable" table (see maddy-tables(5)) then42the `maddy creds` command can be used to modify the underlying tables43via pass_table module. It will act on a "local credentials store" and will write44appropriate hash values to the table.