Welcome! Log In Create A New Profile

Advanced

SMTP STARTTLS with outbound mail proxy

Posted by kamal.hamroun 
SMTP STARTTLS with outbound mail proxy
September 22, 2017 08:22AM
Hello Everyone,

I'm looking to implement an SMTP Proxy for OUTBOUND mail with NGINX. The backend stream servers are remote.

SMTP clients ---------> NGINX SMTP Proxy (2501) -----------------> Remote SMTP server (25) without Authentication.

The NGINX SMTP Proxy works fine with regular SMTP clair text traffic on port 25, but it's not working with remote SMTP with STARTTLS on port 587.

I'm getting this error
[error] 7424#7424: *6 upstream sent invalid response: "530 #5.7.0 Must issue a STARTTLS command first" while reading response from upstream, client: .xxx.xxx.xxx.xxx using starttls, server: 0.0.0.0:2501

Can you please hlep me to resolve this ?

Thank you in advance
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
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