问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
