its a bug(?), when you equals if len(to) == s.srv.MaxRecipients? if recipient will be more than 100 like 101?
if s.srv.MaxRecipients == 0 { s.srv.MaxRecipients = 100 } if len(to) == s.srv.MaxRecipients { s.writef("452 4.5.3 Too many recipients") } else {