Documentation ¶
Index ¶
- func AliasAdd(alias, deliverTo, pipe string, isMinilist bool) error
- func AliasDel(alias string) error
- func AliasList() (aliases []core.Alias, err error)
- func DkimDisable(domain string) error
- func DkimEnable(domain string) (dkimConfig *core.DkimConfig, err error)
- func DkimGetConfig(domain string) (dkimConfig *core.DkimConfig, err error)
- func QueueBounceMsg(id int64) error
- func QueueCount() (uint32, error)
- func QueueDiscardMsg(id int64) error
- func QueueGetMessage(id int64) (core.QMessage, error)
- func QueueGetMessages() ([]core.QMessage, error)
- func QueuePurge() error
- func RcpthostAdd(host string, isLocal, isAlias bool) error
- func RcpthostDel(host string) error
- func RcpthostList() (hosts []core.RcptHost, err error)
- func RelayIpAdd(ip string) error
- func RelayIpDel(ip string) error
- func RelayIpGetAll() (ips []core.RelayIpOk, err error)
- func RoutesAdd(host, localIp, remoteHost string, remotePort, priority int, ...) error
- func RoutesDel(routeId int64) error
- func RoutesGet() ([]core.Route, error)
- func UserAdd(login, passwd, mbQuota string, haveMailbox, authRelay, isCatchall bool) error
- func UserChangePassword(login, password string) error
- func UserDel(login string) error
- func UserGetAll() (users []core.User, err error)
- func UserGetByLogin(login string) (user *core.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DkimDisable ¶
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 ¶
QueueBounceMsgByKey bounce a message by his key
func QueueDiscardMsg ¶
QueueDiscardMsgByKey discard a message (delete without bouncing) by his id
func QueueGetMessage ¶
QueueGetMessage return a message by its id
func QueueGetMessages ¶
Queue QueueGetMessages returns all message in queue
func QueuePurge ¶
func QueuePurge() error
QueuePurge delete expired message WARNING use at your own risks...
func RcpthostAdd ¶
RcptHostAdd add a rcpthost
func RcpthostList ¶
RcpthostList returns all rcpthosts
func RelayIpAdd ¶
RELAY IP RelayIpAdd add an IP authozed to relay through cocosmail
func RelayIpGetAll ¶
RelayIpGetAll returns all IPs which are authorized to relay through cocosmail
func RoutesAdd ¶
func RoutesAdd(host, localIp, remoteHost string, remotePort, priority int, user, mailFrom, smtpAuthLogin, smtpAuthPasswd string) error
RoutesAdd adds en new route
func UserChangePassword ¶
UserChangePassword is used to change user password
Types ¶
This section is empty.