/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/ommail-sendmail-default-binary.sh
35 строк
761 B
Rainer Gerhards
ommail: add sendmail delivery mode
16 май 2026, 18:51
16 май 2026, 18:51
b3e9273
Код
Авторство
О чём код?
#!/bin/bash # This file is part of the rsyslog project, released under ASL 2.0 . ${srcdir:=.}/diag.sh init if [ ! -x /usr/sbin/sendmail ]; then echo "ommail-sendmail-default-binary: /usr/sbin/sendmail not executable, skipping" skip_test fi generate_conf add_conf ' module(load="../plugins/ommail/.libs/ommail") template(name="mailBody" type="string" string="default binary smoke %msg%\\r\\n") if $msg contains "msgnum:" then { action( type="ommail" mode="sendmail" mailfrom="rsyslog@example.net" mailto="operator@example.net" subject.text="default binary smoke" template="mailBody" action.resumeRetryCount="0" ) } ' startup injectmsg 0 1 shutdown_when_empty wait_shutdown exit_test