Proxmox is not compatible with DKIM/DomainKeys.
This is message source, as seen from gmail "Sent mail":
This is what my internal postfix server (it has postfix-dkim-filter installed) gets from proxmox frontend:
As you see, DKIM signature is invalid. Problems
1) Boundary changed
2) Extra CRLF between header block and message body
Same problem appears when my internal postfix sends mail through proxmox. It inserts extra CRLF between headers and body. It breaks the signature made by internal server. When UA composes a message as <HEADER><CRLF><CRLF><BODY>, everything is OK. But for the message <HEADER><CRLF><BODY>, proxmox inserts extra CRLF. It does not change boundary for outgoing messages.
Any solution? Did I something wrong?
This is message source, as seen from gmail "Sent mail":
Code:
MIME-Version: 1.0
Received: by 10.220.78.157 with HTTP; Thu, 26 Aug 2010 21:33:17 -0700 (PDT)
Date: Fri, 27 Aug 2010 12:33:17 +0800
Delivered-To: disabled01@gmail.com
Message-ID: <AANLkTi=gRYToyfyj7AC5UhmBhPArr7dus+hJ-Xah_+Ym@mail.gmail.com>
Subject: Hello
From: disabled01 <disabled01@gmail.com>
To: disabled@test123.ru
Content-Type: multipart/alternative; boundary=90e6ba4fc6ea25d329048ec69d99
--90e6ba4fc6ea25d329048ec69d99
Content-Type: text/plain; charset=ISO-8859-1
HELLO
--90e6ba4fc6ea25d329048ec69d99
Content-Type: text/html; charset=ISO-8859-1
HELLO<br>
--90e6ba4fc6ea25d329048ec69d99--
This is what my internal postfix server (it has postfix-dkim-filter installed) gets from proxmox frontend:
Code:
Return-Path: <disabled@gmail.com>
Delivered-To: disabled@test123.ru
Received: from proxmox.test123.ru (proxmox.mattrix [192.168.18.2])
by mail.test123.ru (Postfix) with ESMTPS id 1FD60450B74
for <disabled@test123.ru>; Fri, 27 Aug 2010 12:33:26 +0800 (KRAST)
Authentication-Results: mail.test123.ru; dkim=neutral (verification failed)
header.i=@gmail.com; dkim-adsp=none
Received: from proxmox.test123.ru (localhost.localdomain [127.0.0.1])
by proxmox.test123.ru (Proxmox) with ESMTP id D322BB544F
for <disabled@test123.ru>; Fri, 27 Aug 2010 06:33:25 +0200 (CEST)
Received-SPF: pass (gmail.com ... _spf.google.com: 209.85.212.45 is authorized to use 'disabled@gmail.com' in 'mfrom' identity (mechanism 'ip4:209.85.128.0/17' matched)) receiver=proxmox.test123.ru; identity=mfrom; envelope-from="disabled@gmail.com"; helo=mail-vw0-f45.google.com; client-ip=209.85.212.45
Received: from mail-vw0-f45.google.com (mail-vw0-f45.google.com [209.85.212.45])
by proxmox.test123.ru (Proxmox) with ESMTP id 65589B544D
for <disabled@test123.ru>; Fri, 27 Aug 2010 06:33:19 +0200 (CEST)
Received: by vws19 with SMTP id 19so3170827vws.18
for <disabled@test123.ru>; Thu, 26 Aug 2010 21:33:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:received:date:message-id
:subject:from:to:content-type;
bh=ihrQVvepYUFNYd1WGHUvuDW7Hjur4W0n33fZJ+UpI/k=;
b=uEBMwG/YLDNpR3eRYWjGcA8StORAuPSTXHX+YdWBa5QkjAPCz6o6wo1DKG7fVOEyKO
vQd6XhvfhtvZR4sHK6iJuT6GnfWmdIYnH3CXkg0dGNFxFr9ZGbf1Ueu1POU5eYjQJcAU
rjIb1JKg0hvuWW6PCBI9X/FJGp20C1/KFpCTQ=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:date:message-id:subject:from:to:content-type;
b=dk4ZvRJYySWcUzJ+Lfz5a53IiT4Sv8cxpPbXVWCtq5B0wFayZj/uNI1kQ4RAyiiyN+
+QrAB613+kTgT97k6gZT1UCGuNwT2sje7o1Cgzg+UlrSFeJvkmT2EKdVo37OgZJT4jCk
6HGDTIH9W3OCJ/6qpiY/U8Z5GOzSR5jbFuPfM=
MIME-Version: 1.0
Received: by 10.220.124.211 with SMTP id v19mr218672vcr.44.1282883598045; Thu,
26 Aug 2010 21:33:18 -0700 (PDT)
Received: by 10.220.78.157 with HTTP; Thu, 26 Aug 2010 21:33:17 -0700 (PDT)
Date: Fri, 27 Aug 2010 12:33:17 +0800
Message-ID: <AANLkTi=gRYToyfyj7AC5UhmBhPArr7dus+hJ-Xah_+Ym@mail.gmail.com>
Subject: Hello
From: disabled <disabled@gmail.com>
To: disabled@test123.ru
Content-Type: multipart/alternative; boundary=001636ed782a26507e048ec69d6d
--001636ed782a26507e048ec69d6d
Content-Type: text/plain; charset=ISO-8859-1
HELLO
--001636ed782a26507e048ec69d6d
Content-Type: text/html; charset=ISO-8859-1
HELLO<br>
--001636ed782a26507e048ec69d6d--
As you see, DKIM signature is invalid. Problems
1) Boundary changed
2) Extra CRLF between header block and message body
Same problem appears when my internal postfix sends mail through proxmox. It inserts extra CRLF between headers and body. It breaks the signature made by internal server. When UA composes a message as <HEADER><CRLF><CRLF><BODY>, everything is OK. But for the message <HEADER><CRLF><BODY>, proxmox inserts extra CRLF. It does not change boundary for outgoing messages.
Any solution? Did I something wrong?