Mercurial > dnsbl
diff src/context.cpp @ 473:5209e92b4885
opendkim headers changed, pass smtp verify 4xy codes back to sender
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 20 Feb 2021 09:46:29 -0800 |
parents | f5b394bec28c |
children |
line wrap: on
line diff
--- a/src/context.cpp Wed Dec 16 13:40:59 2020 -0800 +++ b/src/context.cpp Sat Feb 20 09:46:29 2021 -0800 @@ -401,7 +401,7 @@ } -bool VERIFY::ok(const char *queueid, const char *from, const char *to) { +int VERIFY::ok(const char *queueid, const char *from, const char *to) { if (host == token_myhostname) return true; SMTP *conn = get_connection(queueid); if (!conn) { @@ -413,12 +413,12 @@ conn->log("verify::ok(%d) from sees %d", rc); if (rc != 250) { put_connection(conn); - return (rc >= 500) ? false : true; + return rc; } rc = conn->rcpt(to); conn->log("verify::ok(%d) rcpt sees %d", rc); put_connection(conn); - return (rc >= 500) ? false : true; + return rc; }