How to Collect and Share Mail Logs from Your Plesk Server (Linux)

Step 1: Connect to Your Server
Use SSH to access your server as the root user.
ssh root@your-server-ip -p port

Step 2: Locate the Mail Log File.
On Linux Plesk servers, mail logs are typically stored here
/var/log/maillog
sometimes
/var/log/mail.log


Step 3: View Recent Mail Activity.
To see the latest mail log entries
tail -n 50 /var/log/maillog
To continuously watch new entries in real time
tail -f /var/log/maillog

Step 4: Search for Specific Emails.
If you know the sender or recipient address, you can filter using
grep "[email protected]" /var/log/maillog
For example
grep "[email protected]" /var/log/maillog | tail -n 50

Step 5: Capture a Log Snippet for a Failed Email.
Send one test email from one internal user to another (for example, from [email protected] to [email protected]).
Immediately run
grep "$(date '+%b %e')" /var/log/maillog | grep "yourdomain.com" | tail -n 50 > /root/maillog-snippet.txt
This will save the relevant log lines to a file named maillog-snippet.txt in your /root/ directory.

Viewing Logs from Plesk Interface

You can also check logs directly from Plesk:
1.Go to Tools & Settings
2.Log Browser From the dropdown, select /var/log/maillogĀ 
3.Use the search field to filter by sender, recipient, or date.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 35