View Single Post
  #3 (permalink)  
Old 01-30-2008, 02:53 PM
fizi fizi is offline
Senior Member
 
Posts: 58
Default

I resolved the problem on CentOS 5 by updating the Postfix Logwatch Scripts. You can get the newest version from: Postfix and Amavis Log Reporters

Oh guess I can put a HowTo as well:


Download the new processing script
The Postfix Logwatch script is maintained by Mike Cappella at his homepage: Postfix and Amavis Log Reporters
Download the latest stable version to your server.

Install the new processing script
Code:
1.	Backup the current configuration file:
          cd /usr/share/logwatch/default.conf/services/
          mv postfix.conf postfix.conf.bak
2.	Backup the current processing script
          cd /usr/share/logwatch/scripts/services
          mv postfix postfix.bak
3.	Extract the new scripts and configuration file and change into the same directory they extracted into
4.	Move the new configuration file and set the correct file permissions
          mv postfix-logwatch.conf /usr/share/logwatch/default.conf/services/postfix.conf
          chown root:root /usr/share/logwatch/default.conf/services/postfix.conf
          chmod 644 /usr/share/logwatch/default.conf/services/postfix.conf
5.	Move the new processing script and set the correct file permissions
          mv postfix-logwatch /usr/share/logwatch/scripts/services/postfix
          chown root:root /usr/share/logwatch/scripts/services/postfix
          chmod 755 /usr/share/logwatch/scripts/services/postfix
6.	Manually run logwatch and have it output to a file on the server to verify the output is correct
          logwatch --save /tmp/logwatchDebug.log
Additional Configuration (Optional)
If you want more details output for Postfix make the following change to your configuration file
Code:
vi /usr/share/logwatch/default.conf/services/postfix.conf
Near the bottom you will find a lot of different types of errors that can be logged.

Last edited by fizi : 01-30-2008 at 02:57 PM.
Reply With Quote