zone-eu / zone-mta-template

Template application for ZoneMTA
39 stars 25 forks source link

weird mongodb using redis port #4

Closed u007 closed 6 years ago

u007 commented 6 years ago

hi,

are there any mistake that it uses redis url for mongodb? im getting:

ERR! Queue Could not initialize MongoDB: connect ECONNREFUSED 127.0.0.1:6379

my dbs-production.toml as followS:

# MongoDB connection string
mongo="mongodb://127.0.0.1:27017/zone-mta"

# Redis connection string
redis="redis://127.0.0.1:6379/2"
u007 commented 6 years ago

@andris9 can i get your help to set it up? maybe a small donation? im wish to test it out first :)

andris9 commented 6 years ago

Hey,

I’m away from computer for the next few weeks, so can’t really help. Alternatively you could try to use the wildduck installer as it installs zonemta as part of the process: https://github.com/nodemailer/wildduck/tree/master/setup

On Thu, 5 Jul 2018 at 17:50, James notifications@github.com wrote:

@andris9 https://github.com/andris9 can i get your help to set it up? maybe a small donation? im wish to test it out first :)

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/zone-eu/zone-mta-template/issues/4#issuecomment-402748433, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIEkqF2tnjuPJZpU2KLCqjLqRzqYnAlks5uDie0gaJpZM4VDYg0 .

andris9 commented 6 years ago

Oh, btw, the error message is not correct, it means that setting up all database connections (including Redis) failed. So you should check that there really is Redis running on port 6379 on localhost

u007 commented 6 years ago

@andris9 wonderful, i got it working. i think the mongodb needed some time to start. and i was working on it via docker-compose. i have changed

mongo="mongodb://mongodb:27017/zone-mta"
redis="redis://redis:6379/2"

ive setup it to allow api from other host

zonemta.toml

[api]
host=false
port=12080

feeder.toml

# Local IP and port to bind to
host=false
port=2525

i have the public repo here: https://github.com/u007/zonemta1 excluded the private configurations stated in .gitignore

u007 commented 6 years ago

hi @andris9 is there a spam reported list?