Jump to content
Sign in to follow this  

Rsyslog не отправляет сообщения по почте.

Recommended Posts

всем привет.

Есть Debian 7.5 с установленным rsyslog 7.6.3. задача сделать так, чтобы он присылал сообщения по почте. он этого не делает, а выдает ошибку


action 'action 3' suspended, next retry is Fri Jun 6 15:25:55 2014 [try http://www. rsyslog.comhelp2.png/e/2007 ]


Кто-нибудь сталкивался с этим? как победить? Конфиг ниже.


$template FILENAME,"/var/log/%fromhost-ip%/syslog.log"
*.*       ?FILENAME
$ModLoad ommail
$ActionMailSMTPPort 25
$ActionMailFrom noreply@domain.ru
$ActionMailTo user@domain.ru
$template mailSubject,"mesage from %hostname%"
$template mailBody,"RSYSLOG Alert\r\nmsg='%msg%'"
$ActionMailSubject mailSubject
# make sure we receive a mail only once in six
# hours (21,600 seconds ;))
#$ActionExecOnlyOnceEveryInterval 21600
# the if ... then ... mailBody mus be on one line!
if ($syslogseverity-text =='err' or $syslogseverity-text =='crit' or $syslogseverity-text =='alert' or $syslogseverity-text =='emerg') then :ommail:;mailBody

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...