China Email Application Coordination Center Spam Characteristic Library Interface

zhaozj2021-02-08  219

To facilitate the developers of the majority of mail system service providers and email related software, CNEAC provides a completely free of use of technology interfaces, through this interface, providing users with real-time spam and hazardous servers.

Technical interface can be obtained by HTTP, divided into two systems

First, spam blacklist

Interface URL: http://www.cneac.org/support/spamdata.asp

Return format: Each record is separated by a row (ASCII 13) between rows, lines and rows, with TAB characters (ASCII 9) between fields, and fields are: spam_id, mailfrom, MailSubject, Infotype, the meaning of each field is as follows:

Spam_id ........ The only ID mailfrom ......... Spam source (sender address) Mailsubject ... spam title keyword Infotype .. ....... The nature of this record (increasing record -a, delete the corresponding record -D)

The two fields of MailFrom and Mailsubject are the relationship between "and", but if one is empty, ignore, for example:

Mailfrom=123@sina.com mailsubject = how are you

The SPAM message corresponding to this record is that the sender is 123@sina.com, and the title contains "how are you" string.

in case:

Mailfrom=123@sina.com and mail, if you are empty, you will explain that all letters of 123@sina.com all the messages are spam. If mailfrom is empty, all themes include mailsubject's letters that are spam.

Optional parameters:

LastID ....... start spam_id, after setting this parameter, only return SPAM_ID greater than the LastID record. Count ........ Returned record limit

If the URL is requested to: http://www.cneac.org/support/spamdata.asp? Lastid = 90

Then indicate the SPAM list of SPAM_IDs greater than 90.

If you do not specify a parameter, all records are returned by default. It is recommended that the caller is based on the actual situation, and specifies the last spam_id at the local store. When updating it, specifies the LastID to avoid downloading the old record.

Second, dangerous mail server blacklist

The dangerous mail server refers to the SMTP server that does not have control, certification measures, such servers are extremely easy to use, and the rules of the hazardous server blacklist are similar to the rules of the spam list. See below:

Interface URL: http://www.cneac.org/support/serverdata.asp

Return format: Each record is separated by a row (ASCII 13) between rows, lines and rows, separated by TAB (ASCII 9) between each record, and the field is: Badserver_ID, Badserver, Infotype, the meaning of each field is as follows:

Badserver_id ..... This unique ID Badserver ......... Hazard server IP address, multiplexed partitions (ASCII 59) to separate Infotype ......... Nature recorded (increasing record -a, deleting corresponding recording -D)

Optional parameters:

LastID ....... started Badserver_ID, after setting this parameter, only return Badserver_ID greater than the LastID record. Count ........ Returned the number limit, if no parameters are specified, the default returns all records. It is recommended that the caller according to the actual situation, store the last Badserver_ID in the local storage, when updating it, specifies the LastID again. To avoid downloading the old record.

If the URL is requested to: http://www.cneac.org/support/serverdata.asp? LastId = 90

Then indicate the list of dangerous servers to return Badserver_ID greater than 90

Developers must comply with the agreement

1, must be recorded or deleted according to INFOTYPE, if the current recorded INFOTYPE is d, the corresponding record must be removed from the database of the local system. For SPAM data, the corresponding record of MailFrom and Mailsubject should be deleted. If the dangerous server data, the corresponding record of the Badserver should be deleted.

2, if you are a software developer, you should reserve the interface to offline update by using the text file that meets this standard. Web application developers should also take into account this issue as appropriate.

3. Software, network application system, etc., using the CNEAC interface, must indicate "Spam or Hazard Server List" by CNEAC "in a significant location, and add this connection.

4. It is recommended to use the developer of the CNEAC interface to subscribe to CNEA mailing list so that we can get our information in time.

转载请注明原文地址:https://www.9cbs.com/read-2791.html

New Post(0)