• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Grep mail log for sender email and date

mikehermary

New Pleskian
Hello,

I am trying to grep the mail log in Plesk using Terminal on my Mac to find the issue with an email being sent from an external email to my client's email addresses. The issue is an email message not being received by my client's email address from one sender, but they can receive messages from other senders with no problems. This issue started about two weeks ago and has remained consistent since that time. What grep command should I be using to track down the sender's email address and a date that a certain message was sent on? How does grepping an email address and sending it to a temporary file work in Plesk 10?

Here are the grep commands I am currently using:

Code:
grep 'someone@domain.com' /usr/local/psa/var/log/maillog |more

Code:
grep 'someone@domain.com' /usr/local/psa/var/log/maillog.* > tempresult.txt

Any assistance is greatly appreciated.

Thank you.

Mike
 
There's nothing wrong with what you are doing really, but stick to one file rather than trying to use .*

If there's no sign of the address then the most likely reason for non-delivery of email is that the sender's mailserver is on a spam blacklist.

Do you have any RBLs configured in Plesk? If so and the sending mailserver's IP is listed on one of the ones that you use then the sender will be rejected before any sender email address has a chance to appear in the log (at least it does when using qmail -- no idea about postfix).

They key thing is that under normal circumstances, when a message is rejected the sender will receive a bounce message. The first question is therefore to find out what that bounce message said -- the answer to everything will be in it.

If they say "the sender didn't receive a bounce" then things get interesting. Usually people just say that without actually checking, which just makes more work for you for potentially no reason, and you are kind of stuck unless you can determine the IP of the sending mailserver.

More detailed logging is possible when using spamdyke, where you would be able to see the sending and receiving addresses in the log even when the sundering IP is on a blacklist. Unfortunately installing and configuring spamdyke is not something you want to do just to see more detail in the logs, and it requires that you use qmail rather than postfix.
 
Back
Top