Welcome! Log In Create A New Profile


mail proxy encryption to dovecot

Posted by viglu 
mail proxy encryption to dovecot
January 24, 2022 02:06PM

I'm trying to configure mail proxy with postfix and dovecot.
Everything works fine when no ssl come in.
How can I activate that nginx connect to dovecot in my example trough imap port 993(ssl) ?

mail {
server_name mail.example.com;

proxy_pass_error_message on;
proxy_smtp_auth on;
xclient off;

proxy on;
ssl_certificate /opt/nginx/conf/ssl/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /opt/nginx/conf/ssl/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /opt/nginx/conf/ssl/letsencrypt/live/example.com/chain.pem;
ssl_dhparam /opt/nginx/conf/ssl/dhparam.pem;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
#ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

server {
listen 25;
protocol smtp;
smtp_auth none login plain cram-md5;

imap_capabilities "IMAP4rev1" "UIDPLUS";
server {
listen 143;
protocol imap;

# this is working from internet to nginx, but not from nginx to dovecot which excepts only ssl connections
server {
listen 993 ssl;
protocol imap;
starttls on;
imap_auth login plain;

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready