ソースを参照

ansible-playbooks/forward.yml: send test mail to ssl-tools.net

Fabian Peter Hammerle 4 年 前
コミット
10fcb3a09f
1 ファイル変更5 行追加0 行削除
  1. 5 0
      ansible-playbooks/forward.yml

+ 5 - 0
ansible-playbooks/forward.yml

@@ -141,3 +141,8 @@
       published_ports: ['25:25']
       restart_policy: unless-stopped
       restart: '{{ config.changed or virtual_alias_map.changed or smtpd_cert.changed }}'
+  - name: send test mail
+    command: docker exec postfix sendmail check@ssl-tools.net
+  - name: ssl-tools test url
+    debug:
+      msg: 'https://ssl-tools.net/mailservers/{{ hostname }}'