1
package smtp
2
3
import (
4
"net"
5
6
"github.com/mjl-/mox/dns"
7
)
8
9
// Ehlo is the remote identification of an incoming SMTP connection.
10
type 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
15
func (e Ehlo) IsZero() bool {
16
return e.Name.IsZero() && e.ConnIP == nil
17
}
18