How C # sends a DKIM signed message

Source: Internet
Author: User
Tags header mail in domain

DKIM (DomainKeys identified mail) is an e-mail authentication standard-the domain name key identifies the message standard, which can be used to determine whether a message is spam.

It works by generating a private key (private key)/public key pair, storing the public key as a TXT record in the DNS server, and selecting the corresponding message field when sending the message (for example, from, to, Subject) generates signature information from the private key and sends it after attaching it to the header of the message. When the destination mail server receives the message, it obtains the public key from the DNS query based on the sender's domain name, and then uses the public key to verify that the signature information in the message header is legitimate.

We successfully sent the DKIM signed message through C # code, the following steps:

1. Generate private key with tools provided by dkimcore.org and records containing public keys that need to be added to DNS

A) Open http://dkimcore.org/tools/, in Domain name, enter the domain name to send a mailbox, click Generate;

B Assuming the domain name is cnblogs.biz, we will get three data--selector (1362200600.cnblogs), Private key, as shown in the following figure. DNS Records (the name is 1362200600.cnblogs._domainkey, and the value is the part of the v=dkim1 that ends with a colon [does not contain a colon, not shown in the figure]).

2. Add TXT record to DNS server

This article URL address: http://www.bianceng.cn/Programming/csharp/201410/45475.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.