User:Svamberg/Logs to mail: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(initial text)
 
m (+ category)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Use this hook if you can getting logs by mail.
Use this hook if you want to get logs by mail.


==Install==
==Install==
* get this source [[Source:MailLog|savelog.DEFAULT]] and store to <tt>$FAI/hooks</tt>
* get this source [[Source:MailLog|savelog.DEFAULT]] and store it in <tt>$FAI/hooks</tt>
* install package <tt>libmail-sender-perl</tt> to your nfsroot
* install package <tt>libmail-sender-perl</tt> into your nfsroot


==Configure==
==Configure==
Change parameteres in head of hook file:
Change parameteres in the hook file header:
* <tt>@SEND_TO</tt> - array of target mails
* <tt>@SEND_TO</tt> - array of target mail addresses
* <tt>$SEND_FROM</tt> - outgoing mail address
* <tt>$SEND_FROM</tt> - sender mail address
* <tt>$SMTP_SERVER</tt> - adress of server for outgoing mail
* <tt>$SMTP_SERVER</tt> - adress of the server for outgoing mail
 
[[Category:Howto]]

Latest revision as of 08:01, 4 October 2010

Use this hook if you want to get logs by mail.

Install

  • get this source savelog.DEFAULT and store it in $FAI/hooks
  • install package libmail-sender-perl into your nfsroot

Configure

Change parameteres in the hook file header:

  • @SEND_TO - array of target mail addresses
  • $SEND_FROM - sender mail address
  • $SMTP_SERVER - adress of the server for outgoing mail