> ## Documentation Index
> Fetch the complete documentation index at: https://help.pixwel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Maildev

# Maildev notes

We use [maildev](https://www.npmjs.com/package/maildev) for developing any email-related functionality.

For demo and development systems, any sent email will be collected by maildev and will not reach the outside world.

## Local development

Maildev isn't part of the default `docker-compose.yml`. To capture mail locally, add a maildev service to your compose setup (or point the API's SMTP at one); its web UI then runs on port 1080 and shows emails sent by the system.

## Demo nodes

This is also set up on demo nodes with credentials.

The `smtp_*` environment variables determine the username and password required.

You can log into the maildev instance at:

`http://{branch}.demo.pixwel.com:1080/`

## Staging

Because Staging is on multiple nodes, Maildev is set up on Jenkins and listens on [http://stagingmaildev.pixwel.com/#/](http://stagingmaildev.pixwel.com/#/) . This is a reverse proxy over [http://jenkins.pixwel.com:1080/](http://jenkins.pixwel.com:1080/)

```
# /etc/nginx/conf.d/001-stagingmaildev.conf
server {
    listen  80;
    access_log /var/log/nginx/stagingmaildev_access.log;
    error_log /var/log/nginxstagingmaildev_error.log;
    server_name stagingmaildev.pixwel.com;
    location / {
        proxy_pass http://jenkins.pixwel.com:1080/;
    }
}
```

[http://jenkins.pixwel.com:1080/#/](http://jenkins.pixwel.com:1080/#/)

***

[Back to docs index](/) | [Next page in recommended reading order >>](/slurpee)
