1
Debian Stretch上的Postfix 3.1.4似乎無法用它替代它試圖用mysql_table解析的地址。後綴不會替代%s
我配置了/etc/postfix/sasl/smtpd.conf(下面),但它從不驗證。當我檢查MySQL的日誌表,我看到:
| 2017-08-28 23:19:54 | postfix[postfix] @ localhost [127.0.0.1] | 834 | 0 | Query | START TRANSACTION |
| 2017-08-28 23:19:54 | postfix[postfix] @ localhost [127.0.0.1] | 834 | 0 | Query | SELECT password FROM mailbox WHERE username = '%s' |
| 2017-08-28 23:19:54 | postfix[postfix] @ localhost [127.0.0.1] | 834 | 0 | Query | SELECT password FROM mailbox WHERE username = '%s' |
| 2017-08-28 23:19:54 | postfix[postfix] @ localhost [127.0.0.1] | 834 | 0 | Query | COMMIT
當%s
爲後綴的模板,沒有一個MySQL/MariaDB的一個。它應該填寫電子郵件地址或用戶在這裏,但它似乎只是從配置逐字複製這。
這裏是/etc/postfix/sasl/smtpd.conf的內容:
autheck_method: saslauthd
mech_list: plain login
allow_plaintext: true
auxprop_plugin: sql
sql_hostnames: 127.0.0.1
sql_user: [redacted]
sql_passwd: [redacted]
sql_database: [redacted]
sql_select: SELECT password FROM mailbox WHERE username = '%s'
log_level:10