question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy mail server

See original GitHub issue

Is your feature request related to a problem? Please describe.

I am trying to proxy a mailserver but the task seams to be impossible at the moment with NPM whit this is possible to do with Nginx.

Describe the solution you’d like

I’d like the option to stream proxy mail serves as described here: https://docs.nginx.com/nginx/admin-guide/mail-proxy/mail-proxy/ I tried to stream the ports but the protocoles imap, smpt and pop3 are not supported by NPM.

Describe alternatives you’ve considered

The only alternative that I can think is manually configure the mailserver with the “Custom Nginx configuration” option but the reason why I am using NPM is because I don’t know how to deal with Nginx directly.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:54
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sanderlvcommented, Nov 25, 2022

Is there and progress on this implementation or fearure request? Would love to see this natively in NPM. Having my mail services beging NPM with an ssl cert. (The described docker tip is too complex for me to understand).

0reactions
vadikonline1commented, Dec 15, 2022

Create with portainer:

Image: docker.io/mailserver/docker-mailserver:edge Ports: 25:25 143:143 465:465 587:587 993:993 Volume: contrainer: /etc/letsencrypt -> volume: (indicate the volume from npm where the certificates are included)
Network: hostname: mail DomainName: example.vom Environment variables: ENABLE_FAIL2BAN=1 SSL_TYPE=manual PERMIT_DOCKER=network ONE_DIR=1 ENABLE_POSTGREY=0 ENABLE_CLAMAV=0 ENABLE_SPAMASSASSIN=0 SPOOF_PROTECTION=0 FETCHMAIL_POLL=300 POSTGREY_AUTO_WHITELIST_CLIENTS=5 POSTGREY_DELAY=300 POSTGREY_MAX_AGE=35 POSTGREY_TEXT=Delayed by Postgrey SASLAUTHD_MECH_OPTIONS= SSL_CERT_PATH=/etc/letsencrypt/live/npm-X/fullchain.pem SSL_KEY_PATH=/etc/letsencrypt/live/npm-X/privkey.pem TLS_LEVEL=modern Container capabilities: NET_ADMIN SYS_PTRACE

After starting the container, apply the following commands in the console:

  1. setup email add admin@example.com password (from adding accounts)
  2. setup config dkim
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring NGINX as a Mail Proxy Server
Simplify your email service and improve its performance with NGINX or NGINX Plus as a proxy for the IMAP, POP3, and SMTP protocols....
Read more >
NGINX as Mail Proxy Server: A Beginner's Guide - Medium
NGINX mail proxy supports SMTP, IMAP and POP3 protocols and can proxy email client traffic to one of the upstream mail servers. It...
Read more >
SMTP proxy - Wikipedia
SMTP proxies are specialized mail transfer agents (MTAs) that, similar to other types of proxy servers, pass SMTP sessions through to other MTAs...
Read more >
How to Setup Nginx as Mail Proxy on Ubuntu Server
NGINX can proxy IMAP, POP3, and SMTP protocols to one of the upstream mail servers that host mail accounts and thus can be...
Read more >
Regular SMTP and SMTP Proxy Server - Xeams
The built-in SMTP Proxy server can only be used if you have another server in your network that accepts emails. It sits in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found