Skip to content

Instantly share code, notes, and snippets.

@josnidhin
Last active October 28, 2021 15:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josnidhin/4afedb498fe92d160304a57416fe8f63 to your computer and use it in GitHub Desktop.
Save josnidhin/4afedb498fe92d160304a57416fe8f63 to your computer and use it in GitHub Desktop.
Nginx as SMTP Proxy.
http {
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
root /var/www;
location /auth_server {
add_header Auth-Server 127.0.0.1;
add_header Auth-Port 2525;
return 200;
}
}
}
mail {
server_name localhost;
auth_http localhost/auth_server;
smtp_auth none;
xclient off;
server {
listen 25;
protocol smtp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment