Coder Social home page Coder Social logo

docker-postal's Introduction

github.com/tiredofit/docker-postal

GitHub release Build Status Docker Stars Docker Pulls Become a sponsor Paypal Donate


About

Dockerfile to build a Postal SMTP server for sending and receiving SMTP / HTTP API email.

  • Contains Fail2Ban for blocking repeat authentication offenders

Maintainer

Prerequisites and Assumptions

Installation

Build from Source

Clone this repository and build the image with docker build <arguments> (imagename) .

Prebuilt Images

Builds of the image are available on Docker Hub and is the recommended method of installation.

The following image tags are available along with their tagged release based on what's written in the Changelog:

Container OS Tag
Alpine :latest

Multi Architecture

Images are built primarily for amd64 architecture, and may also include builds for arm/v6, arm/v7, arm64 and others. These variants are all unsupported. Consider sponsoring my work so that I can work with various hardware. To see if this image supports multiple architecures, type docker manifest (image):(tag)

Configuration

Quick Start

Persistent Storage

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/config/ Auto generated Postal Config and Signing Key resides here
/logs/ Logfiles
/assets/custom Optional Use this to drop files overop of the Postal sourcode for cherry picked overrides of files

Environment Variables

Base Images used

This image relies on an Alpine Linux base image that relies on an init system for added capabilities. Outgoing SMTP capabilities are handlded via msmtp. Individual container performance monitoring is performed by zabbix-agent. Additional tools include: bash,curl,less,logrotate, nano,vim.

Be sure to view the following repositories to understand all the customizable options:

Image Description
OS Base Customized Image based on Alpine Linux

Admin Accounts

Parameter Description Default
ADMIN_EMAIL Email address of admin [email protected]
ADMIN_FNAME Name of Admin First Name Postal
ADMIN_LNAME Name of Admin Last Name Admin
ADMIN_PASS Password of Admin user PostalMailServer

Application Settings

Parameter Description Default
ENABLE_TRACKING Enable Click Tracking true or false true
MAX_DELIVERY_ATTEMPTS Maximum Delivery Attempts before failing 18
MAX_HOLD_EXPIRY_DAYS Maximum Holding days before expiring 7
SUPPRESSION_LIST_EXPIRY Suppression List expiry in days 30

DNS Settings

Parameter Description Default
DNS_HOSTNAME Domain Name Mail Server example.com
DNS_MX MX Record Hostnames - Seperate multiple with commas
DNS_SPF SPF Hostname spf.$DNS_HOSTNAME
DNS_RETURN_PATH Return path Hostname rp.$DNS_HOSTNAME
DNS_ROUTE_DOMAIN Routing Domain routes.$DNS_HOSTNAME
DNS_TRACK_DOMAIN Tracking Domain track.$DNS_HOSTNAME
DNS_DKIM_IDENTIFIER DKIM Identifier postal
DNS_DOMAIN_VERIFY_PREFIX Domain verification prefix postal-verification
DNS_RETURN_PATH_PREFIX Custom Return Path Prefix psrp

Security Settings

Parameter Description Default
ENABLE_FAIL2BAN Block hsots that repeatedly fail authentication TRUE
FAIL2BAN_LOG_FILE Log Location for Fail2ban /logs/fail2ban/fail2ban.log
FAIL2BAN_TIME_FIND Track failures for this time period 10m
FAIL2BAN_TIME_BAN Time to ban repeat offenders 10m
FAIL2BAN_MAX_RETRY Ban after how many tries during time period 5

Performance Settings

Parameter Description Default
WORKERS_AMOUNT Amount of Workers 1
WORKERS_THREADS Amount of Threads per worker 4

Logging Settings

Parameter Description Default
LOG_CONSOLE Log to Stdout Console true or false true
LOG_PATH Log Location /logs/
LOG_SIZE_MAX Maximum Log Size in KB 9999

Database Settings

Parameter Description Default
DB_HOST Hostname of MariaDB Container e.g. postal-db
DB_NAME Name of MariaDB Database e.g. postal
DB_USER Database Username e.g. postal
DB_PASS Password for Above User e.g. password
DB_PORT MariaDB Server Port 3306
DB_ROOT_PASS Needed for first boot - Assigns privileges to $DB_USER. This is your MariaDB Root Pass
RABBITMQ_HOST RabbitMQ Hostname or Container
RABBITMQ_VHOST RabbitMQ VHost shard
RABBITMQ_USER RabbitMQ Username
RABBITMQ_PASS RabbitMQ Password
RABBITMQ_PORT RabbitMQ Port 5672

Anti Spam Settings

Parameter Description Default
ENABLE_SPAMASSASSIN Enable Spamassassin true or false false
SPAMASSASSIN_HOST Hostname of Spamassassin daemon
SPAMASSASSIN_PORT TCP Port of spamassassin daemon 737
Parameter Description Default
ENABLE_RSPAMD Enable RSpamD checking true or false false
RSPAMD_FLAGS Flags to pass to rspamd daemon null
RSPAMD_HOST Hostname of rspamd daemon
RSPAMD_PASS RSpamd controller password null
RSPAMD_PORT TCP Port of rspamd daemon 11334
RSPAMD_SSL Use SSL for connecting to rspamd FALSE
Parameter Description Default
SPAM_THRESHOLD Amount to classify as Spam 5.0
SPAM_FAILURE_THRESHOLD Amount to fail as Spam 5.0

Anti Virus Settings

Parameter Description Default
ENABLE_CLAMAV Enable ClamAV true or false false
CLAMAV_HOST Hostname of Clamd Server
CLAMAV_PORT TCP Port of Clamd Server 3310

SMTP Settings

Client
Parameter Description Default
SMTP_CLIENT_OPEN_TIMEOUT Timeout for an Open Connection in seconds 30
SMTP_CLIENT_READ_TIMEOUT Timeout for Reading Data in seconds 60
Server
Parameter Description Default
SMTP_SERVER_ENABLE_TLS Enable TLS false
SMTP_SERVER_HELO_HOSTNAME What Hostname to send for HELO $DNS_HOSTNAME
SMTP_SERVER_LOG_CONNECTIONS Log SMTP Connections true
SMTP_SERVER_MAX_MESSAGE_SIZE Max message size in Megabytes 50
SMTP_SERVER_PORT Listening Port for Postal Main SMTP Server 25
SMTP_SERVER_PROXY_PROTOCOL Utilize Proxy Protocol false
SMTP_SERVER_SSL_VERSION SSL Versions SSLv23
SMTP_SERVER_STRIP_RECEIVED_HEADERS Strip Recieved Headers false
SMTP_SERVER_TLS_CERT TLS Cert Location (Will authgenerate if not exist) /certs/cert.pem
SMTP_SERVER_TLS_CIPHERS TLS Ciphers to use
SMTP_SERVER_TLS_KEY TLS Key Location (Will autogenerate if not exist) /certs/key.pem
Management System
Parameter Description Default
SMTP_FROM_ADDRESS From Address for Postam Management System [email protected]
SMTP_FROM_NAME From Name for Postal Management System Postal
SMTP_HOST SMTP Server to be used to send messages from Postal Management System to users 127.0.0.1
SMTP_PORT SMTP Port to be used to send messages from Postal Management System to Users 25
SMTP_USER Username to authenticate to SMTP Server
SMTP_PASS Password to authenticate to SMTP Server
Relay
Parameter Description Default
SMTP_RELAY_HOST Relay all outbound messages to this hostname
SMTP_RELAY_PORT SMTP Relay Port 25
SMTP_RELAY_SSL_MODE Relay SSL / TLS Mode Auto

Other Settings

Parameter Description Default
CONFIG_FILE Configuration File postal.yml
CONFIG_PATH Configuration Path /config/
FAST_SERVER_BIND_IP Bind IP for the Web Interface 0.0.0.0
FAST_SERVER_BIND_PORT_TLS Bind Port for the TLS Tracking Service 8443
FAST_SERVER_BIND_PORT Bind Port for the Tracking Server 8080
SETUP_TYPE Choose AUTO or MANUAL Setup type - Auto uses these environment variables AUTO
SIGNING_KEY_FILE Signing Key File signing.key
SIGNING_KEY_SIZE Signing Key Size 1024
WEB_BIND_IP Bind IP for the Web Interface 0.0.0.0
WEB_BIND_PORT Bind Port for the Web Interface 5000
WEB_HOSTNAME Hostname for Web Interface postal.example.com
WEB_MAX_THREADS Max Threads for Web Interface 5
WEB_PROTOCOL Protocol for Web Interface http or https http

Networking

Port Description
25 SMTP
80 Web Interface
8080 Fast Server /Tracking
8443 Fast Server / Tracking
5000 Puma`

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

bash docker exec -it (whatever your container name is) bash

Support

These images were built to serve a specific need in a production environment and gradually have had more functionality added based on requests from the community.

Usage

  • The Discussions board is a great place for working with the community on tips and tricks of using this image.
  • Consider sponsoring me personalized support.

Bugfixes

  • Please, submit a Bug Report if something isn't working as expected. I'll do my best to issue a fix in short order.

Feature Requests

  • Feel free to submit a feature request, however there is no guarantee that it will be added, or at what timeline.
  • Consider sponsoring me regarding development of features.

Updates

  • Best effort to track upstream changes, More priority if I am actively using the image in a production environment.
  • Consider sponsoring me for up to date releases.

License

MIT. See LICENSE for more details.

References

docker-postal's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-postal's Issues

change the smtp port

Good evening,

How can we change the smtp port of the exposed container ?
I set it to 25:2525 in the docker-compose file but it doesn't seem to work.

I see that the network ports are also defined in the DockerFile so maybe its hardcoded ?

Cyberpanel docker

Did anyone tried to setup postal in cyberpanel?

I can't get it work

Postal does not start up Rake error

09:43:58 requeuer.1         | Started with PID 1982
09:43:58 requeuer.1         | => rake aborted!
09:43:58 requeuer.1         | => LoadError: cannot load such file -- /opt/postal/config/application
09:43:58 requeuer.1         | => /opt/postal/Rakefile:4:in `require_relative'
09:43:58 requeuer.1         | => /opt/postal/Rakefile:4:in `<top (required)>'
09:43:58 requeuer.1         | => /opt/postal/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
09:43:58 requeuer.1         | => /usr/local/bundle/bin/bundle:23:in `load'
09:43:58 requeuer.1         | => /usr/local/bundle/bin/bundle:23:in `<main>'
09:43:58 requeuer.1         | => (See full trace by running task with --trace)
09:43:58 cron.1             | => rake aborted!
09:43:58 cron.1             | => LoadError: cannot load such file -- /opt/postal/config/application
09:43:58 cron.1             | => /opt/postal/Rakefile:4:in `require_relative'
09:43:58 cron.1             | => /opt/postal/Rakefile:4:in `<top (required)>'
09:43:58 cron.1             | => /opt/postal/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
09:43:58 cron.1             | => /usr/local/bundle/bin/bundle:23:in `load'
09:43:58 cron.1             | => /usr/local/bundle/bin/bundle:23:in `<main>'
09:43:58 cron.1             | => (See full trace by running task with --trace)
09:43:58 worker.1           | => script/worker.rb:2:in `require_relative': cannot load such file -- /opt/postal/config/environment (LoadError)
09:43:58 worker.1           | =>        from script/worker.rb:2:in `<main>'
09:43:58 smtp.1             | => rake aborted!
09:43:58 smtp.1             | => LoadError: cannot load such file -- /opt/postal/config/application
09:43:58 smtp.1             | => /opt/postal/Rakefile:4:in `require_relative'
09:43:58 smtp.1             | => /opt/postal/Rakefile:4:in `<top (required)>'
09:43:58 smtp.1             | => /opt/postal/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
09:43:58 smtp.1             | => /usr/local/bundle/bin/bundle:23:in `load'
09:43:58 smtp.1             | => /usr/local/bundle/bin/bundle:23:in `<main>'
09:43:58 smtp.1             | => (See full trace by running task with --trace)
09:43:58 web.1              | => bundler: failed to load command: puma (/opt/postal/vendor/bundle/ruby/2.6.0/bin/puma)
09:43:58 web.1              | => Errno::ENOENT: No such file or directory @ rb_sysopen - config/puma.rb
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/dsl.rb:46:in `read'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/dsl.rb:46:in `_load_from'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/configuration.rb:195:in `block in load'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/configuration.rb:195:in `each'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/configuration.rb:195:in `load'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/launcher.rb:58:in `initialize'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/cli.rb:71:in `new'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/lib/puma/cli.rb:71:in `initialize'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/bin/puma:8:in `new'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/gems/puma-4.3.1/bin/puma:8:in `<top (required)>'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/bin/puma:23:in `load'
09:43:58 web.1              | =>   /opt/postal/vendor/bundle/ruby/2.6.0/bin/puma:23:in `<top (required)>'

User is not being created by 10-postal

An user is not being created (nothing in the users table in the database) even though I can see the following in the console:

postal-app          | [WARN] ** [container] RabbitMQ Host 'postal-rabbitmq' is not accessible, retrying.. (20 seconds so far)
postal-app          | [NOTICE] ** [container] Configuring Postal
postal-app          | [WARN] ** [container] Detecting new Install. Initializing Database
postal-clamav       | Sun Oct 25 13:12:06 2020 -> Database test passed.
postal-clamav       | Sun Oct 25 13:12:06 2020 -> daily.cvd updated (version: 25967, sigs: 4335099, f-level: 63, builder: raynman)
postal-clamav       | Sun Oct 25 13:12:06 2020 -> main database available for download (remote version: 59)
postal-clamav       | Sun Oct 25 13:12:13 2020 -> Testing database: '/data/definitions//tmp.2e52b2ad9a/clamav-03931e9d0f42251e955663d0921e269e.tmp-main.cvd' ...
postal-app          | [NOTICE] ** [container] Creating Administrative User
postal-app          | [WARN] ** [container] No Admin Email entered, setting default email login to '[email protected]'
postal-app          | [WARN] ** [container] WARNING: No Admin Pass entered, setting default password to 'postal'
postal-app          | [WARN] ** [container] No Admin First Name entered, setting default to 'Postal'
postal-app          | [WARN] ** [container] No Admin Last Name entered, setting default to 'Admin'
postal-clamav       | Sun Oct 25 13:12:27 2020 -> Database test passed.
postal-clamav       | Sun Oct 25 13:12:27 2020 -> main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
postal-clamav       | Sun Oct 25 13:12:27 2020 -> bytecode database available for download (remote version: 331)
postal-clamav       | Sun Oct 25 13:12:27 2020 -> Testing database: '/data/definitions//tmp.2e52b2ad9a/clamav-6fe8d96b89f9b01c332090ecd21ada9f.tmp-bytecode.cvd' ...
postal-clamav       | Sun Oct 25 13:12:27 2020 -> Database test passed.
postal-clamav       | Sun Oct 25 13:12:27 2020 -> bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
postal-clamav       | [INFO] ** [clamav] Container Initialization Complete
postal-clamav       | [cont-init.d] 10-clamd: exited 0.
postal-clamav       | [cont-init.d] 99-container: executing... 
postal-clamav       | [cont-init.d] 99-container: exited 0.
postal-clamav       | [cont-init.d] done.
postal-clamav       | [services.d] starting services
postal-clamav       | [services.d] done.
postal-clamav       | [INFO] ** [zabbix] Starting Zabbix Agent
postal-clamav       | [INFO] ** [clamav] Starting ClamAV
postal-clamav       | [NOTICE] ** [freshclam] Definitions Updating Routines Initialized on Sun Oct 25 13:12:38 GMT 2020
postal-clamav       | [INFO] ** [freshclam] Downloading Latest Definitions
postal-app          | [cont-init.d] 10-postal: exited 0.
postal-app          | [cont-init.d] 99-container: executing... 
postal-app          | [cont-init.d] 99-container: exited 0.
postal-app          | [cont-init.d] done.
postal-app          | [services.d] starting services
postal-app          | [services.d] done.
postal-app          | [INFO] ** [zabbix] Starting Zabbix Agent
postal-app          | [INFO] ** [container] Starting postal
postal-app          | Started Procodile supervisor with PID 1101
postal-app          | Procodile Version   1.0.26
postal-app          | Application Root    /app
postal-app          | Supervisor PID      1101
postal-app          | Started             2020-10-25 13:13:10 +0000

However, using docker exec -it bash and afterwards running /app/bin/postal make-user actually works fine.

If it makes a difference: it does create an user on my local Fedora 33 machine, but does not on a machine running Fedora CoreOS Stable which is remotely accessed with docker context.

Container wont work

Hey,

iam trying since hours to run these containers with your docker-compose.

This shows me the app container:
`bash-5.1# procodile
Welcome to Procodile v1.0.26
For documentation see https://adam.ac/procodile.

The following commands are supported:

check_concurrency Check process concurrency
console Open a console within the environment
exec Execute a command within the environment
help Shows this help output
kill Forcefully kill all known processes
log Open/stream a Procodile log file
reload Reload Procodile configuration
restart Restart processes
start Starts processes and/or the supervisor
status Show the current status of processes
stop Stops processes and/or the supervisor

For details for the options available for each command, use the --help option.
For example 'procodile start --help'.
bash-5.1# procodile status
Procodile Version 1.0.26
Application Root /app
Supervisor PID 1221
Started 2021-05-22 11:02:35 +0000

  • web.1 is not running (Failed)
  • fast.1 is not running (Failed)
  • worker.1 is not running (Failed)
  • cron.1 is not running (Failed)
  • smtp.1 is not running (Failed)
  • requeuer.1 is not running (Failed)

|| web
|| Quantity 1
|| Command bundle exec puma -C config/puma.rb
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => web.1 Failed 11:02 pid:1256 respawns:5 port:- tag:-

|| fast
|| Quantity 1
|| Command bundle exec rake postal:fast_server
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => fast.1 Failed 11:03 pid:1268 respawns:5 port:- tag:-

|| worker
|| Quantity 1
|| Command bundle exec ruby script/worker.rb
|| Respawning 5 every 3600 seconds
|| Restart mode start-term
|| Log path none specified
|| Address/Port none
|| => worker.1 Failed 11:03 pid:1269 respawns:5 port:- tag:-

|| cron
|| Quantity 1
|| Command bundle exec rake postal:cron
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => cron.1 Failed 11:03 pid:1270 respawns:5 port:- tag:-

|| smtp
|| Quantity 1
|| Command bundle exec rake postal:smtp_server
|| Respawning 5 every 3600 seconds
|| Restart mode usr1
|| Log path none specified
|| Address/Port none
|| => smtp.1 Failed 11:02 pid:1267 respawns:5 port:- tag:-

|| requeuer
|| Quantity 1
|| Command bundle exec rake postal:requeuer
|| Respawning 5 every 3600 seconds
|| Restart mode term-start
|| Log path none specified
|| Address/Port none
|| => requeuer.1 Failed 11:03 pid:1271 respawns:5 port:- tag:-
bash-5.1#
`

Spamassassin infinitely eats server disk space (in overlay2)

Hi,

Using docker-postal in a VPS I have encountered a "no space left on device". After having investigated, I figured out that the issue comes from the spamassasin container.

I turns out that there is an infinitely number of empty folders created within postal-spamassasin-app container, inside the /tmp folder, here's an example (I verifierd that the sise in /var/lib/docker/overlay2 growth as well because of those folders) :

bash-5.0# ls -A  /tmp | head |  xargs du -sh
8.0K    .spamassassin10001DGbDLFtmp
8.0K    .spamassassin10001UD2WI8tmp
8.0K    .spamassassin1000243lK31tmp
8.0K    .spamassassin100026eeizUtmp
8.0K    .spamassassin10002JhfDx4tmp
8.0K    .spamassassin10002s1rxFetmp
8.0K    .spamassassin10002xi6f1Ntmp
8.0K    .spamassassin10004VepMcItmp
8.0K    .spamassassin10005NLVJRhtmp
8.0K    .spamassassin10005TAVulwtmp

After running the container for ~1days, I got more than 70k folder here

bash-5.0# ls -A  /tmp | wc -l
71776

Finally here is a sample of this container logs which may help understanding why all those folder are created

$ docker logs postal-spamassassin-app 2>&1 | tail -n20
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
Jan 30 15:20:25.815 [9416] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
Jan 30 15:20:26.876 [9440] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
Jan 30 15:20:27.918 [9464] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
[and so on...]
docker logs postal-spamassassin-app 2>&1 | wc -l
215939

Any idea how we can solve this issue ?

Services in cont init fail to start

Summary

App container starts, but throws strange errors from bundler. (see logs below)
Tried to exec some commands by hand, but actually got the same result. Looks like the bundler does not take $PATH into account for some reason.

e.g.

bash-5.1# su - postal -s /bin/bash
4b68bee1f9bc:~$ cd /app/
4b68bee1f9bc:/app$ env|grep $PATH
PATH=/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin
4b68bee1f9bc:/app$ which rake
/usr/bin/rake
4b68bee1f9bc:/app$ rake --version
rake, version 12.3.3
4b68bee1f9bc:/app$ bundle exec rake postal:cron
`/app/` is not writable.
Bundler will use `/tmp/bundler/home/postal' as your home directory temporarily.
bundler: command not found: rake
Install missing gem executables with `bundle install`

Steps to reproduce

  1. Edit docker-compose from examples like this (I don't have such external networks defined)
networks:
    proxy:
    services:
  1. docker-compose up

What is the expected correct behavior?

Services started

Relevant logs and/or screenshots

postal-app          | 2021-10-22-19:00:54 [STARTING] ** [postal-requeuer] [136] Starting postal master Requeuer
postal-app          | `/app/` is not writable.
postal-app          | Bundler will use `/tmp/bundler/home/postal' as your home directory temporarily.
postal-app          | bundler: command not found: puma
postal-app          | Install missing gem executables with `bundle install`
postal-app          | 2021-10-22-19:00:55 [STARTING] ** [postal-smtp] [137] Starting postal master SMTP Server
postal-app          | `/app/` is not writable.
postal-app          | Bundler will use `/tmp/bundler/home/postal' as your home directory temporarily.
postal-app          | bundler: command not found: rake
postal-app          | Install missing gem executables with `bundle install`
postal-app          | `/app/` is not writable.
postal-app          | Bundler will use `/tmp/bundler/home/postal' as your home directory temporarily.
postal-app          | bundler: command not found: rake
postal-app          | Install missing gem executables with `bundle install`
postal-app          | `/app/` is not writable.
postal-app          | Bundler will use `/tmp/bundler/home/postal' as your home directory temporarily.
postal-app          | bundler: command not found: ruby
postal-app          | Install missing gem executables with `bundle install`
postal-app          | `/app/` is not writable.
postal-app          | Bundler will use `/tmp/bundler/home/postal' as your home directory temporarily.
postal-app          | bundler: command not found: rake

Environment

  • Image version / tag: tested 3.0.1, latest
  • Host OS: debian buster
Any logs | docker-compose.yml

Possible fixes

Environment variable for smtp relay?

We are starting to use Postal as a email relay, which in turn needs to relay to another mailserver of our company.

But one thing that I'm missing is a environment variable to set the smtp_relay option in postal.yml config file.
Or any other way of setting this during container creation.

I could probably edit the container and set a smtp_relay and save that container for internal use, but I'd rather use a public container in case of updates and such.

docker not starting, requiring ExecJS

Summary

Hi, first thank you for taking the time to create these docker images! We're having an issue trying to run the docker image. We are getting an error requiring 'javscript run time'.. I attached a copy of the error.

Steps to reproduce

Trying to run the docker using docker compose

What is the expected correct behavior?

javascript run time should be included in the image

Relevant logs and/or screenshots

CleanShot 2023-02-06 at 18 42 42@2x

Environment

Docker/docker compose

  • Image version / tag: latest
  • Host OS: Debian -docker compose
Any logs | docker-compose.yml

Possible fixes

fast server implementation?

Hello Dave,
first of all, a BIG thak you for this docker set!
Postal is a great software which I enjoy since a long time, but having it in docker is really awesome.

Everything has pro and cons, now my install is much simpler and I can use one server to run other docker services but I miss the domain tracker feature.

Do you have any idea if the fast server could be used in this context to have domain tracking feature?

Best regards

[postal] MySQL/MariaDB Server 'postal-db' is not accessible, retrying.. (25 seconds so far)

λ docker-postal\examples (master -> origin)
λ docker-compose up

...
postal-clamav          | Wed Feb 19 08:45:24 2020 -> Set stacksize to 1048576
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-app             | [WARN] ** [postal] MySQL/MariaDB Server 'postal-db' is not accessible, retrying.. (20 seconds so far)
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-app             | [WARN] ** [postal] MySQL/MariaDB Server 'postal-db' is not accessible, retrying.. (25 seconds so far)
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-app             | [WARN] ** [postal] MySQL/MariaDB Server 'postal-db' is not accessible, retrying.. (30 seconds so far)
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-app             | [WARN] ** [postal] MySQL/MariaDB Server 'postal-db' is not accessible, retrying.. (35 seconds so far)
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-db              | [INFO] ** [mariadb] Starting MariaDB 10.4.11
postal-app             | [WARN] ** [postal] MySQL/MariaDB Server 'postal-db' is not accessible, retrying.. (40 seconds so far)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.