New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summary of why MailTrain needs MariaDB + Redis + Mongo? #1280
Comments
|
Mongo is needed only if you use the builtin ZoneMTA. I guess redis is the same case. If you use an external MTA, feel free to drop them. |
|
@bures Thanks - using the built-in ZoneMTA (not sure what it is) as opposed to what? I'm mostly using it for the Mosaico editor's mailing list compatibility and ease connecting MailTrain with our SMTP relay. In terms of importing/exporting each mailing list from our other database; I've not figured out the best way yet (whether to export a CSV or actually integrate such that MailTrain has DB access). |
|
MTA (Message transfer agent) is a program that does the hard work of sending email to maybe thousands of recipients. ZoneMTA which needs those things comes installed by default, but there others, like Sendmail, Postfix, Exim and few more. |
|
I tried to turn off Mongo and Redis in my docker-compose.yml but |
|
I don't use mailtrain yet, but it is hard to tell what the problem is without specific error messages. And if you are using SMTP, which message transfer agent it is connecting to? |
|
I use an external SMTP server, so I disabled both the builtin ZoneMTA and MongoDB for my Docker instance. For ZoneMTA, I had to disable it in server's So, while Mailtrain is running: # execute a shell in container
docker-compose exec mailtrain /bin/bash
# edit server config
vi server/config/production.yaml# set existing entry to false
builtinZoneMTA:
enabled: false# return to host shell
exitThen, in the Compose file: vim docker-compose.yml# comment out Mongo service and volume
# add a variable to disable ZoneMTA
services:
# mongo:
# image: mongo:4-xenial
# volumes:
# - mongo-data:/data/db
mailtrain:
environment:
- WITH_ZONE_MTA=false
volumes:
# mongo-data:# stop running containers
docker-compose stop
# recreate containers
docker-compose up
# Optional:
## remove Mongo container and image with `docker-compose up --remove-orphans`
## remove Mongo volume with `docker volume rm mailtrain_mongo-data`From Mailtrain's Admin UI, in Note that the |
|
As for Redis, I get a few warnings after disabling it. Looks like Mailtrain relies on it other than for ZoneMTA, so I guess it should be kept enabled for now. Mailtrain log with Redis disabled: Changes in redis:
enabled: falseChanges in services:
# redis:
# image: redis:5
# volumes:
# - redis-data:/data
mailtrain:
environment:
- WITH_REDIS=false
volumes:
# redis-data: |
I'm trying to make a lightweight mailtrain config and wondering what each database is required for - and why it can't just use one. Perhaps this should be obvious, but so far it isn't. We already have our own databases running - lots of stuff for members, including their email addresses. What does MailTrain use each DB for?
Also, has anyone integrated an auth or SSO service to manage user access to the mailtrain stack?
Is there a community chat or forum - hopefully this is the right place to ask these questions?
Thanks!
The text was updated successfully, but these errors were encountered: