مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
This allows us to avoid messing around with changes to iptables and generally makes installation easier for everyone. If you have an instance of postal before this, you will need to do a couple of things to ensure your installation continues to work. 1. You will need to specify a `fast_server.bind_address` in your postal.yml configuration file. This is the IP that you dedicated to the fast server. 2. You will need to allow Ruby to listen on privileged ports (sudo setcap 'cap_net_bind_service=+ep' /usr/bin/ruby2.3). 3. You will need to remove any iptables rules that you may have added previously to accomodate the older way of doing this.
66 أسطر
2.0 KiB
YAML
66 أسطر
2.0 KiB
YAML
web:
|
|
# The host that the management interface will be available on
|
|
host: postal.example.com
|
|
# The protocol that requests to the management interface should happen on
|
|
protocol: https
|
|
|
|
fast_server:
|
|
# This can be enabled to enable click & open tracking on emails. It is disabled by
|
|
# default as it requires a separate static IP address on your server.
|
|
enabled: false
|
|
bind_address:
|
|
|
|
general:
|
|
# This can be changed to allow messages to be sent from multiple IP addresses
|
|
use_ip_pools: false
|
|
|
|
main_db:
|
|
# Specify the connection details for your MySQL database
|
|
host: 127.0.0.1
|
|
username: postal
|
|
password: p0stalpassw0rd
|
|
database: postal
|
|
|
|
message_db:
|
|
# Specify the connection details for your MySQL server that will be house the
|
|
# message databases for mail servers.
|
|
host: 127.0.0.1
|
|
username: postal
|
|
password: p0stalpassw0rd
|
|
prefix: postal
|
|
|
|
rabbitmq:
|
|
# Specify the connection details for your RabbitMQ server.
|
|
host: 127.0.0.1
|
|
username: postal
|
|
password: p0stalpassw0rd
|
|
vhost: /postal
|
|
|
|
dns:
|
|
# Specifies the DNS record that you have configured. Refer to the documentation at
|
|
# https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further
|
|
# information about these.
|
|
mx_records:
|
|
- mx.postal.example.com
|
|
smtp_server_hostname: postal.example.com
|
|
spf_include: spf.postal.example.com
|
|
return_path: rp.postal.example.com
|
|
route_domain: routes.postal.example.com
|
|
track_domain: track.postal.example.com
|
|
|
|
smtp:
|
|
# Specify an SMTP server that can be used to send messages from the Postal management
|
|
# system to users. You can configure this to use a Postal mail server once the
|
|
# your installation has been set up.
|
|
host: 127.0.0.1
|
|
port: 2525
|
|
username: # Complete when Postal is running and you can
|
|
password: # generate the credentials within the interface.
|
|
from_name: Postal
|
|
from_address: postal@yourdomain.com
|
|
|
|
rails:
|
|
# This is generated automatically by the config initialization. It should be a random
|
|
# string unique to your installation.
|
|
secret_key: {{secretkey}}
|