π£Postfix(Text)Resp
Possible responses for the Postfix server
PostfixResp
type PostfixResp string
const (
RespOk PostfixResp = "OK"
RespReject PostfixResp = "REJECT"
RespDefer PostfixResp = "DEFER"
RespDeferIfReject PostfixResp = "DEFER_IF_REJECT"
RespDeferIfPermit PostfixResp = "DEFER_IF_PERMIT"
RespDiscard PostfixResp = "DISCARD"
RespDunno PostfixResp = "DUNNO"
RespHold PostfixResp = "HOLD"
RespInfo PostfixResp = "INFO"
RespWarn PostfixResp = "WARN"
)func Handle(ps *pps.PolicySet) pps.PostfixResp {
fmt.Println("Postfix received a mail for:", ps.Recipient)
return pps.RespDunno
}PostfixTextResp
Custom responses
TextResponseOpt
TextResponseNonOpt
Last updated