[mailserver] Add submissions check

This commit is contained in:
Tunui Franken 2025-02-01 21:33:15 +01:00
parent 7b7a21d59e
commit 32fc4122bd
2 changed files with 8 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed }}
ip daddr {{ hostvars[icinga2_agent].ipv4_addr }} tcp dport 5665 accept comment "Allow Icinga2 to Agent" ip daddr {{ hostvars[icinga2_agent].ipv4_addr }} tcp dport 5665 accept comment "Allow Icinga2 to Agent"
ip daddr {{ hostvars[relayhost].ipv4_addr }} tcp dport { 22, 25, 587, 993 } accept comment "Allow some ports to check mailserver" ip daddr {{ hostvars[relayhost].ipv4_addr }} tcp dport { 22, 25, 465, 587, 993 } accept comment "Allow some ports to check mailserver"

View file

@ -6,6 +6,13 @@ apply Service "smtp" {
assign where host.name == "{{ inventory_hostname }}" assign where host.name == "{{ inventory_hostname }}"
} }
apply Service "submissions" {
import "generic-service"
check_command = "ssmtp"
assign where host.name == "{{ inventory_hostname }}"
vars.smtp_port = 465
}
apply Service "submission" { apply Service "submission" {
import "generic-service" import "generic-service"
check_command = "smtp" check_command = "smtp"