Add relayclient ip to rspamd's local_addr
This commit is contained in:
parent
f7132eae93
commit
8900d883c6
2 changed files with 13 additions and 0 deletions
|
@ -46,3 +46,13 @@
|
|||
group: root
|
||||
mode: "644"
|
||||
notify: Reload rspamd service
|
||||
|
||||
- name: Copy local options.inc config
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: options.inc.j2
|
||||
dest: /etc/rspamd/local.d/options.inc
|
||||
owner: root
|
||||
group: root
|
||||
mode: "644"
|
||||
notify: Reload rspamd service
|
||||
|
|
3
roles/mailserver_rspamd/templates/options.inc.j2
Normal file
3
roles/mailserver_rspamd/templates/options.inc.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
local_addrs = [{{ hostvars[relayclient].ipv4_addr }}/32]
|
Loading…
Reference in a new issue