[GH-ISSUE #92] proxy support #22

Closed
opened 2026-02-26 18:32:59 +03:00 by kerem · 4 comments
Owner

Originally created by @steom on GitHub (Oct 17, 2022).
Original GitHub issue: https://github.com/decke/smtprelay/issues/92

Please consider to add http proxy / socks5 proxy support to connect to smtp server

Originally created by @steom on GitHub (Oct 17, 2022). Original GitHub issue: https://github.com/decke/smtprelay/issues/92 Please consider to add http proxy / socks5 proxy support to connect to smtp server
kerem closed this issue 2026-02-26 18:32:59 +03:00
Author
Owner

@decke commented on GitHub (Nov 23, 2022):

Could you please describe your use case? I don't get what you want to do.

<!-- gh-comment-id:1325301529 --> @decke commented on GitHub (Nov 23, 2022): Could you please describe your use case? I don't get what you want to do.
Author
Owner

@steom commented on GitHub (Nov 23, 2022):

Sending request to external smtp when the internet connection is via SOCKS or HTTPS proxies

<!-- gh-comment-id:1325306839 --> @steom commented on GitHub (Nov 23, 2022): Sending request to external smtp when the internet connection is via SOCKS or HTTPS proxies
Author
Owner

@QuantumDisposition commented on GitHub (Dec 23, 2022):

I second the Socks5 case. It is needed. Rarely any MTA can properly use a proxy. By simple googling seems like only Exim can. And Exim is a combine, hardly lightweight with easy config.

Without such features like socks5 support, what is your relay really useful for? A 10-lines long config OpenSmtpd can do simple relays. Can't do Socks5 though. Your relay maybe can.

Use case? Any proxing or torifying for any dissident operated smtp in countries like Russia or Iran.

<!-- gh-comment-id:1364398568 --> @QuantumDisposition commented on GitHub (Dec 23, 2022): I second the Socks5 case. It is needed. Rarely any MTA can properly use a proxy. By simple googling seems like only Exim can. And Exim is a combine, hardly lightweight with easy config. Without such features like socks5 support, what is your relay really useful for? A 10-lines long config OpenSmtpd can do simple relays. Can't do Socks5 though. Your relay maybe can. Use case? Any proxing or torifying for any dissident operated smtp in countries like Russia or Iran.
Author
Owner

@decke commented on GitHub (Dec 24, 2022):

Feel free to use any alternative smtpd that works best for you. smtprelay was planned with a very specific usecase and simplicity in mind. For sure it will never be a replacement for a full blown smtpd.

Socks5 support would need to patch smtp.go to setup the socks connection but that is already a forked and extended copy of net/smtp because they refuse new features to that package. So probably it's easier to look around for a suitable smtp library that already supports socks.

<!-- gh-comment-id:1364481139 --> @decke commented on GitHub (Dec 24, 2022): Feel free to use any alternative smtpd that works best for you. smtprelay was planned with a very specific usecase and simplicity in mind. For sure it will never be a replacement for a full blown smtpd. Socks5 support would need to patch smtp.go to setup the socks connection but that is already a forked and extended copy of net/smtp because they refuse new features to that package. So probably it's easier to look around for a suitable smtp library that already supports socks.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/smtprelay#22
No description provided.