Closed sableeyed closed 2 years ago
After a lot of testing, this is not an issue with parsedmarc itself.
In fact if you run parsedmarc with --verbose --debug you will get a good idea of the issue. In this case permissions on .token
more specifically, the folder it was contained in.
Hello, not sure if I have messed anything up permissions wise, but I used the documentation on https://domainaware.github.io/parsedmarc/ and from Linuxbabe.
When running the script as a systemd service, the status just returns
INFO:cli.py:667:Starting parsedmarc
and does nothing else after that.I was previously running the script with just
sudo parsedmarc -c /etc/parsedmarc.ini
. Since the systemd file is set to run as parsedmarc:parsedmarc, I tried asudo -u parsedmarc /usr/local/bin/parsedmarc -c /etc/parsedmarc.ini
and this did indeed return permission errors.I have since fixed the permission errors, so running the script manually as the parsedmarc user works, but the systemd unit does nothing.
Here's the systemd file and the file permissions.
And journalctl returns no errors for recent executions.
And after stopping the service and running the script manually as parsedmarc, providing full file paths, everything works
Here is the config file with sensitive info edited out.