diff --git a/tests/test_email.py b/tests/test_email.py index d9e3f288dbc36b23d308999a01826ca57ff4f35c..35d3e258a969aa39c188cc8b2d8c8ccd27f17476 100755 --- a/tests/test_email.py +++ b/tests/test_email.py @@ -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)