§2024-10-28

  • stop these services befor modifying
$ sudo systemctl stop wildduck.service wildduck-webmail.service zonemta.service mongod.service
  • /etc/wildduck/dbs.toml
# mongodb connection string for the main database
mongo="mongodb://127.0.0.1:27017/wildduck"
# mongo="mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/YuSheiWildduck?authSource=admin&replicaSet=ys20220318"

  • /etc/zone-mta/dbs-production.toml
# @include "/etc/wildduck/dbs.toml"
@include "/etc/wildduck/dbs.toml"
  • /opt/zone-mta/config/dbs-production.toml
# Database configuration
# this file is loaded when NODE_ENV=production

# MongoDB connection string
mongo="mongodb://127.0.0.1:27017/zone-mta"
# mongo="mongodb://siteRootAdmin:b23258585@redisMongo03.yushei.com.tw:27017,redisMongo04.yushei.com.tw:27017,redisMongo05.yushei.com.tw:27017/zone-mta?authSource=admin&replicaSet=ys20220318"


# Redis connection string
redis="redis://localhost:6379/2"

# Database name for ZoneMTA data in MongoDB. In most cases it should be the same as in the connection string
sender="zone-mta"

Return to Top