Skip to content
Postfix SMTP Relay Container with SASL and Encryption (Letsencrypt)
Shell PHP Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
doc
etc
test
www
.env
.gitignore
.gitlab-ci.yml
.kick.yml
.kickstartconfig
Dockerfile
README.md
composer.json
composer.lock
config.php
config.php.dist
kickstart.sh
preseed.txt

README.md

infracamp viper-smtpd :: Ready to use mail relay container

Running the container

Create a smtp-config.json and adjust ist to your needs. (See demo.json)

{
    "myhostname": "smtp.demo.host",
    "mynetworks": "127.0.0.1",
    "sasl_users": [
        "user1@domain.de:passwd:sender@domain1.de,@domain2.de"
        "user2@domain.de:passwd:@domain2.de"
    ]
}

To start the container in production mode just call:

docker run --net host -e "CONF_JSON=$(cat doc/smtp-config.json)" infracamp/viper-smtpd

or use

tr -d '\n' < doc/smtp-config.json

to create a string representation to put into env-File

Debugging

docker run -it --net host -e "CONF_JSON=$(cat doc/smtp-config.json)" infracamp/viper-smtpd

Why is it highly recommend to run the container run in --net host-mode

  • Only in --net host the container sees the real remote ip
  • Only in --net host the container can see its read hostname

Creating Passwords

Passwords are stored in plain text so support digest-* authentication.

Contributing

Help us developing this container. To start the container just run ./kickstart.sh.

References

You can’t perform that action at this time.