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

  • Applies to:
  • Plesk 9.0 for Linux/Unix

Symptoms

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 mail@domain.com  Tue Dec  2 11:00:58 2008
Return-Path: <mail@domain.com>
X-Original-To: mail01@test.autogen-10-52-31-28.qa.plesk.ru
Delivered-To: mail01@test.autogen-10-52-31-28.qa.plesk.ru
Received: from autogen-10-52-31-28.qa.plesk.ru (unknown [127.0.0.1])
        by autogen-10-52-31-28.qa.plesk.ru (Postfix) with ESMTP id 03C44716AC
        for <mail01@test.autogen-10-52-31-28.qa.plesk.ru>; Tue,  2 Dec 2008
16:00:57 +0000 (UTC)
Message-Id: <20081202160058.03C44716AC@autogen-10-52-31-28.qa.plesk.ru>
Date: Tue,  2 Dec 2008 11:00:57 -0500 (EST)
From: mail@domain.com
To: undisclosed-recipients:;

<A9>+   <- here is wrong record
Received: from openvzx64.qa.plesk.ru (unknown [192.168.61.44])
        by autogen-10-52-31-28.qa.plesk.ru (Postfix) with SMTP
        for <mail01@test.autogen-10-52-31-28.qa.plesk.ru>; Tue,  2 Dec 2008
16:00:57 +0000 (UTC)
Received: by openvzx64.qa.plesk.ru (nbSMTP-1.00) for uid 1001
        mail@domain.com; 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.

Resolution

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

Attachments

4f57df935e9acf8d18830757d2346419 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF