diff --git a/src/routes/mailserver.js b/src/routes/mailserver.js index 6d4fb3c20..494269115 100644 --- a/src/routes/mailserver.js +++ b/src/routes/mailserver.js @@ -65,10 +65,6 @@ async function proxyAndRestart(req, res, next) { }); } -async function queueProxy(req, res, next) { - proxyToMailContainer(6000, req.path.replace('/', '/queue/'), req, res, next); -} - async function getLocation(req, res, next) { const [error, result] = await safe(mailServer.getLocation()); if (error) return next(BoxError.toHttpError(error)); @@ -91,7 +87,6 @@ async function setLocation(req, res, next) { export default { proxy, proxyAndRestart, - queueProxy, setLocation, getLocation diff --git a/src/server.js b/src/server.js index 66c8d461b..564f06da0 100644 --- a/src/server.js +++ b/src/server.js @@ -404,8 +404,6 @@ async function initializeExpressSync() { router.post('/api/v1/mailserver/virtual_all_mail', token, authorizeAdmin, routes.mailserver.proxyAndRestart); router.get ('/api/v1/mailserver/usage', token, authorizeMailManager, routes.mailserver.proxy); - router.use ('/api/v1/mailserver/queue', token, authorizeAdmin, routes.mailserver.queueProxy); - router.get ('/api/v1/mail/:domain', token, authorizeMailManager, routes.mail.getDomain); router.get ('/api/v1/mail', token, authorizeMailManager, routes.mail.listDomains); router.post('/api/v1/mail/:domain/enable', json, token, authorizeAdmin, routes.mail.setMailEnabled);