diff --git a/src/groups.js b/src/groups.js index cc17bcfba..80d34429d 100644 --- a/src/groups.js +++ b/src/groups.js @@ -64,6 +64,9 @@ function validateGroupname(name) { if (RESERVED.indexOf(name) !== -1) return new GroupError(GroupError.BAD_FIELD, 'name is reserved'); + // app emails are sent using the .app suffix + if (name.indexOf('.app') !== -1) return new GroupError(GroupError.BAD_FIELD, 'name pattern is reserved for apps'); + return null; }