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

Postfix multi instance with separate SASLDB for each instance

· 52CE 我爱测

I configured postfix with multiple instances (postmulti), each instance has your own IP address and it´s working great, but I need each instance uses it´s own sasldb2 file to authenticate users. The problem I am consolidating 35 …

问题原文

原帖链接 · Luiz Gustavo · CC BY-SA 3.0

I configured postfix with multiple instances (postmulti), each instance has your own IP address and it´s working great, but I need each instance uses it´s own sasldb2 file to authenticate users.

The problem I am consolidating 35 postfix dedicated VMs in 1 vm with postmult, but this 35 instances is for a authenticated relay and all has the same username "[email omitted]" with different passwords and I do not want to force customers to change their usernames, I like to make this change as transparent possible to final users.

Actually, the /var/spool/postfix/etc/sasldb2 is shared between instances, I really need each instance works with your own db like /var/spool/postfix-22/sasldb

Could you help me?

已采纳解答

原帖链接 · bodgit · CC BY-SA 3.0

If you can set a separate smtpd_sasl_path for each Postfix instance then you could point each instance to a separate SASL configuration file and then within that you can set a different sasldb_path. For example, in Postfix:

smtpd_sasl_path = instance1

That means the SASL library will look for the configuration in /etc/sasl2/instance1.conf (directory may vary) instead of the default /etc/sasl2/smtpd.conf, which can then contain:

pwcheck_method: auxprop
auxprop_plugin: sasldb
mech_list: ...
sasldb_path: /path/to/instance-specific/sasldb

Would that work?

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

资料来源与适用范围

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

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

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