Article ID: 5847, created on Dec 9, 2008, last review on May 11, 2014

  • Applies to:
  • Plesk 9.0 for Linux/Unix


It is Parallels Plesk Panel version 9.0.0 installed and SPF spam protection enabled in server-wide mail preferences {Home -> Mail Server Settings}.

This causes incoming or outgoing messages have incorrect headers like below.

From  Tue Dec  2 11:00:58 2008
Return-Path: <>
Received: from (unknown [])
        by (Postfix) with ESMTP id 03C44716AC
        for <>; Tue,  2 Dec 2008
16:00:57 +0000 (UTC)
Message-Id: <>
Date: Tue,  2 Dec 2008 11:00:57 -0500 (EST)
To: undisclosed-recipients:;

<A9>+   <- here is wrong record
Received: from (unknown [])
        by (Postfix) with SMTP
        for <>; Tue,  2 Dec 2008
16:00:57 +0000 (UTC)
Received: by (nbSMTP-1.00) for uid 1001; Tue,  2 Dec 2008 15:35:15 +0600 (NOVT)
MIME-Version: 1.0

It doesn't matter which MTA is used: either Qmail or Postfix.


The problem is caused by spf-handler that composes message header incorrectly. It has been fixed in Parallels Plesk Panel since version 9.0.1.

Fixed spf-handler for Parallels Plesk Panel 9.0.0 is in the attachment. To install the fixed handler you should download the archive attached and unpack it with tar -zxf
Select the handler appropriate to your operating system and architecture and replace existent handler with the file.
The handler is /usr/local/psa/handlers/hooks/spf for RedHat family and FreeBSD operating systems and /opt/psa/handlers/hooks/spf for Debian family.

Please remember to correct ownership and permissions.

~# ls -l /usr/local/psa/handlers/hooks/spf
-r-xr-x--- 1 root popuser 20656 Nov 17 17:46 /usr/local/psa/handlers/hooks/spf

You may correct permissions with commands chown and chmod. For example:

~# chown root:popuser /usr/local/psa/handlers/hooks/spf
~# chmod 550 /usr/local/psa/handlers/hooks/spf


4f57df935e9acf8d18830757d2346419 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF