1# Amazon S323storage.blob.s3 module stores messages bodies in a bucket on S3-compatible storage.45```6storage.blob.s3 {7 endpoint play.min.io8 secure yes9 access_key "Q3AM3UQ867SPQQA43P2F"10 secret_key "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"11 bucket maddy-test1213 # optional14 region eu-central-115 object_prefix maddy/16 creds access_key17}18```1920Example:2122```23storage.imapsql local_mailboxes {24 ...25 msg_store s3 {26 endpoint s3.amazonaws.com27 access_key "..."28 secret_key "..."29 bucket maddy-messages30 region us-west-231 creds access_key32 }33}34```3536## Configuration directives3738### endpoint _address:port_3940**Required**.4142Root S3 endpoint. e.g. `s3.amazonaws.com`4344---4546### secure _boolean_47Default: `yes`4849Whether TLS should be used.5051---5253### access_key _string_<br>secret_key _string_5455**Required**.5657Static S3 credentials.5859---6061### bucket _name_6263**Required**.6465S3 bucket name. The bucket must exist and66be read-writable.6768---6970### region _string_71Default: not set7273S3 bucket location. May be called "endpoint" in some manuals.7475---7677### object_prefix _string_78Default: empty string7980String to add to all keys stored by maddy.8182Can be useful when S3 is used as a file system.8384---8586### creds `access_key` | `file_minio` | `file_aws` | `iam`87Default: `access_key`8889Credentials to use for accessing the S3 Bucket.9091Credential Types:9293 - `access_key`: use AWS access key and secret access key94 - `file_minio`: use credentials for Minio present at ~/.mc/config.json95 - `file_aws`: use credentials for AWS S3 present at ~/.aws/credentials96 - `iam`: use AWS IAM instance profile for credentials.9798By default, access_key is used with the access key and secret access key present in the config.