Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for proxy protocol #238

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

romantomjak
Copy link

@romantomjak romantomjak commented Apr 30, 2022

This is a small quality of life improvement to transparently support clients that use the proxy protocol. This is useful if go-guerilla is serving clients behind a proxy such as HA Proxy, AWS ELB, Traefik, etc.

Trying 111.222.333.444...
Connected to mail.somehost.com.
Escape character is '^]'.
220 mail.somehost.com SMTP Guerrilla(unknown) #1 (1) 2022-04-30T18:23:04Z
554 5.5.1 Unrecognized command

The "unrecognized command" response is due to the proxy server sending the proxy protocol header

@romantomjak romantomjak marked this pull request as ready for review April 30, 2022 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant