How to send/receive [email protected] emails on 5 different postal servers: mail0., mail1., mail2., mail3. & mail4.example.com? #3180
Replies: 3 comments 6 replies
-
If you're intending on using the same pile of databases for all your Postal servers then it would work roughly the same way as you describe. The solution would be to have multiple copies of DNS records for mail.example.com rather than mail0-5.example.com (I think they call it round-robin DNS but I'm not sure). Each server would have identical configuration values. That way any of the servers could handle incoming or bounced messages |
Beta Was this translation helpful? Give feedback.
-
My intention was to use each as an independent Postal server, installed via the regular directions. Sounds like you're suggesting that the different Postal servers mail0-4 all share the same database or databases. That might be something I could consider, seems it may be a good option. Do you know of any Postal docs with directions on how to setup in that way? |
Beta Was this translation helpful? Give feedback.
-
I think I may have partly figured out my concern with the rp.mail.example.com & psrp.example.com (optional but recommended by Postal) return path domains. In the configs at https://github.com/postalserver/postal/blob/main/doc/config/yaml.yml rp.mail. would be the actual return path domain. psrp. is the default custom_return_path_prefix setting. After looking more at those configs, I believe using the below for each of the 5 numbered mail servers would get both the return path & custom return path pointing to the correct mail server for any messages sent by that server.
This appeared to be an issue with using multiple mail servers since I saw "psrp.example.com" in the mail headers for one of my other sites (which uses only 1 postal server), but I would need that to reference uniquely to each mail server. Looks like changing psrp. to psrp.mail#. for the custom_return_path_prefix setting may accomplish that. There would still be the issue of [email protected] emails in the headers , but using a shared db should sort that out. Not sure if that part can be addressed with separate db mail servers without only using a unique subdomain on each mail server.
|
Beta Was this translation helpful? Give feedback.
-
Is there a specific way required in order to setup & configure 5 (or any number) Postal servers each using a different IP address for sending & receiving email for the same root domain example.com? These also could be on different physical servers.
mail0.example.com & IP0
mail1.example.com & IP1
mail2.example.com & IP2
mail3.example.com & IP3
mail4.example.com & IP4
So [email protected] emails could be sent through any of the 5 Postal servers and emails to that address also received by any of the Postal servers.
What I'm concerned about is mainly with return path domains, bounces, etc. That they be handled properly, setup by me properly. For example, maybe a message sent via mail4.example.com and the bounce message going to mail1.example.com which did not send that email, so would have no record of it. Or would a bounce never go to any other Postal server other than the one that sent it (mail4, in this example)?
Something else I noticed in email headers is that with my current Postal server on mail.example.com there are message IDs such as [email protected] and am wondering if/how that might affect running things on multiple mail servers.
Also, in the Postal DNS setup for example.com, there's an optional but recommended (to improve deliverability) setting of pointing a psrp.example.com CNAME to rp.mail.example.com. How could that work in this type of setup where example.com sends/receives on multiple Postal servers?
Anything else I might be overlooking?
Beta Was this translation helpful? Give feedback.
All reactions