ansible-role-postfix/templates/pflogsumm_report.sh.j2

12 lines
296 B
Django/Jinja

#!/bin/bash
{% if postfix_pflogsumm_mail_report %}
MAILTO={{ postfix_pflogsumm_mail_report_address }}
{% else %}
MAILTO=
{% endif %}
pflogsumm {{ postfix_pflogsumm_options }} {{ postfix_logfile }}{% if not postfix_pflogsumm_mail_report %} >> {{ postfix_pflogsumm_logfile }}{% endif %}
exit $?