Skip to content
Last updated

Skip verification

If set to True, the certificate and hostname will not be verified when trying to set up a TLS connection, and Mailgun will accept any certificate during delivery. If set to False, Mailgun will verify the certificate and hostname. If either one cannot be verified, a TLS connection will not be set up. The default is False.

Look at the table below to help you better understand the configuration possibilities and potential issues.

Info

Consider the type of threat you are concerned with when deciding how to configure sending settings. ** By default, require-tls and skip-verification are false.

Require-tlsSkip-verificationTLSTLS Active Attack (MITM)TLS Passive Attack (Capture)Passive Plaintext Capture
falsefalseAttemptNot PossibleNot PossiblePossible via downgrade
falsetrueAttemptPosibleNot PossibleIf STARTTLS not offered
truefalseRequiredNot PossibleNot PossibleNot Possible
truetrueRequiredPossibleNot PossibleNot Possible

Additionally, the following fields are available in your logs under delivery-status to indicate how the message was delivered:

FieldDescription
tlsIndicates if a TLS connection was used or not when delivering the message
Certificate-verifiedIndicates if Mailgun verified the certificate or not when delivering the message
mx-hostTells you the MX server Mailgun connected to deliver the message