{"id":18559289,"url":"https://github.com/linux-china/dkim-spring-boot-starter","last_synced_at":"2025-04-10T02:30:42.487Z","repository":{"id":52473059,"uuid":"121220894","full_name":"linux-china/dkim-spring-boot-starter","owner":"linux-china","description":"DKIM for spring-boot-starter-mail","archived":false,"fork":false,"pushed_at":"2024-10-05T11:47:27.000Z","size":41,"stargazers_count":5,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T02:51:09.093Z","etag":null,"topics":["dkim","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linux-china.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T08:36:41.000Z","updated_at":"2025-01-10T07:08:38.000Z","dependencies_parsed_at":"2022-09-09T07:51:19.286Z","dependency_job_id":null,"html_url":"https://github.com/linux-china/dkim-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fdkim-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fdkim-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fdkim-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fdkim-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-china","download_url":"https://codeload.github.com/linux-china/dkim-spring-boot-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248144158,"owners_count":21054876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dkim","spring-boot"],"created_at":"2024-11-06T21:42:27.792Z","updated_at":"2025-04-10T02:30:42.034Z","avatar_url":"https://github.com/linux-china.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"dkim-spring-boot-starter\n========================\nDKIM support for spring-boot-starter-mail.\n\n# Why DKIM?\n\nAvoid your sent email in spam folder.\n\n# How it works\n\n*  DKIMSigner to sign MimeMessage\n*  AOP @Before to interceptor JavaMailSender.send and sign MimeMessage before sending\n\n### How to use\n\n* Add following dependency in your pom.xml:\n\n````xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.mvnsearch.boot\u003c/groupId\u003e\n    \u003cartifactId\u003edkim-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n````\n\n* in application.properties, add following configuration\n```\ndkim.signing-domain=demo.com\ndkim.selector=default\ndkim.privateKey=classpath:/rsa/demo.private.key.der\n```\n* User JavamailSender as usual because of AOP\n\n# How to generate DKIM key\n\na DKIM key setup:\n\nThere are test keys in the src/test/resources/rsa/ directory but be aware to use those only for your tests.\n\nYou need:\n\n* a private key on your hard disc (e.g. in keys/); you can generate a new key by\n\n```\n     openssl genrsa -out private.key.pem\n```\n\n* DKIM for JavaMail needs the private key in DER format, you can transform a PEM key with openssl:\n```\n     openssl pkcs8 -topk8 -nocrypt -in private.key.pem -out private.key.der -outform der\n```\n* a public key in your DNS; here is a sample resource record with selector \"default\": default._domainkey IN TXT \"v=DKIM1; g=*; k=rsa; p=MIG...the_public_key_here...AQAB\" (see http://www.ietf.org/rfc/rfc4871.txt for details)\nYou can use openssl to get a public key from the private key:\n```\n      openssl rsa -inform PEM -in private.key.pem -pubout\n```\n\n# References\n\n* Mail Tester: https://www.mail-tester.com/\n* DKIM: http://www.dkim.org/\n* 28 Tips To Avoid Spam Filters When Doing Email Marketing: https://monk.webengage.com/how-to-avoid-spam-filters-when-sending-emails/\n* DKIM for Java: https://github.com/globalbus/dkim\n* Configuring and Managing SPF, DKIM, and DMARC: https://app.pluralsight.com/library/courses/configuring-managing-spf-dkim-dmarc/table-of-contents\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fdkim-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-china%2Fdkim-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fdkim-spring-boot-starter/lists"}