大网数据广告活动
服务器运维问答

How does SASL know to read config from /etc/postfix/sasl?

· 52CE 我爱测

I've set up Postfix to authenticate with SASL on a Ubuntu based system. I've done this by following along with some recipes, but mostly readying a lot of the docs. One bit that works, but which I don't understand how it works is …

问题原文

原帖链接 · Dom · CC BY-SA 4.0

I've set up Postfix to authenticate with SASL on a Ubuntu based system. I've done this by following along with some recipes, but mostly readying a lot of the docs.

One bit that works, but which I don't understand how it works is based on a recipe from the postfix website. I have created the file /etc/postfix/sasl/smtpd.conf, which I understand is a SASL, not Postfix, configuration file. How does SASL know to check this location for config when working with Postfix? I didn't have to configure SASL to point to this directory, so is it hard coded? Are there any other directories will SASL search in for config?

已采纳解答

原帖链接 · Zareh Kasparian · CC BY-SA 4.0

Consider the image below:

following is the link for the image I have added above.

https://www.postfix.org/SASL_README.html

Please Go to the "Configuring Cyrus SASL" Section. by This postfix read all configuration files under /etc/postfix with suffix of .conf .

But to answer your question,

I didn't have to configure SASL to point to this directory, so is it hard coded

The answer is "Yes"

if you run the following command in your terminal, you may see that "smtpd_sasl_path" is equal to "smtpd" as below image:

The name of the configuration file (default: smtpd.conf) is configurable. It is a concatenation from a value that the Postfix SMTP server sends to the Cyrus SASL library, and the suffix .conf, added by Cyrus SASL.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-03-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。