On Thu, Oct 17, 2024 at 5:32 PM Andy Matthews <andy.matth...@zaxiom.com>
wrote:

> I'm testing locally to try and support additional domains.
>
> I can add new mailing lists with a domain: announce-...@mydomain.com
> I can't add a new mailing list with an alternate domain:
> announce-...@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/domains.html#domains
>
> 1. Shell into the mailman server
> 2. Shell into the mailman Python environment: mailman shell
> 3. 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-l...@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]
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/5OWEES24KYZCTEKX3BOK6WDKRXWYOBD7/

This message sent to arch...@mail-archive.com

Reply via email to