mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-31 16:57:02 +00:00
test/t-21-dkim: Add cross-tool check against driusan/dkimverify
This patch adds a cross-tool integration check that uses driusan/dkim's dkimverify to confirm it can verify our own DKIM signatures. It is optional, since the tool may not be present.
This commit is contained in:
@@ -290,8 +290,17 @@ func (m *miniDNS) loadZones(f *os.File) {
|
||||
}
|
||||
case "txt":
|
||||
qType = dnsmessage.TypeTXT
|
||||
|
||||
// Cut value in chunks of 255 bytes.
|
||||
chunks := []string{}
|
||||
v := value
|
||||
for len(v) > 254 {
|
||||
chunks = append(chunks, v[:254])
|
||||
v = v[254:]
|
||||
}
|
||||
chunks = append(chunks, v)
|
||||
body = &dnsmessage.TXTResource{
|
||||
TXT: []string{value},
|
||||
TXT: chunks,
|
||||
}
|
||||
default:
|
||||
log.Fatalf("line %d: unknown type %q", lineno, t)
|
||||
|
||||
@@ -5,7 +5,6 @@ set -e
|
||||
mkdir -p ${MDA_DIR}
|
||||
|
||||
# TODO: use flock to lock the file, to prevent atomic writes.
|
||||
echo "From ${1}" >> ${MDA_DIR}/.tmp-${1}
|
||||
cat >> ${MDA_DIR}/.tmp-${1}
|
||||
X=$?
|
||||
if [ -e ${MDA_DIR}/.tmp-${1} ]; then
|
||||
|
||||
Reference in New Issue
Block a user