Skip to content

How to add domains via API? #1414

Closed
Closed

Description

@sharrc

Hello, I have a basic setup with postal on Ubuntu 18.04.

And I have to allow users to be able to add a domain using an API and get a DKIM public key back in response which they can they add into their DNS records.

Is there a way this is possible right now? Or do I have to use alternatives like a mix of Postfix + Amavis + Dovecot, or something on those lines...?

My requirements include:

  1. Allowing multiple domains to be added anytime
  2. Only sending emails from any user on that domain (No receiving)
  3. Being able to customize the DNS records like the DKIM's selector, which looks something like: postal_Nkj24._domainkey.example.com
    Would like to replace the "postal" bit here...

There is a commit actually that comes close to what I want: 2dd44e8

But this is not merged into the latest master version, and also there's no documentation for it.

Please help! Thanks!

Tagging: @willpower232 @adamcooke

Activity

  1. willpower232 commented on Jul 22, 2021

    @willpower232
    Collaborator

    Also in the list of PRs is #992 which sounds much closer to what you want.

    These feature requests have not been merged as there are other priorities and no guarantee they will be merged. If you want to make use of that code, you wlil have to fork Postal and merge it yourself to create the version of Postal you desire but you would have to figure out how to use it on your own.

    Edit: fixed link

  2. locked and limited conversation to collaborators on Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions