diff --git a/src/apps.js b/src/apps.js index b0920d28c..14cb218b5 100644 --- a/src/apps.js +++ b/src/apps.js @@ -103,7 +103,7 @@ AppsError.BAD_CERTIFICATE = 'Invalid certificate'; // https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names // We are validating the validity of the location-fqdn as host name function validateHostname(location, fqdn) { - var RESERVED_LOCATIONS = [ constants.ADMIN_LOCATION, constants.API_LOCATION, constants.SMTP_LOCATION, constants.IMAP_LOCATION, constants.MAIL_LOCATION ]; + var RESERVED_LOCATIONS = [ constants.ADMIN_LOCATION, constants.API_LOCATION, constants.SMTP_LOCATION, constants.IMAP_LOCATION, constants.MAIL_LOCATION, constants.POSTMAN_LOCATION ]; if (RESERVED_LOCATIONS.indexOf(location) !== -1) return new Error(location + ' is reserved'); diff --git a/src/constants.js b/src/constants.js index 96a5f1a0c..0be32b4bf 100644 --- a/src/constants.js +++ b/src/constants.js @@ -7,6 +7,7 @@ exports = module.exports = { SMTP_LOCATION: 'smtp', IMAP_LOCATION: 'imap', MAIL_LOCATION: 'my', // not a typo! should be same as admin location until we figure out certificates + POSTMAN_LOCATION: 'postman', // used in dovecot bounces ADMIN_NAME: 'Settings',