diff --git a/tests/test_email.py b/tests/test_email.py
index 402d224406a6fa7233c0953a6d12e5b30378a335..ac86b665fabce20168e6831a797c8e0aa8a62b03 100755
--- a/tests/test_email.py
+++ b/tests/test_email.py
@@ -37,8 +37,8 @@ def check_listen() -> tuple:
     if status != 0 or ("127.0.0.1:25" not in out and "[::1]:25" not in out):
         u.error("Postfix is not listening on localhost:25")
         errors += 1
-
-    u.success("Postfix is listening on localhost:25")
+    else:
+        u.success("Postfix is listening on localhost:25")
 
     return warnings, errors
 
@@ -126,10 +126,10 @@ def check_send(sender: str) -> tuple:
     out = ""
 
     # find logs
-    if Path("/var/log/mail.log").is_file():
-        cmd = "grep '{}' /var/log/mail.log".format(email)
-    elif Path("/var/log/maillog").is_file():
+    if Path("/var/log/maillog").is_file():
         cmd = "grep '{}' /var/log/maillog".format(email)
+    elif Path("/var/log/mail.log").is_file():
+        cmd = "grep '{}' /var/log/mail.log".format(email)
     else:
         u.info("/var/log/mail.log not found, trying journalctl")
         cmd = "journalctl -t postfix/smtp | grep {}".format(email)