什么时候该用这个 sqlite.files?
用来恢复缺失的默认文件、确认发行版本带了什么,或拿你的 Postfix config 做 diff。
$shlib_directory/postfix-sqlite.so:f:root:-:755 $manpage_directory/man5/sqlite_table.5.gz:f:root:-:644
curl https://exampleconfig.com/api/v1/config/original/0f49c8f3367043bf170db6dbc2f555b5?hint=sqlite.files
wget -O sqlite.files https://exampleconfig.com/api/v1/config/original/0f49c8f3367043bf170db6dbc2f555b5?hint=sqlite.files
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/0f49c8f3367043bf170db6dbc2f555b5?hint=sqlite.files' /><config><app>Postfix</app><os>Debian 9 (Stretch)</os><location>/etc/postfix/postfix-files.d/sqlite.files</location><lines>2</lines><md5>0f49c8f3367043bf170db6dbc2f555b5</md5><sha256>dd2f1c21528f566ac1652627ca1aff89a359b143101a60c2d87ea9b2fa555fb9</sha256></config></prompt>
粘贴到 Claude、ChatGPT 或任何 AI 助手里。
sudo apk add postfix
sudo apt update && sudo apt install postfix
sudo yum install postfix
sudo apt update && sudo apt install postfix
什么时候该用这个 sqlite.files?
用来恢复缺失的默认文件、确认发行版本带了什么,或拿你的 Postfix config 做 diff。
怎么恢复 Postfix 的默认配置?
下载文件,把 /etc/postfix/postfix-files.d/sqlite.files 里的当前配置备份好,替换掉,然后 reload 或 restart Postfix。
sqlite.files 适合直接上生产吗?
这是 Debian 9 (Stretch) 的厂商默认配置,只能当基线。上生产前请检查安全和性能设置。
和其他 OS 版本有什么不同?
默认值会随发行版和版本变化,这份对应 Debian 9 (Stretch)。
我可以用它来排查 Postfix 吗?
可以。和你的配置做 diff 找出漂移,然后只恢复需要的段落。