technical:24.04_logwatch_installation
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| technical:24.04_logwatch_installation [2024/10/12 21:04] – created wikiadmin | technical:24.04_logwatch_installation [2024/11/13 18:56] (current) – [Testing] mark_scottworld.net | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| As part of the installation, | As part of the installation, | ||
| - | Set the System mail name = your solaris.scottworld.net<br> | + | Set the System mail name = your solaris.scottworld.net |
| For the mail outgoing mail to relay correctly we need to set a ''' | For the mail outgoing mail to relay correctly we need to set a ''' | ||
| Line 84: | Line 84: | ||
| ssl0.ovh.net | ssl0.ovh.net | ||
| + | |||
| Execute the command (to refresh the password table) | Execute the command (to refresh the password table) | ||
| postmap / | postmap / | ||
| - | == Alias the sender account if needed by your ISP == | + | ===== Alias the sender account if needed by your ISP ===== |
| If you dont have authorisation on your SMTP relay to send mail for the standard sender account (in this case root@scottworld.net) you can alias it. | If you dont have authorisation on your SMTP relay to send mail for the standard sender account (in this case root@scottworld.net) you can alias it. | ||
| Line 109: | Line 110: | ||
| systemctl restart postfix.service | systemctl restart postfix.service | ||
| - | == Testing == | + | ==== Testing ==== |
| You can now test logwatch and the email functionality is working with the following command. | You can now test logwatch and the email functionality is working with the following command. | ||
| Line 119: | Line 121: | ||
| tail -f / | tail -f / | ||
| - | == Emailing Tweaks == | + | === Emailing Tweaks === |
| We may want to catch mail errors, so we need to set up a root mailing account and a few mail utilities. We should be good citizens and set this up as it will collect bounced emails. | We may want to catch mail errors, so we need to set up a root mailing account and a few mail utilities. We should be good citizens and set this up as it will collect bounced emails. | ||
| Line 139: | Line 142: | ||
| == Configure Logwatch Daily Reports == | == Configure Logwatch Daily Reports == | ||
| + | |||
| Create a file | Create a file | ||
| Line 154: | Line 158: | ||
| Service = All | Service = All | ||
| Service = -audit | Service = -audit | ||
| + | Service = -http | ||
| + | Service = -sshd | ||
| + | Service = -pam_unix | ||
| </ | </ | ||
| Line 162: | Line 169: | ||
| Add this line to tone down the logging | Add this line to tone down the logging | ||
| - | services/ | + | services/ |
| Add a script for SMARTD error reporting | Add a script for SMARTD error reporting | ||
| Line 170: | Line 177: | ||
| Set the following to change the log file and reporting | Set the following to change the log file and reporting | ||
| - | | + | < |
| - | LogFile = syslog | + | LogFile = |
| + | LogFile = none | ||
| + | *JournalCtl = " | ||
| + | </ | ||
| - | Update the named script to fix issues with gname minimization | + | Update the named script to fix issues with qname minimization |
| - | + | ||
| - | wget -O / | + | |
| - | https:// | + | |
| - | sed -i ' | + | |
| - | sed -i -e '/ | + | |
| - | + | < | |
| - | Update the named script to fix issues with fail2ban loggind | + | wget -O / |
| - | + | sed -i ' | |
| - | | + | sed -i -e '/ |
| - | | + | </ |
| Add a script for NAMED error reporting | Add a script for NAMED error reporting | ||
| Line 192: | Line 197: | ||
| Set the following to change the log file and reporting | Set the following to change the log file and reporting | ||
| - | | + | < |
| - | LogFile = syslog | + | LogFile = |
| - | + | LogFile = syslog | |
| - | Add a script for OPENVPN error reporting | + | </code> |
| - | + | ||
| - | | + | |
| - | + | ||
| - | Set the following to change the log file and reporting | + | |
| - | LogFile = | ||
| - | LogFile = syslog | ||
technical/24.04_logwatch_installation.1728759859.txt.gz · Last modified: by wikiadmin
