Skip to content

Commit

Permalink
Add SPF result on log
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbf committed Mar 25, 2018
1 parent 9b03a67 commit 95e9d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smf-spf.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ static sfsistat smf_envfrom(SMFICTX *ctx, char **args) {
SPF_request_set_helo_dom(spf_request, context->helo);
SPF_request_set_env_from(spf_request, context->sender);
if (SPF_request_query_mailfrom(spf_request, &spf_response)) {
syslog(LOG_INFO, "SPF none: ip=%s, fqdn=%s, helo=%s, from=%s", context->addr, context->fqdn, context->helo, context->from);
syslog(LOG_INFO, "SPF (%s): ip=%s, fqdn=%s, helo=%s, from=%s", SPF_strresult(status),context->addr, context->fqdn, context->helo, context->from);
if (status == SPF_RESULT_NONE && conf.refuse_none && !strstr(context->from, "<>")) {
char reject[2 * MAXLINE];
snprintf(reject, sizeof(reject), "Sorry, we only accept mail from SPF enabled domains", context->sender);
Expand Down

0 comments on commit 95e9d75

Please sign in to comment.