• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

The best command to troubleshoot a Plesk Qmail server

eugenevdm

Regular Pleskian
Tailing the log file would be the obvious method. But if you have 1000s of mailboxes finding stuff in the mail log is near impossible.

We use:
Code:
tail -f /usr/local/psa/var/log/maillog | egrep -i "unable|failed|refused|error|warning|listed"

The only annoying thing is that then the log still produces these stupid warnings:
"server_name spf filter[2873]: Error code: (2) Could not find a valid SPF record"

According to Plesk it's "normal" to have this message:
http://kb.odin.com/6051
The notifications "Error code: (2) Could not find a valid SPF record" and "Failed to query MAIL-FROM: No DNS data for 'domain.tld'" occur in case if sending domain domain.tld does not have valid SPF record in DNS. In this case SPF local rules are not applied.

I disagree, it should be giving you a warning not an error. Anyway, the command is still very good as hopefully you won't have too many SPF events.
 
Last edited:
Back
Top