Author Topic: ADD DKIM  (Read 1971 times)

maxiozzia

  • Newbie
  • *
  • Posts: 13
    • View Profile
ADD DKIM
« on: May 12, 2019, 09:22:23 am »
There is a tested way to implement DKIM validation for postfix in ehcp?

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: ADD DKIM
« Reply #1 on: May 12, 2019, 11:47:08 pm »
Not at the moment.  I am not really a fan of DKIM either to be honest, and it looks like a rather complicated setup: 

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: ADD DKIM
« Reply #2 on: May 22, 2019, 04:55:12 pm »
OK, I have no idea if this works, but based on my understanding of DKIM, I think it should?  I've configured EHCP to allow setting the "default" key signing domain in the "Advanced Settings" of the panel  (http://{URL_TO_YOUR_PANEL}/ehcp/index.php?op=advancedsettings).  You'll need to update to the latest developer version SVN in order to test (instructions are here https://ehcpforce.tk/download.php#svn-version)



Could you please test it and let me know?  The idea is that only one domain will be used to sign for all of the emails coming from multiple domains configured on the server the EHCP panel is running on.  I'm thinking this is the only configuration I have to do, but I'm not sure. 

Commits dealing with this new functionality are under "Commits on May 22, 2019" here:

https://github.com/earnolmartin/EHCP-Force-Edition/commits/master

Please give it a shot, and let me know if it works or not.  And, if you could help me figure out what's wrong, that would be great.  The way this functionality works is that the /var/www/new/ehcp/scripts/install_dkim_postfix.sh script configures dkim and postfix for a specific domain, generates the keys for it, and returns the public key back to the EHCP daemon which then stores it as a custom TXT DNS setting in the panel.

So, to debug and troubleshoot, I would look at that bash script since it's doing the majority of the work.

Please let me know if I got it right or horribly wrong... 
« Last Edit: May 22, 2019, 05:01:31 pm by earnolmartin »

maxiozzia

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: ADD DKIM
« Reply #3 on: May 23, 2019, 02:10:20 am »
I will test asap and update you.

Thanks for your work.

earnolmartin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 302
    • View Profile
Re: ADD DKIM
« Reply #4 on: May 23, 2019, 02:20:13 pm »
Thanks.  I made some updates a few hours ago, so please be sure you get them.  I have DKIM passing according to Gmail from my own testing.  It works for me!  Just waiting on hearing from you.  :)

maxiozzia

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: ADD DKIM
« Reply #5 on: June 01, 2019, 05:16:36 am »
Great work! Successfull tested on Ubuntu 18.04.