Skip to content
Snippets Groups Projects
Verified Commit c6d1ac4b authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fix journalctl postfix command

parent 7613bfd0
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ def check_send_test_email(conf: dict) -> int:
cmd = "grep '{}' /var/log/mail.log".format(email)
else:
u.info("/var/log/mail.log not found, trying journalctl")
cmd = "journalctl -u postfix | grep {}".format(email)
cmd = "journalctl -t postfix/smtp | grep {}".format(email)
# logs polling
time.sleep(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment