This commit is contained in:
Mechiel Lukkien
2023-01-30 14:27:06 +01:00
commit cb229cb6cf
1256 changed files with 491723 additions and 0 deletions

17
smtp/ehlo.go Normal file
View File

@ -0,0 +1,17 @@
package smtp
import (
"net"
"github.com/mjl-/mox/dns"
)
// Ehlo is the remote identification of an incoming SMTP connection.
type Ehlo struct {
Name dns.IPDomain // Name from EHLO/HELO line. Can be an IP or host name.
ConnIP net.IP // Address of connection.
}
func (e Ehlo) IsZero() bool {
return e.Name.IsZero() && e.ConnIP == nil
}