Skip to content

spanarek/api-smta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

REST API for management Postfix and Amavis configurations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages