HOWTO Setup Logwatch: Difference between revisions

From Research
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This guide assumes you have installed:
== Assumptions ==
-logwatch
This guide assumes you have setup a Mail Transport Agent, such as Nullmailer or Postfix. If not, you can follow the [[HOWTO Setup Nullmailer|Nullmailer Guide]], or the [[HOWTO Setup Postfix|Postfix Guide]].
-postfix (mail transport agent - MTA)


Configure Postfix; the relevant settings to be tweaked are presented:
== Install Logwatch ==
<br>
myhostname = zero.iat.sfu.ca
mydomain = iat.sfu.ca
sender_canonical_maps = hash:/etc/postfix/sender_canonical
virtual_maps = hash:/etc/postfix/virtual
relayhost = ''gotta check on this!''


Set root's ~/.forward to:
# emerge logwatch -va
<br>
 
Set root's ~/.forward file to:
  admin@siat.sfu.ca
  admin@siat.sfu.ca
  some_co_amin_name@sfu.ca
  some_co_amin_name@sfu.ca
== Test ==
# logwatch.pl

Revision as of 18:25, 3 May 2006

Assumptions

This guide assumes you have setup a Mail Transport Agent, such as Nullmailer or Postfix. If not, you can follow the Nullmailer Guide, or the Postfix Guide.

Install Logwatch

# emerge logwatch -va

Set root's ~/.forward file to:

admin@siat.sfu.ca
some_co_amin_name@sfu.ca

Test

# logwatch.pl