Run multiple smtp servers in postal v3 #3011
-
Hi, I'd like to run multiple smtp servers in postal. In the docs https://docs.postalserver.io/other/containers I read that it is possible to "run multiple SMTP servers and load balance between them to add additional capacity for SMTP connections." I am running postal v3 with a docker compose file like this: version: "3.9"
services:
web:
# ...
# ...
smtp:
image: ghcr.io/postalserver/postal:3.3.3
command: postal smtp-server
network_mode: host
cap_add:
- NET_BIND_SERVICE
volumes:
- /opt/postal/config:/config
restart: unless-stopped
# ... and my configuration is based on the new format (like this: https://github.com/postalserver/postal/blob/main/doc/config/yaml.yml) This may be a naive question but I have searched the documentation for a while without finding an answer. How can I run multiple smtp servers in my postal installation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Also I would like to ask about replicating workers. In the docs https://docs.postalserver.io/other/containers#the-workers) I see that workers can be replicated: "[The worker(s) (...) Command: postal worker (...) This runs a worker which will receive jobs from the message queue. Essentially, this handles processing all incoming and outgoing e-mail. If you're needing to process lots of e-mails, you may wish to run more than one of these. You can run as many of these as you wish." Relevant excerpt of my docker-compose.yml:
How can I create more than one worker? Maybe creating a service called |
Beta Was this translation helpful? Give feedback.
-
You can make use of the |
Beta Was this translation helpful? Give feedback.
-
@gsommavilla @willpower232 I am looking to create multiple SMTP server and reading the doc, still not clear how to achieve it. Basically, what I am looking to achieve: mail.domain.com -- on port 25 SMTP I know from the dashboard UI, only 1 SMTP server is showing by default based on the config. Seriously interested in this. |
Beta Was this translation helpful? Give feedback.
You can make use of the
--scale
parameter to add more copies of containers, have a look at https://github.com/orgs/postalserver/discussions/2679 I think it is mentioned elsewhere but couldn't remember where