DomainKeys (DKIM) support for i-MSCP

  • Hello,


    so here's a small modification to add DomainKeys (DKIM) support to i-MSCP.


    Install the OpenDKIM package:

    Code
    1. apt-get install opendkim


    Add these lines to the /etc/opendkim.conf file:

    Code
    1. KeyTable refile:/etc/opendkim/KeyTableSigningTable refile:/etc/opendkim/SigningTable


    Create the /etc/opendkim directory and create the basic files:

    Code
    1. mkdir /etc/opendkimtouch /etc/opendkim/KeyTabletouch /etc/opendkim/SigningTable


    Open /etc/default/opendkim and uncomment the following line:

    Code
    1. SOCKET="inet:12345@localhost" # listen on loopback on port 12345


    Now we need to modify the Postfix configuration, open /etc/postfix/main.cf and add these lines at the end of the file:

    Code
    1. milter_default_action = acceptmilter_protocol = 2smtpd_milters = inet:localhost:12345non_smtpd_milters = inet:localhost:12345


    Restart Postfix and start OpenDKIM:

    Code
    1. service postfix restart
    2. service opendkim start


    Now open your browser, and go to your phpMyAdmin installation, login and modify the max length of the domain_text field in domain_dns to 255.
    Backup your /var/www/imscp/engine/PerlLib/Servers/mta/postfix.pm and replace with the one provided here.



    For i-MSCP 1.1.0 Beta 1 only!



    Important notes:
    1. Use this modified postfix.pm at your own risk!
    2. The client(s) should be allowed to use the built-in DNS manager otherwise the TXT record couldn't be generated!


    I'm sorry if something is wrong, but I'm tired, sorry :P

    Files

    Edited once, last by Zero ().

  • thanks for this great solution!
    I use two imscp server and one w/ 1.0.7 ispcp
    currently I can not migrate the 1.0.7 to imscp because of some special changes
    and I have to prepare everything (db struture) before it can be migrated ...
    there is still some possibility to integrate DKIM in 1.0.7?