Add ability to select imap and smtp access for mailcow users

This commit is contained in:
Tobias Reisinger 2025-08-23 16:59:17 +02:00
parent f328125d22
commit 0d11d9f3d4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 7 additions and 2 deletions

View file

@ -11,8 +11,9 @@ resource "mailcow_mailbox" "services" {
local_part = each.value.mail
password = random_password.mailcow_service_passwords[each.key].result
force_pw_update = false
imap_access = false
smtp_access = each.value.mail_smtp
imap_access = each.value.mail_imap
pop3_access = false
sogo_access = false
quota = 128
quota = each.value.mail_imap ? 2048 : 128
}

View file

@ -23,5 +23,7 @@ variable "services" {
s3_buckets = optional(list(string))
database = bool
mail = optional(string)
mail_smtp = bool
mail_imap = bool
}))
}

View file

@ -173,6 +173,8 @@ variable "services" {
s3_buckets = optional(list(string))
database = bool
mail = optional(string)
mail_smtp = optional(bool, true)
mail_imap = optional(bool, false)
}))
}