# Store messages
Currently there is neither a UI or any API included with Airmail to access the messages in the store. You need to take care yourself.
After a message has been sent successfully, it can be additionally stored. Airmail uses MongoDB (opens new window) as storage backend.
To enable message storage set the environment variable
true and configure the connection to the MongoDB database.
|Environment variable||Default value||Description|
| || ||Store your messages after sending it|
| || ||Only |
| || ||MongoDB host|
| || ||MongoDB port|
| || ||MongoDB database|
| || ||MongoDB collection|
| ||none||Username for MongoDB authentication|
| ||none||Password for MongoDB authentication|
The messages is going to be stored only, if the sending was successful. If an error occured, f. ex. the captcha could not be succesfully verified, neither the sending nor the storage is going to happen.