Add ability to select imap and smtp access for mailcow users
This commit is contained in:
		
							parent
							
								
									f328125d22
								
							
						
					
					
						commit
						0d11d9f3d4
					
				
					 3 changed files with 7 additions and 2 deletions
				
			
		|  | @ -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 | ||||
| } | ||||
|  |  | |||
|  | @ -23,5 +23,7 @@ variable "services" { | |||
|     s3_buckets = optional(list(string)) | ||||
|     database = bool | ||||
|     mail = optional(string) | ||||
|     mail_smtp = bool | ||||
|     mail_imap = bool | ||||
|   })) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue