Using https://github.com/emersion/go-milter/ Example: https://github.com/foxcpp/maddy/blob/master/internal/check/milter/milter.go