1package smtp
2
3import (
4 "net"
5
6 "github.com/mjl-/mox/dns"
7)
8
9// Ehlo is the remote identification of an incoming SMTP connection.
10type Ehlo struct {
11 Name dns.IPDomain // Name from EHLO/HELO line. Can be an IP or host name.
12 ConnIP net.IP // Address of connection.
13}
14
15func (e Ehlo) IsZero() bool {
16 return e.Name.IsZero() && e.ConnIP == nil
17}
18