» mailgun_domain

Provides a Mailgun App resource. This can be used to create and manage applications on Mailgun.

» Example Usage

# Create a new Mailgun domain
resource "mailgun_domain" "default" {
  name          = "test.example.com"
  spam_action   = "disabled"
  smtp_password = "foobar"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The domain to add to Mailgun
  • smtp_password - (Required) Password for SMTP authentication
  • spam_action - (Optional) disabled or tag Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.
  • wildcard - (Optional) Boolean that determines whether the domain will accept email for sub-domains.

» Attributes Reference

The following attributes are exported: