-
-
Notifications
You must be signed in to change notification settings - Fork 9
Setup
anon edited this page Sep 22, 2025
·
7 revisions
- Python:
Python 3.10or newer is recommended. - Mail server: Postfix configured to emit SASL authentication logs (e.g.
/var/log/mail.log), depending onrsyslogorsyslog-ng. - Local MTA (Mail Transfer Agent): A functional MTA (e.g.,
Postfix,Sendmail,Exim) must be installed and correctly configured on the server where MailLogSentinel runs. This is essential for MailLogSentinel to be able to send email reports. - Permissions:
- The user account under which
maillogsentinel.pywill run (the "operational user") requires read access to the mail server's log files. This often involves adding the user to a group like adm. - The operational user also needs write access to the working_dir and state_dir directories that will be specified in the configuration file.
- Root (
sudo) privileges are required only for the--setupcommand, as it may need to create system directories (like/etc/maillogsentinel.conf,/var/log/maillogsentinel), set their permissions, and potentially guide the user in adding the operational user to necessary groups.
- The user account under which
- SQLite3 database.
Clone the Repository:
git clone https://github.com/monozoide/MailLogSentinel.git
cd MailLogSentinelInstall the Script: It is recommended to place the script in a system-wide accessible location (e.g., /usr/local/bin) and make it executable:
sudo cp bin/maillogsentinel.py /usr/local/bin/
sudo chmod +x /usr/local/bin/maillogsentinel.pyAfter installation, you can typically run the script as maillogsentinel.py or by its full path /usr/local/bin/maillogsentinel/maillogsentinel.py.