diff --git a/mailvalidate/role_account.go b/mailvalidate/role_account.go index 0e1742f..32b65b1 100644 --- a/mailvalidate/role_account.go +++ b/mailvalidate/role_account.go @@ -30,7 +30,7 @@ func IsRoleAccountCheck(email string, roleAccounts *RoleAccounts) (bool, error) } for _, value := range roleAccounts.Contains { - if strings.Contains(value, user) || strings.Contains(user, value) { + if strings.Contains(user, value) { return true, nil } } diff --git a/mailvalidate/role_emails.toml b/mailvalidate/role_emails.toml index 999dd46..0fc4bb1 100644 --- a/mailvalidate/role_emails.toml +++ b/mailvalidate/role_emails.toml @@ -50,6 +50,7 @@ matches = [ 'lab', 'labs', 'md', + 'mt', 'no', 'pay', 'pd', @@ -455,7 +456,6 @@ contains = [ 'moreinfo', 'msstaff', 'msteachers', - 'mt', 'music', 'myplex', 'namecheap',