2014-08-25 00:51:39 +02:00
|
|
|
---
|
|
|
|
layout: "mailgun"
|
|
|
|
page_title: "Mailgun: mailgun_domain"
|
|
|
|
sidebar_current: "docs-mailgun-resource-domain"
|
2014-10-22 05:21:56 +02:00
|
|
|
description: |-
|
|
|
|
Provides a Mailgun App resource. This can be used to create and manage applications on Mailgun.
|
2014-08-25 00:51:39 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# mailgun\_domain
|
|
|
|
|
|
|
|
Provides a Mailgun App resource. This can be used to
|
|
|
|
create and manage applications on Mailgun.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
2015-01-03 19:31:53 +01:00
|
|
|
# Create a new Mailgun domain
|
2014-08-25 00:51:39 +02:00
|
|
|
resource "mailgun_domain" "default" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "test.example.com"
|
|
|
|
spam_action = "disabled"
|
|
|
|
smtp_password = "foobar"
|
2014-08-25 00:51:39 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) The domain to add to Mailgun
|
2014-08-25 01:00:17 +02:00
|
|
|
* `smtp_password` - (Required) Password for SMTP authentication
|
2014-08-25 00:51:39 +02:00
|
|
|
* `spam_action` - (Optional) `disabled` or `tag` Disable, no spam
|
|
|
|
filtering will occur for inbound messages. Tag, messages
|
2015-01-03 19:31:53 +01:00
|
|
|
will be tagged with a spam header.
|
|
|
|
* `wildcard` - (Optional) Boolean that determines whether
|
2014-08-25 00:51:39 +02:00
|
|
|
the domain will accept email for sub-domains.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `name` - The name of the domain.
|
|
|
|
* `smtp_login` - The login email for the SMTP server.
|
|
|
|
* `smtp_password` - The password to the SMTP server.
|
|
|
|
* `wildcard` - Whether or not the domain will accept email for sub-domains.
|
|
|
|
* `spam_action` - The spam filtering setting.
|
2015-01-14 18:38:08 +01:00
|
|
|
* `receiving_records` - A list of DNS records for receiving validation.
|
2014-08-29 20:50:08 +02:00
|
|
|
* `priority` - The priority of the record.
|
|
|
|
* `record_type` - The record type.
|
|
|
|
* `valid` - `"valid"` if the record is valid.
|
|
|
|
* `value` - The value of the record.
|
2015-01-14 18:38:08 +01:00
|
|
|
* `sending_records` - A list of DNS records for sending validation.
|
2014-08-29 20:50:08 +02:00
|
|
|
* `name` - The name of the record.
|
|
|
|
* `record_type` - The record type.
|
|
|
|
* `valid` - `"valid"` if the record is valid.
|
|
|
|
* `value` - The value of the record.
|