Last active
October 28, 2021 15:28
-
-
Save josnidhin/4afedb498fe92d160304a57416fe8f63 to your computer and use it in GitHub Desktop.
Nginx as SMTP Proxy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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