func (s *testServer) VerifyAddress(addr mail.Address) ReplyLine {
for _, block := range s.blockList {
func (s *testServer) VerifyAddress(addr mail.Address) ReplyLine {
for _, block := range s.blockList {
{"ehLO test.TEST", 0, func(t testing.TB, conn *textproto.Conn) { conn.ReadResponse(250) }},
{"mail FROM:<sender@example.com>", 250, nil},
{"RcPT tO:<receive@mail.com>", 250, nil},
{"ehLO test.TEST", 0, func(t testing.TB, conn *textproto.Conn) { conn.ReadResponse(250) }},
{"mail FROM:<sender@example.com>", 250, nil},
{"RcPT tO:<receive@mail.com>", 250, nil},
+ {"RCPT TO:<reject@MAIL.com>", 550, nil},
+ {"RCPT TO:<reject@mail.com>", 550, nil},
{"DATa", 0, func(t testing.TB, conn *textproto.Conn) {
readCodeLine(t, conn, 354)
{"DATa", 0, func(t testing.TB, conn *textproto.Conn) {
readCodeLine(t, conn, 354)