diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2018-01-22 20:56:48 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2018-01-22 20:56:48 +0000 |
commit | 3c507dc7e4629346bd7740b897fe899f0b238ab7 (patch) | |
tree | 299cf58ed7d38426e42160e20a451b1dc38163fc /usr.sbin/smtpd | |
parent | c9aab49912b5a337646074eb37cafdb797985c2c (diff) |
Add support for 'a:' and 'exists:' mechanisms.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/spfwalk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/smtpd/spfwalk.c b/usr.sbin/smtpd/spfwalk.c index cab05301de8..1e3ff8fbe67 100644 --- a/usr.sbin/smtpd/spfwalk.c +++ b/usr.sbin/smtpd/spfwalk.c @@ -186,6 +186,14 @@ dispatch_txt(struct dns_rr *rr) printf("%s\n", *(ap) + 5); continue; } + if (strncasecmp("a:", *ap, 2) == 0) { + lookup_record(T_A, *(ap) + 2, dispatch_a); + continue; + } + if (strncasecmp("exists:", *ap, 7) == 0) { + lookup_record(T_A, *(ap) + 7, dispatch_a); + continue; + } if (strncasecmp("include:", *ap, 8) == 0) { lookup_record(T_TXT, *(ap) + 8, dispatch_txt); continue; |