On Thu, Oct 17, 2024 at 5:32 PM Andy Matthews <andy.matthews@zaxiom.com> wrote:
I'm testing locally to try and support additional domains.
I can add new mailing lists with a domain: announce-123@mydomain.com I can't add a new mailing list with an alternate domain: announce-123@testing.com
Following the documentation for domains I'm able to successfully add the new domain (locally) with the following steps:
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/model/docs/...
- Shell into the mailman server
- Shell into the mailman Python environment: mailman shell
- Add a new mailing list. from mailman.interfaces.domain import IDomainManager from zope.component import getUtility manager = getUtility(IDomainManager) manager.add('testing.com') show_domains() # with method from the above documentation URL <Domain testing.com> <Domain mydomain.com>
But then when I run a cURL command (from the mailman server) to add a list with that new domain I get an error: $ curl -k -u restadmin:restpass -X POST -H "Content-Type: application/json" --data '{"fqdn_listname": "new-list@testing.com"}' https://0.0.0.0:8001/3.1/lists {"title": "400 Bad Request", "description": "Domain does not exist: testing.com"}
Am I doing something wrong, or missing a step? If not, how do I add support for additional domains such that I can provide mailing list support for that domain?
I am not sure I understand your question. Do you use Postorius and you can't add new domains from there?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]