mail: remove queue proxy

this has never worked well
This commit is contained in:
Girish Ramakrishnan
2026-03-31 11:36:13 +02:00
parent e7c3d797be
commit 58f5a17a83
2 changed files with 0 additions and 7 deletions

View File

@@ -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

View File

@@ -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);