Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Mode BackendMode Log *log.Logger Config *config.Config Queues *smtpsender.Queues Storage storage.Storage Notify *imapserver.IMAPNotify }
func (*Backend) AnonymousLogin ¶
type BackendMode ¶
type BackendMode int
const ( BackendModeInternal BackendMode = iota BackendModeExternal )
type SMTPServer ¶
type SMTPServer struct {
// contains filtered or unexported fields
}
func NewSMTPServer ¶
func NewSMTPServer(backend smtp.Backend, notify *imapserver.IMAPNotify) *SMTPServer
type SessionLocal ¶
type SessionLocal struct {
// contains filtered or unexported fields
}
func (*SessionLocal) Logout ¶
func (s *SessionLocal) Logout() error
func (*SessionLocal) Mail ¶
func (s *SessionLocal) Mail(from string, opts smtp.MailOptions) error
func (*SessionLocal) Rcpt ¶
func (s *SessionLocal) Rcpt(to string) error
func (*SessionLocal) Reset ¶
func (s *SessionLocal) Reset()
type SessionRemote ¶
type SessionRemote struct {
// contains filtered or unexported fields
}
func (*SessionRemote) Logout ¶
func (s *SessionRemote) Logout() error
func (*SessionRemote) Mail ¶
func (s *SessionRemote) Mail(from string, opts smtp.MailOptions) error
func (*SessionRemote) Rcpt ¶
func (s *SessionRemote) Rcpt(to string) error
func (*SessionRemote) Reset ¶
func (s *SessionRemote) Reset()
Click to show internal directories.
Click to hide internal directories.