summaryrefslogtreecommitdiffstats
path: root/usr.sbin/smtpd/srs.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* SRS uses base64 encoding for the checksum, however while this is ok when wegilles2019-09-291-8/+8
| | | | | | | | | only have MTA in the loop, some implementations like Dovecot's LMTP dislike finding '/' in an e-mail address. Since checksum is meant to be verified at the MX that generated the SRS encoding, use alternate rfc354 base64 encode, swapping '/' with '_' and '+' with '-'. ok eric@ millert@
* there is no need to compute timestamp for SRS1: remove dead assignments.semarie2019-09-211-9/+1
| | | | ok gilles@
* teach smtpd how to do SRS so hosts that act as forwarders don't break SPF.gilles2019-09-201-0/+385
this basic implementation does SRS0/SRS1 encoding/decoding, validating time and checksums. with insight from semarie@, ok eric@ and millert@