Files
tldr/pages.zh/linux/postconf.md

29 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# postconf
> Postfix 配置工具。
> 此命令默认显示 `main.cf` 配置参数的值,并警告可能的参数名称拼写错误。它还可以更改 `main.cf` 配置参数的值。
> 更多信息:<https://manned.org/postconf>。
- 指定 `main.cf` 配置文件的目录,而不是默认配置目录:
`postconf -c {{path/to/configuration_directory}}`
- 编辑 `main.cf` 配置文件并使用 "name=value" 对更新参数设置:
`postconf -e`
- 打印 `main.cf` 的默认参数设置,而不是实际设置:
`postconf -d`
- 仅显示指定类别的参数。类别可以是内置builtin、服务service、用户user或全部all
`postconf -C {{class}}`
- 列出可用于 Postfix SMTP 服务器的 SASL 插件类型。插件类型通过指定 `cyrus``dovecot` 作为名称,在 `smtpd_sasl_type` 配置参数中选择:
`postconf -a`
- 列出所有支持的查找表类型的名称。查找表在配置文件中指定为 `type:name`,其中类型可以是 `btree``cdb``hash``mysql` 等:
`postconf -m`