mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-05 15:46:50 +08:00
4.2.2: email: SPF soft fail → hard fail
This commit is contained in:
@@ -26,7 +26,7 @@ LABEL org.opencontainers.image.authors="Brian Cunnie <brian.cunnie@gmail.com>"
|
|||||||
RUN dnf install -y bind-utils
|
RUN dnf install -y bind-utils
|
||||||
|
|
||||||
ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2)
|
ARG TARGETARCH # amd64, arm64 (so I can run on AWS graviton2)
|
||||||
RUN curl -f -L https://github.com/cunnie/sslip.io/releases/download/4.2.1/sslip.io-dns-server-linux-$TARGETARCH \
|
RUN curl -f -L https://github.com/cunnie/sslip.io/releases/download/4.2.2/sslip.io-dns-server-linux-$TARGETARCH \
|
||||||
-o /usr/sbin/sslip.io-dns-server; \
|
-o /usr/sbin/sslip.io-dns-server; \
|
||||||
chmod 755 /usr/sbin/sslip.io-dns-server
|
chmod 755 /usr/sbin/sslip.io-dns-server
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
cd $DIR/..
|
cd $DIR/..
|
||||||
ldflags="-X xip/xip.VersionSemantic=4.2.1 \
|
ldflags="-X xip/xip.VersionSemantic=4.2.2 \
|
||||||
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
|
-X xip/xip.VersionDate=$(date +%Y/%m/%d-%H:%M:%S%z) \
|
||||||
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
|
-X xip/xip.VersionGitHash=$(git rev-parse --short HEAD)"
|
||||||
export GOOS GOARCH
|
export GOOS GOARCH
|
||||||
|
@@ -4,8 +4,8 @@ These instructions are meant primarily for me when deploying a new release;
|
|||||||
they might not make sense unless you're on my workstation.
|
they might not make sense unless you're on my workstation.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export OLD_VERSION=4.2.0
|
export OLD_VERSION=4.2.1
|
||||||
export VERSION=4.2.1
|
export VERSION=4.2.2
|
||||||
cd ~/workspace/sslip.io
|
cd ~/workspace/sslip.io
|
||||||
git pull -r --autostash
|
git pull -r --autostash
|
||||||
# update the version number for the TXT record for version.status.sslip.io
|
# update the version number for the TXT record for version.status.sslip.io
|
||||||
@@ -41,7 +41,7 @@ Test from another window:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
export DNS_SERVER_IP=127.0.0.1
|
export DNS_SERVER_IP=127.0.0.1
|
||||||
export VERSION=4.2.1
|
export VERSION=4.2.2
|
||||||
# quick sanity test
|
# quick sanity test
|
||||||
( dig +short 127.0.0.1.example.com @$DNS_SERVER_IP
|
( dig +short 127.0.0.1.example.com @$DNS_SERVER_IP
|
||||||
echo 127.0.0.1 ) | uniq -c
|
echo 127.0.0.1 ) | uniq -c
|
||||||
@@ -51,9 +51,9 @@ printf "ns-do-sg.sslip.io.\nns-gce.sslip.io.\nns-hetzner.sslip.io.\nns-ovh.sslip
|
|||||||
( dig +short mx sslip.io @$DNS_SERVER_IP
|
( dig +short mx sslip.io @$DNS_SERVER_IP
|
||||||
printf "10 mail.protonmail.ch.\n20 mailsec.protonmail.ch.\n" ) | sort | uniq -c
|
printf "10 mail.protonmail.ch.\n20 mailsec.protonmail.ch.\n" ) | sort | uniq -c
|
||||||
( dig +short txt sslip.io @$DNS_SERVER_IP
|
( dig +short txt sslip.io @$DNS_SERVER_IP
|
||||||
printf "\"protonmail-verification=ce0ca3f5010aa7a2cf8bcc693778338ffde73e26\"\n\"v=spf1 include:_spf.protonmail.ch mx ~all\"\n" ) | sort | uniq -c
|
printf "\"protonmail-verification=ce0ca3f5010aa7a2cf8bcc693778338ffde73e26\"\n\"v=spf1 include:_spf.protonmail.ch mx -all\"\n" ) | sort | uniq -c
|
||||||
( dig +short txt nip.io @$DNS_SERVER_IP
|
( dig +short txt nip.io @$DNS_SERVER_IP
|
||||||
printf "\"protonmail-verification=19b0837cc4d9daa1f49980071da231b00e90b313\"\n\"v=spf1 include:_spf.protonmail.ch mx ~all\"\n" ) | sort | uniq -c
|
printf "\"protonmail-verification=19b0837cc4d9daa1f49980071da231b00e90b313\"\n\"v=spf1 include:_spf.protonmail.ch mx -all\"\n" ) | sort | uniq -c
|
||||||
dig +short txt 127.0.0.1.sslip.io @$DNS_SERVER_IP # no records
|
dig +short txt 127.0.0.1.sslip.io @$DNS_SERVER_IP # no records
|
||||||
dig +short cname sslip.io @$DNS_SERVER_IP # no records
|
dig +short cname sslip.io @$DNS_SERVER_IP # no records
|
||||||
( dig +short cname protonmail._domainkey.sslip.io @$DNS_SERVER_IP
|
( dig +short cname protonmail._domainkey.sslip.io @$DNS_SERVER_IP
|
||||||
@@ -78,7 +78,7 @@ Review the output then close the second window. Stop the server in the
|
|||||||
original window. Commit our changes:
|
original window. Commit our changes:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
GIT_MESSAGE="$VERSION: blocklist is moved to separate repo"
|
GIT_MESSAGE="$VERSION: email: SPF soft fail → hard fail"
|
||||||
git add -p
|
git add -p
|
||||||
git ci -vm"$GIT_MESSAGE"
|
git ci -vm"$GIT_MESSAGE"
|
||||||
git tag $VERSION
|
git tag $VERSION
|
||||||
|
@@ -20,7 +20,7 @@ end
|
|||||||
|
|
||||||
domains_env = ENV['DOMAINS'] || 'example.com'
|
domains_env = ENV['DOMAINS'] || 'example.com'
|
||||||
domains = domains_env.split(',').map(&:strip)
|
domains = domains_env.split(',').map(&:strip)
|
||||||
sslip_version = '4.2.1'
|
sslip_version = '4.2.2'
|
||||||
|
|
||||||
domains.each do |domain|
|
domains.each do |domain|
|
||||||
whois_nameservers = get_whois_nameservers(domain)
|
whois_nameservers = get_whois_nameservers(domain)
|
||||||
|
Reference in New Issue
Block a user