We have a Mailcow server running behind an Nginx Proxy Manager (NPM) reverse proxy. To configure SSL for Mailcow, i have disabled automatic Let’s Encrypt certificate generation in Mailcow by setting SKIP_LETS_ENCRYPT=y
in the mailcow.conf file. Then i manually copied the SSL certificate and private key from Nginx Proxy Manager to the appropriate directories in Mailcow:
Certificate (fullchain6.pem) → /opt/mailcow-dockerized/data/assets/ssl/cert.pem
Private Key (key6.pem) → /opt/mailcow-dockerized/data/assets/ssl/key.pem
After updating the certificates, i restarted the relevant Mailcow containers (postfix-mailcow, nginx-mailcow, dovecot-mailcow) and even all containers to ensure the changes took effect.
However, i’m encountering issues with SMTP connectivity when configuring mail clients:
IMAP Configuration : Works fine.
SMTP Configuration :
Some mail clients (e.g., em-client) detect an issue but offer options to fix it.
The macOS Mail client on some MacBooks fails entirely to connect to the server.
iOS devices allow mailbox setup through a profile, but the profile is flagged as unsigned, and subsequent attempts to retrieve mail result in the error:
Cannot Get Mail. The mail server “mail.avivir.ru” is not responding. Verify that you have entered the correct account info in Mail settings.
All mailcow porst are redirected through mikrotik rounter with NAT rules, except for 80 and 443, which are redirected through the nginx proxy manager.
These are the only changes i made to the server. i didnt change any other settings, including DNS configurations.
Sending/receiving mails with Sogo worked and still working without problems.
Adding mailboxes to iOS and mac os wasn’t a problem before doing these changes, except for the client profile being flagged as “Unsigned” i couldnt find the reason before and it didnt bother me or my collegues.
mailcow.conf