---
name: "Mail::MIMEDefang::SPF"
section: "3"
platform: "linux"
package: "mimedefang"
version: "3.6-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Mail::MIMEDefang::SPF"
---

# Mail::MIMEDefang::SPF(3)

Sender Policy Framework interface for MIMEDefang

## NAME

Mail::MIMEDefang::SPF - Sender Policy Framework interface for MIMEDefang

## DESCRIPTION

Mail::MIMEDefang::SPF is a module used to check for Sender Policy Framework headers from *mimedefang-filter*.

## METHODS

- md\_spf\_verify

  Returns code and explanation of Sender Policy Framework check.

  Possible return code values are: "pass", "fail", "softfail", "neutral", "none", "error", "permerror", "temperror", "invalid"

  The method accepts the following parameters:

  - $email

    The email address of the sender

  - $relayip

    The relay ip address

  - $helo (optional)

    The MTA helo server name
