Skip to content

DopeDealers/Mailcow.js

Repository files navigation

Mailcow.js

The unofficial Mailcow nodejs wrapper

GitHub issues GitHub license Maintenance

forthebadge forthebadge forthebadge

About

Mailcow.js is a simple and easy-to-use Node.js library designed to interact with the Mailcow email server API. With this library, you can effortlessly manage mailboxes, domains, aliases, sync jobs, and more, all through a clean and intuitive interface.

Installation

NPM npm i mailcow.js

Yarn yarn add TBD

Client

const Mailcow = require('mailcow.js');

const mailcow = new Mailcow('https://mail.yourdomain.org/', {
    readOnlyKey: 'XXXX-XXXX-XXXX-XXXX',
    writeKey: 'XXXX-XXXX-XXXX-XXXX'
});

// Get user mailbox
mailcow.getUserMailBox('admin@yourdomain.org')
    .then(data => console.log(data))
    .catch(err => console.error(err));

// Add a new domain
mailcow.addDomain({ domain: 'newdomain.org' })
    .then(data => console.log(data))
    .catch(err => console.error(err));

About

A simple mailcow API wrapper

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors