api-smta

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2020 License: MIT

README

API-SMTA

REST API, written on Golang for management Postfix and Amavis.

Name of api parameters matched postfix main.cf and amavisd.conf

Full documentation for allowed API-methods and parameters see in Swagger UI files by location in ./swagger

API description:
  • /general: management MTA based parameters (double_bounce_sender, message_size_limit, etc..)
  • /transport: transport parameters (mynetworks, relay_domains, etc..)
  • /contentfilter: contentfilter parameters and working with quarantine
  • /acl: tables\rules based on postfix access tables, amavis maps and amavis policy banks
Configuration:
  • resources/conf/smta/config.yaml
Security files:
  • resources/security/ssl/
Building binary in golang docker container:
#initial for make golang image
$ bash build.sh init
#next
$ bash build.sh
Manual building:
$ cd /path/to/cloned/project
$ export GOPATH=`pwd`
$ go build -o bin/smta src/app.go
References:
Libraries:

Directories

Path Synopsis
src
amavis
Working with amavis content filter server
Working with amavis content filter server
api
Http request handlers package
Http request handlers package
api/acl
Package for managements postfix transport settings
Package for managements postfix transport settings
api/basic
Base functions for all api methods
Base functions for all api methods
api/general
Package for managements postfix general(global) settings
Package for managements postfix general(global) settings
api/transport
Package for managements postfix transport settings
Package for managements postfix transport settings
conf
Working whith application configurations
Working whith application configurations
github.com/fatih/structs
Package structs contains various utilities functions to work with structs.
Package structs contains various utilities functions to work with structs.
github.com/gijsbers/go-pcre
Package pcre provides access to the Perl Compatible Regular Expresion library, PCRE.
Package pcre provides access to the Perl Compatible Regular Expresion library, PCRE.
gopkg.in/validator.v2
Package validator implements value validations based on struct tags.
Package validator implements value validations based on struct tags.
postfix
Working with postfix mail server
Working with postfix mail server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL