DKIM-Patch 1.1 17


23.10.2014: Es gab einen Fehler mit PHP 5.3 (siehe Kommentare), der jetzt behoben ist.

Es ist eine neue Version des DKIM-Patch für ISPConfig verfügbar.

Download: DKIM-Patch

Changes to 1.0:


make it compatible with ispconfig 3.0.5.4p4
add backup to install.php
changed regex for private-key
use interface-temp instead of server-temp
allow dkim-strength up to 4096 bytes
allow symlink for amavis-configs (but NEVER for dkim-keys)
fixed issue when a client / reseller uses the dns-wizard
changed amavis.conf.dkim; otherwise in some enviroments the amavisd-config might be corrupted
corrected version-number in the server-plugin
update fr-language


Kommentar erstellen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

17 Gedanken zu “DKIM-Patch 1.1

  • mccharlet

    Hi,

    After the update form dkim-0321 to dkim-11, i have two time this configuration to the postfix master file

    amavis unix – – – – 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes

    127.0.0.1:10025 inet n – n – – smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtp_send_xforward_command=yes

    127.0.0.1:10027 inet n – n – – smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtp_send_xforward_command=yes
    -o milter_default_action=accept
    -o milter_macro_daemon_name=ORIGINATING

    and postfix didn’t work.

    Best regards

    • Florian Schaal Beitragsautor

      Updating from 0.3 to 1.1 won´t work out-of-the box. You can remove one of the blocks from your config. The settings for the main.cf are stored in master.cf-dkim.

  • Joachim

    Hi Florian

    Thank you it now works perfect. pleas allow me to make a small donation.
    Do you have a donate button or paypal email i can send a cuppel of bucks to?

  • Joachim

    Hi thank you for The fast and positiv reply.

    I Will Providence Hou with full server details later to night when i am back on my computer.

    IF you Wang to have a look Hou Can connet to mr over teamviewr and look at my server using ssh/putty.
    Just contact me over mail (i am asuming you Can See my mail)

  • Joachim

    I gør The Line from dec trying to fix The terror om Line 127

    It dit not Work ( it gave terror om Line 128)

    I have removed The patch and tryd to reinstall. Same error om Line 127

  • Joachim

    and this is original line 127
    $mail_server_id = $app->functions->intval( $app->db->queryOneRecord("SELECT server_id from mail_domain WHERE domain = '".$app->db->quote($_POST['domain'])."'")['server_id'] );

    • Florian Schaal Beitragsautor

      This is the line from the archive and my git and it should work. I don´t know where you get the other version from.

  • Joachim

    you misunderstand me.

    i used your 1.1 patch and got error on line 127 and just rememberd now trying to install it again i get this error trying to install it

    PHP Deprecated: Function mysql_db_query() is deprecated in /tmp/dkim-patch/install.php on line 255
    PHP Deprecated: mysql_db_query(): This function is deprecated; use mysql_query() instead in /tmp/dkim-patch/install.php on line 255

    and still error on line 127
    php -l /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php
    PHP Parse error: syntax error, unexpected '[' in /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php on line 127
    Errors parsing /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php

  • Joachim

    Hi i get this error when trying to access mail section in ispconfig. it givs this error in ispconfig Request done but NOK Error 500

    and looking at the log show the error on line 127.

    i change line 127 to $mail_server_id = $app->functions->intval( $app->db->queryOneRecord("SELECT server_id from mail_domain WHERE domain = ?", $_POST['domain']) ); and then the error goes to line 128

    this is the output from php -l
    php -l /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php
    PHP Parse error: syntax error, unexpected '[' in /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php on line 128
    Errors parsing /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php

    • Florian Schaal Beitragsautor

      From where did you get this file? Neither it´s in the dkim-archives nor in my git. If you are running ISPConfig 3.0.5.x please download the patch from http://blog.schaal-24.de/dkim/.
      Your code is only for devel-branch of ISPConfig and will be used with 3.1. If you are using the devel-version please contact me by mail. The Patch on this post is for the stable-version only.

  • Joachim

    Hi first thanks for your work on this plugin.

    second i get the same error PHP Parse error: syntax error, unexpected ‘[‘ in /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php on line 127

    I am on Ubuntu 12.04LTS
    php -v
    PHP 5.3.10
    Zend Engine v2.3.0
    XCache v1.3.2
    ionCube PHP Loader v4.7.0

    How can i fix this? or how to remove DKIM-Patch?

    Thanks

    • Florian Schaal Beitragsautor

      Strange. I can´t reproduce this error. Can you run php -l /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php and post the output?

      Did you get this error when editing a domain or when you try to create a key-pair?

      You can remove the patch by just extracting the created backup under /var/backup (dkim-DATE.tgz).

  • klamardo

    mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ‘[‘ in /usr/local/ispconfig/interface/web/mail/mail_domain_dkim_create.php on line 127