Security/Domain: Difference between revisions
Jump to navigation
Jump to search
| Line 230: | Line 230: | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight style='margin:3px 0' lang='bash'> | |||
# Gmail » Google Workspace | |||
# Admin Console » Apps » Google Workspace » Gmail » Authenticate email » Selected domain » chorke.org » Generate New Record » Start Authentication | |||
</syntaxhighlight> | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight style='margin:3px 0' lang='bash'> | |||
# Twilio SendGrid | |||
# Sender Authentication » Domain Authentication » <id>.chorke.org » DNS Records » Manual Install » Verify | |||
</syntaxhighlight> | |||
|} | |} | ||
Revision as of 08:05, 5 January 2026
Tools » Install » SPF
|
Tools » Install » SPF | ||
|---|---|---|
cat <<'EXE'| sudo bash
echo && git clone https://github.com/jsarenik/spf-tools.git /opt/cli/spf-tools
echo && cd /opt/cli/spf-tools/
./despf.sh -h
EXE
| ||
cat <<'CFG'| tee ${HOME}/.spf-toolsrc >/dev/null
DOMAIN=shahed.biz
ORIG_SPF=spf.shahed.biz
DESPF_SKIP_DOMAINS=_spf.google.com:_spf.sendgrid.net
DNS_TIMEOUT=5
DNS_SERVER=1.1.1.1
CFG
| ||
dig MX chorke.com
dig TXT chorke.com
/opt/cli/spf-tools/despf.sh chorke.com
|
dig MX chorke.org
dig TXT chorke.org
/opt/cli/spf-tools/despf.sh chorke.org
|
dig MX shahed.biz
dig TXT shahed.biz
/opt/cli/spf-tools/despf.sh shahed.biz
|
dig MX finology-group.com
dig TXT finology-group.com
/opt/cli/spf-tools/despf.sh finology-group.com
|
dig MX finology.com.my
dig TXT finology.com.my
/opt/cli/spf-tools/despf.sh finology.com.my
|
dig MX coverplus.io
dig TXT coverplus.io
/opt/cli/spf-tools/despf.sh coverplus.io
|
cd /opt/cli/spf-tools;./despf.sh chorke.org |./normalize.sh |./simplify.sh |./iprange.sh |./mkblocks.sh |./xsel.sh
cd /opt/cli/spf-tools;./despf.sh chorke.org |./normalize.sh |./simplify.sh |./iprange.sh |./mkblocks.sh
cd /opt/cli/spf-tools;./despf.sh chorke.org |./normalize.sh |./simplify.sh |./iprange.sh
| ||
cd /opt/cli/spf-tools;\
cat <<'SPF'| ./normalize.sh
ip4:10.19.83.10/24
ip4:10.19.93.100/24
ip4:10.20.03.110/24
SPF
|
cd /opt/cli/spf-tools;\
cat <<'SPF'| ./simplify.sh
ip4:10.19.83.1
ip4:10.19.83.100
ip4:10.19.83.0/24
SPF
|
cd /opt/cli/spf-tools;\
./despf.sh chorke.org
./despf.sh chorke.org| \
./iprange.sh
|
Tools » Install » DKIM
|
Tools » Install » DKIM | ||
|---|---|---|
cat <<'EXE'| sudo bash
apt-get update;echo
apt list -a --upgradable;echo
apt-get install -y opendkim-tools;echo;apt-get clean
EXE
| ||
opendkim-testkey -d coverplus.io -vvv -s s1
opendkim-testkey -d coverplus.io -vvv -s s2
|
opendkim-testkey -d loanplus.io -vvv -s s1
opendkim-testkey -d loanplus.io -vvv -s s2
|
opendkim-testkey -d loanstreet.com.my -vvv -s s1
opendkim-testkey -d loanstreet.com.my -vvv -s s2
|
opendkim-testkey -d finology.com.my -vvv -s fn
opendkim-testkey -d finology.com.my -vvv -s google
opendkim-testkey -d finology.com.my -vvv -s ritesh
|
opendkim-testkey -d chorke.org -vvv -s google
opendkim-testkey -d finology.group -vvv -s mail
opendkim-testkey -d finology-group.com -vvv -s google
|
opendkim-genkey -b 2048 -d chorke.org -s s1
opendkim-genkey -b 2048 -d chorke.org -s s2
opendkim-genkey -b 2048 -d chorke.org -s mail
|
DNS » Record » TXT » SPF
|
DNS » Record » TXT » SPF | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SPF TXT Record Format v=spf1 [mechanism] [qualifier] [modifiers] ...
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||
DNS » Record » TXT » DKIM
|
DNS » Record » TXT » DKIM |
|---|
# Gmail » Google Workspace
# Admin Console » Apps » Google Workspace » Gmail » Authenticate email » Selected domain » chorke.org » Generate New Record » Start Authentication
|
# Twilio SendGrid
# Sender Authentication » Domain Authentication » <id>.chorke.org » DNS Records » Manual Install » Verify
|
Hard Fail SPF
|
Hard Fail SPF | |
|---|---|
---
Type: MX
Host/Name: @
Priority: 0
Value: .
|
|
---
Type: TXT
Host/Name: @
Value: "v=spf1 -all"
|
---
Type: TXT
Host/Name: _dmarc
Value: "v=DMARC1; p=reject; adkim=s; aspf=s; pct=100; rua=mailto:tool.tech@shahed.biz"
|
dig +short TXT _dmarc.shahed.biz
dig +short TXT s1._domainkey.shahed.biz
dig +short TXT s2._domainkey.shahed.biz
opendkim-testkey -d shahed.biz -vvv -s s1
opendkim-testkey -d shahed.biz -vvv -s s2
setsid open https://mxtoolbox.com/SuperTool.aspx?action=dkim%3As1._domainkey.shahed.biz &run=toolpage >/dev/null 2>&1 &
setsid open https://mxtoolbox.com/SuperTool.aspx?action=dkim%3As2._domainkey.shahed.biz &run=toolpage >/dev/null 2>&1 &
| |
dig +short TXT shahed.biz | grep "v=spf1"
(cd /opt/cli/spf-tools;./despf.sh shahed.biz)
setsid open https://mxtoolbox.com/SuperTool.aspx?action=spf%3Ashahed.biz&run=toolpage >/dev/null 2>&1 &
| |
Playground
|
Playground | ||
|---|---|---|
dig MX chorke.org
dig TXT chorke.org
openssl s_client -connect mail.chorke.org:25
|
apt info opendkim-tools
apt search opendkim-tools
sudo apt-get install -y opendkim-tools
|
sudo git clone https://github.com/jsarenik/spf-tools.git \
/opt/cli/spf-tools
cd /opt/cli/spf-tools/
|
dig TXT s1.domainkey.u5967707.wl208.sendgrid.net
dig TXT s2.domainkey.u5967707.wl208.sendgrid.net
|
||