1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:27 +02:00
dockerfiles/nullmailer
2017-05-08 07:05:07 +08:00
..
nullmailer add nullmailer 2016-01-31 17:01:58 +08:00
docker-compose.yml add nullmailer 2016-01-31 17:01:58 +08:00
Dockerfile swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
Dockerfile.debian swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
README.md update 2016-01-31 19:40:31 +08:00

nullmailer

nullmailer is a simple relay-only mail transport agent.

Directory Tree

~/fig/nullmailer/
├── Dockerfile
└── nullmailer/
    ├── adminaddr --> username@gmail.com
    └── remotes   --> smtp.gmail.com smtp --port=465 --auth-login --user=username --pass=****** --ssl

Read this to config.

docker-compose.yml

nullmailer:
  image: vimagick/nullmailer
  cotainer_name: nullmailer
  volumes:
    - ./nullmailer:/etc/nullmailer
  restart: always

Up and Running

# start service
$ cd ~/fig/nullmailer
$ docker-compose up -d

# send email (from gmail to yahoo)
$ alias sendmail='docker exec -i nullmailer sendmail -f username@gmail.com'
$ echo -e 'Subject: hello\r\n\r\nworld' | sendmail username@yahoo.com