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

postfix in a jail how to notify blacklistd running in main host

· 52CE 我爱测

I have postfix compiled with blacklistd support running in a jail . On the main host (FreeBSD 12.1) blascklistd is running with this config: # Blacklist rule # adr/mask:port type proto owner name nfail disable [local] submission …

问题原文

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

I have postfix compiled with blacklistd support running in a jail.

On the main host (FreeBSD 12.1) blascklistd is running with this config:

# Blacklist rule
# adr/mask:port type    proto   owner           name    nfail   disable
[local]
submission      stream  *       *               *       2       24h

How to configure postfix to notify blacklistd running on the main host?

已采纳解答

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

Just add another socket to blacklistd in base

vim /etc/rc.conf

blacklistd_enable="YES"
blacklistd_flags="-r -s /var/run/blacklistd.sock"
blacklistd_jails="jail1 jail2"
for i in ${blacklistd_jails}
do
        blacklistd_flags="${blacklistd_flags} -s /jail/${i}/var/run/blacklistd.sock"
done

The programs in the jails (postfix, sendmail, sshd) just report to the default socket.

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

资料来源与适用范围

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

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

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