[GH-ISSUE #77] Cannot use dots in the selector field #59

Closed
opened 2026-02-26 10:35:29 +03:00 by kerem · 1 comment
Owner

Originally created by @RostKost on GitHub (Jan 29, 2015).
Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/77

Error message: The selector should only contain characters, numbers and underscores.
So, I cannot use hostname feb2009.myesp._domainkey.example.com

http://dkimcore.org/specification.html
A selector is a string of no more than 63 lower-case alphanumeric characters (a-z or 0-9) followed by a period “.”, followed by another string of no more than 63 lower-case alphanumeric characters.

Rostislav.

Originally created by @RostKost on GitHub (Jan 29, 2015). Original GitHub issue: https://github.com/Pro/dkim-exchange/issues/77 Error message: The selector should only contain characters, numbers and underscores. So, I cannot use hostname feb2009.myesp._domainkey.example.com http://dkimcore.org/specification.html A selector is a string of no more than 63 lower-case alphanumeric characters (a-z or 0-9) followed by a period “.”, followed by another string of no more than 63 lower-case alphanumeric characters. ## Rostislav.
kerem 2026-02-26 10:35:29 +03:00
  • closed this issue
  • added the
    bug
    gui
    labels
Author
Owner

@Pro commented on GitHub (Jan 29, 2015):

Oh, yes. That's a bug, namely this check is wrong:
https://github.com/Pro/dkim-exchange/blob/master/Src/Configuration.DkimSigner/MainWindow.cs#L234
The regex should be something like ^[a-z0-9_]{1,63}(?:\.[a-z0-9_]{1,63})?$

Until this is fixed in the next release, you can just add the selector without a point, then open the config file and edit the selector to contain a point (see https://github.com/Pro/dkim-exchange#manual-configuration)

<!-- gh-comment-id:71982791 --> @Pro commented on GitHub (Jan 29, 2015): Oh, yes. That's a bug, namely this check is wrong: https://github.com/Pro/dkim-exchange/blob/master/Src/Configuration.DkimSigner/MainWindow.cs#L234 The regex should be something like `^[a-z0-9_]{1,63}(?:\.[a-z0-9_]{1,63})?$` Until this is fixed in the next release, you can just add the selector without a point, then open the config file and edit the selector to contain a point (see https://github.com/Pro/dkim-exchange#manual-configuration)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dkim-exchange-Pro#59
No description provided.