Difference between revisions of "PKP/Bug Fixes/SPF"

From Libopedia
Jump to navigation Jump to search
Line 13: Line 13:
  
 
==Operations==
 
==Operations==
To determine if there is an SPF record for a sending domain, use the "dig" command as per example below;
+
To determine if there is an SPF record for a sending domain, use the "dig" command as per example below in a terminal;
 +
dig txt sun.ac.za
 +
Sample output
 +
<pre>
 +
 
 +
; <<>> DiG 9.10.3-P4-Ubuntu <<>> txt sun.ac.za
 +
;; global options: +cmd
 +
;; Got answer:
 +
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50092
 +
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
 +
 
 +
;; OPT PSEUDOSECTION:
 +
; EDNS: version: 0, flags:; udp: 4000
 +
;; QUESTION SECTION:
 +
;sun.ac.za. IN TXT
 +
 
 +
;; ANSWER SECTION:
 +
sun.ac.za. 25238 IN TXT "University of Stellenbosch, South Africa"
 +
sun.ac.za. 25238 IN TXT "ydW1uk2ljPYuIuijeNP29VqLY1fH/1BYzJ8XkvuCmpe7b1pltGc4EaZcvw7V1PTKi5JkCgzH95fQNDdjOALHwQ=="
 +
sun.ac.za. 25238 IN TXT "v=spf1 ip4:146.232.64.12 ip4:146.232.64.13 ip4:146.232.64.14 include:spf.protection.outlook.com -all"
 +
sun.ac.za. 25238 IN TXT "Google Domain Verification 07082014"
 +
 
 +
;; Query time: 0 msec
 +
;; SERVER: 127.0.1.1#53(127.0.1.1)
 +
;; WHEN: Tue May 17 11:44:35 SAST 2016
 +
;; MSG SIZE  rcvd: 353
 +
</pre>
 +
 
 +
See:http://stackoverflow.com/questions/4082935/using-dig-to-search-for-spf-records
  
 
==Normal Federated System==
 
==Normal Federated System==

Revision as of 11:45, 17 May 2016

Back to PKP Bug Fixes

Introduction

To combat spam and email phishing a new email system called the "Sender Policy Framework" (SPF) is being adopted world wide by academic institutions and others. This is a very recent development and therefore OJS systems must be retroactively configured to support SPF. This wiki page documents these efforts at Stellenbosch University Library.

Definitions

https://en.wikipedia.org/wiki/Sender_Policy_Framework

From Wikipedia (retrieved 2016/05/17);

"Sender Policy Framework (SPF) is a simple email-validation system designed to detect email spoofing by providing a mechanism to allow receiving mail exchangers to check that incoming mail from a domain comes from a host authorized by that domain's administrators.[1] The list of authorized sending hosts for a domain is published in the Domain Name System (DNS) records for that domain in the form of a specially formatted TXT record. Email spam and phishing often use forged "from" addresses, so publishing and checking SPF records can be considered anti-spam techniques."

Operations

To determine if there is an SPF record for a sending domain, use the "dig" command as per example below in a terminal;

dig txt sun.ac.za

Sample output


; <<>> DiG 9.10.3-P4-Ubuntu <<>> txt sun.ac.za
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50092
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;sun.ac.za.			IN	TXT

;; ANSWER SECTION:
sun.ac.za.		25238	IN	TXT	"University of Stellenbosch, South Africa"
sun.ac.za.		25238	IN	TXT	"ydW1uk2ljPYuIuijeNP29VqLY1fH/1BYzJ8XkvuCmpe7b1pltGc4EaZcvw7V1PTKi5JkCgzH95fQNDdjOALHwQ=="
sun.ac.za.		25238	IN	TXT	"v=spf1 ip4:146.232.64.12 ip4:146.232.64.13 ip4:146.232.64.14 include:spf.protection.outlook.com -all"
sun.ac.za.		25238	IN	TXT	"Google Domain Verification 07082014"

;; Query time: 0 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Tue May 17 11:44:35 SAST 2016
;; MSG SIZE  rcvd: 353

See:http://stackoverflow.com/questions/4082935/using-dig-to-search-for-spf-records

Normal Federated System

Single Instance System

References