Small blog about system administration.

Fix DKIM issue in ISPConfig3

Download the patch, unzip and install
cd /tmp
wget blog.schaal-24.de/files/dkim-latest_ispconfig3.tar.gz
tar xfvz dkim-latest_ispconfig3.tar.gz
cd dkim_ispconfig3
alter the mysql-database
Login to mysql as the root-user:
mysql -u root -p
or use in phpMyAdmin the database an run the follwing sql-code.
Select the database of ISPConfig (see $conf['db_database'] in/usr/local/ispconfig/interface/lib/config.inc.php) and expand:
use dbispconfig;
ALTER TABLE `mail_domain` ADD `dkim_public` MEDIUMTEXT NOT NULL AFTER `domain`; ALTER TABLE `mail_domain` ADD `dkim_private` MEDIUMTEXT NOT NULL AFTER `domain`; ALTER TABLE `mail_domain` ADD `dkim` ENUM( 'n', 'y' ) NOT NULL AFTER `domain`;
Adjust the rights
chown -R ispconfig.ispconfig *
,
copy the new files,
cp -Rp interface /usr/local/ispconfig
cp -Rp server /usr/local/ispconfig
and activate the server-plugin
ln -s /usr/local/ispconfig/server/plugins-available/mail_plugin_dkim.inc.php /usr/local/ispconfig/server/plugins-enabled/mail_plugin_dkim.inc.php
customize amavis
If DKIM is not yet activated, a few parameters must be entered in amavisd. The corresponding config file is /etc/amavisd.conf (openSusSE) or/etc/amavis/conf.d/50-user (Debian).
Insert the following lines at the end:
#DKIM
$enable_dkim_verification = 1;
$enable_dkim_signing = 1; # load DKIM signing code,
@dkim_signature_options_bysender_maps = (
{ '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } );
adjust ISPConfig
Set the path for dkim-keys in Server Config / Mail .

Keys can now be created using the interface for mail domains and registered in DNS.

1 comment :

Post a Comment