Menu

#42 Testing opendkim.conf: line 2: header malformed

2.9.0
open
nobody
None
5
2017-10-16
2017-10-16
No

Hi Friends,
I am implementing OpenDKIM 2.9. x on Postfix 2.11. x using MySQL for "SigningTable", "Domain" and "KeyTable".

Generating the keys:

opendkim-genkey -b 2048 -h rsa-sha256 -r -s mail -d mysite.com -v

and then inserting the private key into DB from "-----BEGIN RSA PRIVATE KEY-----" (including it) to -----END RSA PRIVATE KEY----- (including it too).

now running

opendkim -v -t opendkim.conf

Obtain:

opendkim: opendkim.conf: line 2: header malformed

This is my "opendkim.conf (purged by quotas)"

`Syslog yes

UMask 002

UserID opendkim

SigningTable dsn:mysql://mailuser:XMt4f2LMPynpCVBTTXsbkhj3z@3306+127.0.0.1/mailserver/table=virtual_domains?keycol=name?datacol=ID
Domain dsn:mysql://mailuser:XMt4f2LMPynpCVBTTXsbkhj3z@3306+127.0.0.1/mailserver/table=virtual_domains?datacol=name
KeyTable dsn:mysql://mailuser:XMt4f2LMPynpCVBTTXsbkhj3z@3306+127.0.0.1/mailserver/table=virtual_domains?keycol=ID?datacol=name,selector,privatekey
Selector mail
ExternalIgnoreList /etc/opendkim/trusted.hosts
InternalHosts /etc/opendkim/trusted.hosts

Canonicalization relaxed/simple
Mode sv
SubDomains no
AutoRestart yes
AutoRestartRate 10/1M
Background yes
DNSTimeout 5
SignatureAlgorithm rsa-sha256

OversignHeaders From

MaximumHeaders 262144`

Is this a bug? Or I'm wrong something? :-)

Thanks!

Davide

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.