Skip to main content

Change DKIM selector from 'default'

Comments

30 comments

  • User Avatar
    cPanelMichael
    Hello :) There is no native functionality available to customize the default DKIM records. However, you should be able to implement a manual workaround. Could you provide more details about the specific records you need to configure and your specific server setup? Also, feel free to open a feature request for the ability to customize DKIM records at: Submit A Feature Request Thank you.
    0
  • User Avatar
    kpmedia
    - Right now the DKIM selector = "default" ... ie, "default._domainkey.mydomain.com" and signed by the server as "default" - I want it set to "anything" (else) I'm not sure what else you're after. cPanel has to specify the key somewhere -- I just don't know where. I didn't write the software. It's likely an easy edit somewhere in the config files. Forcing us to use "default" is not at all compliant with DKIM specs. It has selectors on purpose. If it's can't be changed, that's serious design flaw.
    0
  • User Avatar
    cPanelMichael
    I was unable to find any internal documentation supporting the ability to modify the default entry used for DKIM. You are welcome to open a support ticket so we can take a closer look: Submit A Ticket You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • User Avatar
    artfei
    Hi all. If anyone is still interested in this there are lines in /etc/exim.conf file dkim_remote_smtp: driver = smtp interface = ${if exists {/etc/mailips}{${lookup{$original_domain}lsearch{/etc/mailips}{$value}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailips}{$value}{}}}}}}}} helo_data = ${if exists {/etc/mailhelo}{${lookup{$original_domain}lsearch{/etc/mailhelo}{$value}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{${lookup{${perl{get_sender_from_uid}}}lsearch*{/etc/mailhelo}{$value}{$primary_hostname}}}}}}}{$primary_hostname}} dkim_domain = $sender_address_domain dkim_selector = default dkim_private_key = "/var/cpanel/domain_keys/private/${dkim_domain}" dkim_canon = relaxed To have different selectors for different domains you may simply change it from default to ${dkim_domain} or try to configure your own variables. With the above I now have: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nagios.domain.com; s=mydomain.com; h=Date:From:Message-Id; bh=g3zLYH4xKxcPrHOD18z9YfpQcnk/GaJedfustWU5uGs= Sure with this you should have domainkey TXT record like mydomain.com._domainkey.mydomain.com
    0
  • User Avatar
    kpmedia
    I already tried changing the exim setting from "default" to something else. dkim_selector = default
    dkim_selector = anything
    That didn't have any effect.
    0
  • User Avatar
    Fireminds Ltd.
    Any update on this one? I'm having the same issue with another service stealing "default" rendering the cPanel default value unusable.... Why can't we use default1._domainkey....
    0
  • User Avatar
    cPRex Jurassic Moderator
    @Fireminds Ltd. - there hasn't been any change to this behavior at this time.
    -1
  • User Avatar
    Fireminds Ltd.
    Surprised that 7yrs later and we still can't select our own DKIM selector... this needs to be changed. With every system out there forcing default._domainkey down your throat with no way to change it really puts customers at a disadvantage.
    0
  • User Avatar
    cPRex Jurassic Moderator
    There is an older feature request that was opened around the time this thread was created, but I don't see that it received any action. I've messaged the email development team and they are going to look into what it would take to make this an option in the future, but obviously there is nothing official yet or no ETA.
    -1
  • User Avatar
    sllbakkbone
    Any update on this? This feature is long overdue
    0
  • User Avatar
    cPRex Jurassic Moderator
    I did reach out to the mail team again and they are going to post a reply to the feature request at DKIM support for custom selector within the next few days.
    -1
  • User Avatar
    chris25
    It doesn't look like the expected reply was ever made to the feature request, is there any update here?
    0
  • User Avatar
    cPRex Jurassic Moderator
    I've poked the team and I'll report back soon!
    -1
  • User Avatar
    cPRex Jurassic Moderator
    I'm expecting to get more details Monday or Tuesday on this, so I'll keep you posted!
    -1
  • User Avatar
    Wallu
    I'm expecting to get more details Monday or Tuesday on this, so I'll keep you posted!

    @cPRex Hi Rex, anything yet :) ? - Wallu
    0
  • User Avatar
    cPRex Jurassic Moderator
    I believe the official update was moving the Feature Request to "not planned" status, so that's our answer for now.
    -2
  • User Avatar
    Wallu
    I believe the official update was moving the Feature Request to "not planned" status, so that's our answer for now.

    Hi @cPRex, I just can't figure out why. Mind explaining what's the reasoning behind this decision? Only one can be default._domainkey.rootdomain*. so having multiple servers sending out emails is a pain with the forced default. Isn't the purpose of selectors actually just what it implies? Having whm1._domainkey*, whm2._domainkey*, whm3._domainkey* etc. for example. I'm also using other platforms, and there I can actually create whatever selector I want, so I have ended up having web01, web02, web03 etc. as selectors, and it's great. I have come across scenarios where default is already taken, so it makes me wonder :) Maybe I'm missing something, who knows... - Wallu
    1
  • User Avatar
    cPRex Jurassic Moderator
    I don't have any additional details on why the decision was made, except that the email team wasn't looking into it at this time.
    -1
  • User Avatar
    Wallu
    I don't have any additional details on why the decision was made, except that the email team wasn't looking into it at this time.

    Ok, thnx Rex, kinda what I was expecting :/ Hope email team change their mind at some point. I'm not alone with this, you know. Anyways, cheers, - Wallu
    1
  • User Avatar
    pin64

    I see this issue was first raised 10 years ago... Just to add another voice to this one - this is definitely a required feature, more so now than ever. Even if cPanel just randomly generated a new selector or used anything other than 'default', that would be a step in the right direction. Following this one now whilst I look for alternative solutions.

    0
  • User Avatar
    Wallu

    10 years in making, so any time now (tm).

    0
  • User Avatar
    kpmedia

    My solution was to quit using cPanel. Unfollowed.

    0
  • User Avatar
    Islam Apon

    This is actually very annoying to see a request is hanging for 10+ years now!

    Is there any progress to this? cPRex

    0
  • User Avatar
    cPRex Jurassic Moderator

    Islam Apon - I know it's still a common request, and our email team is aware, but I don't have any news to report about this feature at this time.

    0
  • User Avatar
    cPRex Jurassic Moderator

    Wallu - I deleted your last comment - we have to stay respectful here.

    0
  • User Avatar
    Wallu

    Sure, fair enough, but you saw it, so you can give my regards / feedback there.

    0
  • User Avatar
    Fabio Fabbri

    I think Wallu has proposed the ideal solution.

    Recent versions of a competitor panel gives you the option to create and manage multiple DKIM keys and selectors for each domain.

    I don't ask for this complex feature: support for customizing the selector at server level would be enough.

    Is it that hard to have a config file where you can define something else than "default"? Now that most email services require strict SPF, DKIM and DMARC validation to fight spam and phishing, missing this feature could lead customers to competitors panels...

    0
  • User Avatar
    Fabio Fabbri

    I found this feature is now "under consideration": https://features.cpanel.net/c/107-custom-dkim-selectors

    0
  • User Avatar
    Wallu

    Good find Fabio Fabbri, I "voted". Hopefully more people vote too.

    1
  • User Avatar
    cPRex Jurassic Moderator

    Cast your vote!  I really hope that's one that gets added to the product!

    1

Please sign in to leave a comment.