wildduck/config/default.toml

213 lines
7 KiB
TOML
Raw Normal View History

2017-07-12 02:38:23 +08:00
# Uncomment if you start the app as root and want to downgrade
# once all privileged actions are completed
#user="wildduck"
#group="wildduck"
# process title and syslog ident
ident="wildduck"
# how many processes to start
processes=1
2017-07-31 15:59:18 +08:00
# If this header exists and starts with "yes" then the message is treated as spam
# This is Rspamd header. For the same with SpamAssassin use "X-Spam-Status"
2017-07-12 02:38:23 +08:00
spamHeader="X-Rspamd-Spam"
# default quota storage in MB (can be overriden per user)
maxStorage=1024
# default smtp recipients for 24h (can be overriden per user)
maxRecipients=2000
# default forwarded messages for 24h (can be overriden per user)
maxForwards=2000
# If usernames are not email addresses then use this domain as hostname part
#emailDomain="mydomain.info"
[dbs]
2017-07-17 21:32:31 +08:00
# mongodb connection string for the main database
mongo="mongodb://127.0.0.1:27017/wildduck"
# redis connection string
redis="redis://127.0.0.1:6379/3"
# Wild Duck allows using different kind of data in different databases
# If you do not provide a database config value, then main database connection
# is used for everything
# You can either use a database name (uses shared connection) or a configutaion
# url (creates a separate connection) for each databases
# Optional database name or connection url for GridFS if you do not want to
# use the main db for storing attachments. Useful if you want
# to use a different mount folder or storage engine
#gridfs="wildduck"
2017-07-17 21:32:31 +08:00
# Optional database name or connection url for users collection if you do not want to
# use the main db for storing user/address data. Useful if you want
# to use a different mount folder or storage engine
#users="wildduck"
2017-07-17 21:32:31 +08:00
# Optional database name or connection url for ZoneMTA queue database. This is
# used to push outbound emails to the sending queue
#sender="zone-mta"
[totp]
cipher="aes192"
secret="a secret cat"
[attachments]
type="gridstore"
bucket="attachments"
2017-07-12 02:38:23 +08:00
[log]
level="silly"
# log to syslog if true
# not needed if you run the app as systemd service
syslog=false
[imap]
# If enabled then Wild Duck exposes an IMAP interface for listing and fetching emails
enabled=true
port=9993
# by default bind to localhost only
host="127.0.0.1"
# Use `true` for port 993 and `false` for 143. If connection is not secured
# on connection then Wild Duck enables STARTTLS extension
secure=true
# Max size for messages uploaded via APPEND
maxMB=25
# delete messages from \Trash and \Junk after retention days
retention=30
# if `true` then do not autodelete expired messages
disableRetention=false
2017-07-25 20:50:16 +08:00
[imap.setup]
# Public configuration for IMAP
hostname="localtest.me"
secure=true
# port defaults to imap.port
#port=9993
2017-07-12 02:38:23 +08:00
[tls]
# Default TLS keys (can be overriden by individual services)
#key="/path/to/server/key.pem"
#ca=["/path/to/server/ca1.pem", "/path/to/server/ca2.pem"]
#cert="/path/to/server/cert.pem"
[imap.tls]
# If certificate path is not defined, use global or built-in self-signed certs
#key="/path/to/server/key.pem"
#cert="/path/to/server/cert.pem"
[lmtp]
# If enabled then Wild Duck exposes a LMTP interface for pushing messages to mail store
enabled=true
port=2424
# by default bind to localhost only
host='127.0.0.1'
# Max accepted size for messages pushed via LMTP
maxMB=25
[lmtp.tls]
# If certificate path is not defined, use global or built-in self-signed certs for STARTTLS
#key="/path/to/server/key.pem"
#cert="/path/to/server/cert.pem"
[pop3]
# If enabled then Wild Duck exposes a limited POP3 interface for listing and fetching emails
enabled=true
port=9995
# by default bind to localhost only
host="127.0.0.1"
# Use `true` for port 995 and `false` for 110. Try to always use `true` as the included
# POP3 server is limited and does not support the STLS command
secure=true
# How many latest messages to list for LIST and UIDL
# POP3 server never lists all messages but only a limited length list
maxMessages=250
[pop3.tls]
# If certificate path is not defined, use global or built-in self-signed certs
#key="/path/to/server/key.pem"
#cert="/path/to/server/cert.pem"
2017-07-25 20:50:16 +08:00
[pop3.setup]
# Public configuration for POP3
hostname="localtest.me"
secure=true
# port defaults to pop3.port
#port=9995
2017-07-12 02:38:23 +08:00
[api]
enabled=true
port=8080
# by default bind to localhost only
host="127.0.0.1"
2017-07-17 21:32:31 +08:00
# Use `true` (HTTPS) for port 443 and `false` (HTTP) for 80
2017-07-25 20:50:16 +08:00
secure=false
# If set requires all API calls to have accessToken query argument with that value
# http://localhost:8080/users?accessToken=somesecretvalue
#accessToken="somesecretvalue"
2017-07-17 21:32:31 +08:00
[api.tls]
# If certificate path is not defined, use global or built-in self-signed certs
#key="/path/to/server/key.pem"
#cert="/path/to/server/cert.pem"
2017-07-25 20:50:16 +08:00
[api.mobileconfig]
2017-07-26 15:45:46 +08:00
# plist configuration for OSX/iOS profile files that are generated with Application Specific Passwords
# Use {email} in the description strings to replace it with account email address
# A reverse-DNS style identifier (com.example.myprofile, for example) that identifies the profile.
2017-07-31 15:59:18 +08:00
# This string is used to determine whether a new profile should replace an existing one or should be added. Username is prepended to this value.
2017-07-25 20:50:16 +08:00
identifier="com.email.wildduck"
2017-07-26 15:45:46 +08:00
# A human-readable name for the profile. This value is displayed on the Detail screen. It does not have to be unique.
displayName="Wild Duck Mail"
# A human-readable string containing the name of the organization that provided the profile.
organization="Wild Duck Mail Services"
# A description of the profile, shown on the Detail screen for the profile. This should be descriptive enough to help the user decide whether to install the profile.
displayDescription="Install this profile to setup {email}"
# A user-visible description of the email account, shown in the Mail and Settings applications.
accountDescription="Wild Duck ({email})"
2017-07-25 20:50:16 +08:00
[api.mobileconfig.tls]
# If certificate path is not defined, use global or built-in self-signed certs
#key="/path/to/server/key.pem"
#cert="/path/to/server/cert.pem"
2017-07-12 02:38:23 +08:00
[sender]
# Push messages to ZoneMTA queue for delivery
# if `false` then no messages are sent
enabled=true
# which ZoneMTA queue to use by default
zone="default"
# Collection name for GridFS storage
gfs="mail"
# Collection name for the queue
2017-07-17 21:32:31 +08:00
# see [dbs].sender option for choosing correct database to use for ZoneMTA queues
# by default the main wildduck database is used
2017-07-12 02:38:23 +08:00
collection="zone-queue"
2017-07-25 20:50:16 +08:00
[smtp.setup]
# Public configuration for SMTP MDA
hostname="localtest.me"
secure=false
port=2587