Add mailcow to terraform
This commit is contained in:
parent
d73462cd90
commit
f20b2596d0
18 changed files with 135 additions and 35 deletions
modules/services
17
modules/services/mailcow.tf
Normal file
17
modules/services/mailcow.tf
Normal file
|
@ -0,0 +1,17 @@
|
|||
resource "random_password" "mailcow_service_passwords" {
|
||||
for_each = local.services_mail
|
||||
length = 32
|
||||
special = false
|
||||
}
|
||||
|
||||
resource "mailcow_mailbox" "services" {
|
||||
for_each = local.services_mail
|
||||
domain = "serguzim.me"
|
||||
full_name = each.value.mail
|
||||
local_part = each.value.mail
|
||||
password = random_password.mailcow_service_passwords[each.key].result
|
||||
imap_access = false
|
||||
pop3_access = false
|
||||
sogo_access = false
|
||||
quota = 128
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue