This is a mirror of git.y.gy/firstdorsal/postkutsche-web
Postkutsche is a module that combines PowerDns and Mailcow to create a mail domain with all required entries on both services in a single command. This is the same module packed in a single html file ready to be executed directly in your browser without downloading anything else!
Download the index.html from this repository: here and open it in the browser.
- Press F12 or ctrl/strg + shift + i to open the developer tools and navigate to the console.
1.1 If the console is not directly visible press 'ESC' to open it
- Create a Postkutsche client
let pk=new Postkutsche({mailcow:{url:"https://mail.example.com",apikey:"yourMailcowApiKey"},powerdns:{url:"https://example.com/api/v1/servers/localhost",apikey:"yourPdnsApiKey"}});
await pk.openpgpHash('your.local.email.name');
Go to the bottom of the index.html and add your functions.
let mailcowClient=new MailcowApiClient('https://mail.example.com','yourMailcowApiKey');
OR
let powerdnsClient=new PowerdnsClient('https://example.com/api/v1/servers/localhost','yourPdnsApiKey');
Feel free to contact me via xl9jthv_7bvgakv9o9wg0jabn2ylm91xxrzzgt0e@y.gy in english or german