Skip to content

ianjs/forwardmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forwardmx

A Clojure library to wrap the API for the forwardmx.io email forwarding service.

forwardmx.io provides a simple service for forwarding mail for multiple domains.

This library simplifies using it from clojure and, in particular, provides a single function to populate forwardmx.io from a Postfix virtual file.

Usage

You will need to set up an API key where it can be found by the environ library. For example it could simply be in the environment as API_KEY.

(ns this.app
  (:require
   [forwardmx.core :as fmx]
   [forwardmx.domain :as domain]   
   [forwardmx.alias :as alias]
   ))
   
   
;; Import the aliases for a particular domain from a Postfix virtual file
(fmx/import-postfix-virtual "virtual" "example.com")

;; Import all aliases  from a Postfix virtual file
(fmx/import-postfix-virtual "virtual")

(domain/create! "x.y.com")
(alias/create! "x.y.com" "ian" "[email protected]" )
(alias/update! "x.y.com" "" "[email protected]" ) ;; catchall address for this domain

(alias/update! "x.y.com" "ian" "[email protected]")

(alias/destroy! "x.y.com" "ian")

(domain/destroy! "x.y.com")


License

Copyright © 2017

Distributed under the Eclipse Public License either version 1.0 or any later version.

About

Simpler wrapper around the API for forwardmx.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published