I read the document and there were also some misunderstandings. If I only use the helper, I added the following code to queues.toml, but it didn’t take effect in my test.
[queue.'gmail.com']
max_age = '22 hours'
retry_interval = '17 mins'
[queue.'gmail.com'.'haproxypool']
# options here for domain=gmail.com AND tenant=haproxypool for any unmatched campaign
routing_domain = '[10.10.10.10]'
max_age = '22 hours'
retry_interval = '17 mins'
[queue.'gmail.com'.'haproxypool'.'welcome-campaign']
# options here for domain=gmail.com, tenant=mytenant, and campaign='welcome-campaign'
routing_domain = '[10.10.10.10]'
max_age = '22 hours'
retry_interval = '17 mins'
Excuse me, can the routing_domain be set under the tenant? For example:
Do I still need to add the following in listener_domains.toml?
["send.example.com"]
# allow relaying mail from anyone, so long as it is
# addressed to webpowerx.com
relay_to = true
But my question is that this domain is used by all users, and I don’t want to provide a domain name to certain customers separately. Am I misunderstanding this domain name? Do I understand that this domain name corresponds to the --server in the following swaks command?
Also, I want to use domain , not ip address. it will be error : failed to resolve queue default-tenant@xxx.com![smtp-relay.xxxx.com]: invalid address: smtp-relay.xxxx.com: invalid IP address syntax
Thanks.
How can I make all mail of this tenant relay. At present, I have tested it and only specified that the tenant cannot take effect (it will be automatically sent by unspecified)