add spf-fail to the headers
This commit is contained in:
parent
b765b6f2fd
commit
25b8d879d9
|
@ -144,6 +144,10 @@ void Proxy::run(string &peer_address)
|
|||
#ifdef HAVE_SPF
|
||||
else if(cfg.getQuerySpf()&&!authenticated&&!spf_checker.query(peer_address,ehlostr,from))
|
||||
{
|
||||
hermes_status="spf-failed";
|
||||
if(cfg.getAddStatusHeader())
|
||||
code="250";
|
||||
else
|
||||
code=cfg.getReturnTempErrorOnReject()?"421":"550";
|
||||
mechanism="spf";
|
||||
message=code+" You do not seem to be allowed to send email for that particular domain.";
|
||||
|
|
Loading…
Reference in a new issue