api

package
v0.0.0-...-a7b1964 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliasAdd

func AliasAdd(alias, deliverTo, pipe string, isMinilist bool) error

AliasAdd add an alias

func AliasDel

func AliasDel(alias string) error

AliasDel delete an alias

func AliasList

func AliasList() (aliases []core.Alias, err error)

AliasList return all alias

func DkimDisable

func DkimDisable(domain string) error

DkimDisable will remove DKIM config for domain domain from DB resulting in desactivate DKIM for outgoing message from the domain.

func DkimEnable

func DkimEnable(domain string) (dkimConfig *core.DkimConfig, err error)

DkimEnable Enable DKIM for domain domain DkimEnable will create keys pair

func DkimGetConfig

func DkimGetConfig(domain string) (dkimConfig *core.DkimConfig, err error)

DkimGetConfig return DKIM configuration for domain domain

func QueueBounceMsg

func QueueBounceMsg(id int64) error

QueueBounceMsgByKey bounce a message by his key

func QueueCount

func QueueCount() (uint32, error)

QueueCount returns number of messages in queue

func QueueDiscardMsg

func QueueDiscardMsg(id int64) error

QueueDiscardMsgByKey discard a message (delete without bouncing) by his id

func QueueGetMessage

func QueueGetMessage(id int64) (core.QMessage, error)

QueueGetMessage return a message by its id

func QueueGetMessages

func QueueGetMessages() ([]core.QMessage, error)

Queue QueueGetMessages returns all message in queue

func QueuePurge

func QueuePurge() error

QueuePurge delete expired message WARNING use at your own risks...

func RcpthostAdd

func RcpthostAdd(host string, isLocal, isAlias bool) error

RcptHostAdd add a rcpthost

func RcpthostDel

func RcpthostDel(host string) error

RcpthostDel delete a rcpthost

func RcpthostList

func RcpthostList() (hosts []core.RcptHost, err error)

RcpthostList returns all rcpthosts

func RelayIpAdd

func RelayIpAdd(ip string) error

RELAY IP RelayIpAdd add an IP authozed to relay through tmail

func RelayIpDel

func RelayIpDel(ip string) error

RelayIpDel remove an ip from authorized IP

func RelayIpGetAll

func RelayIpGetAll() (ips []core.RelayIpOk, err error)

RelayIpGetAll returns all IPs which are authorized to relay through tmail

func RoutesAdd

func RoutesAdd(host, localIp, remoteHost string, remotePort, priority int, user, mailFrom, smtpAuthLogin, smtpAuthPasswd string) error

RoutesAdd adds en new route

func RoutesDel

func RoutesDel(routeId int64) error

RoutesDel delete route routeId

func RoutesGet

func RoutesGet() ([]core.Route, error)

ROUTES RoutesGet returns all routes

func UserAdd

func UserAdd(login, passwd, mbQuota string, haveMailbox, authRelay, isCatchall bool) error

UserAdd add a new user

func UserChangePassword

func UserChangePassword(login, password string) error

UserChangePassword is used to change user password

func UserDel

func UserDel(login string) error

UserDel delete an user (keep his mailboxe)

func UserGetAll

func UserGetAll() (users []core.User, err error)

UserGetAll return all users

func UserGetByLogin

func UserGetByLogin(login string) (user *core.User, err error)

UserGetByLogin returns an User by his login

Types

This section is empty.

Jump to

Keyboard shortcuts

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