stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
4.52k stars 173 forks source link

[enhancement]: Socks5 Proxy Support #644

Open wilinz opened 1 month ago

wilinz commented 1 month ago

Which feature or improvement would you like to request?

I'd like to see this feature: Socks5 Proxy Support

Is your feature request related to a problem?

I am using frp to map my email server to a server with a public IP. For data security, I don't want to deploy the service on a third-party cloud server. However, the problem is that when I send emails, the IP is the IP of the local server, which breaks the SPF verification. Moreover, it is not safe to add the local IP to the DNS list because this IP is not only used by me. So, is there a way to add socks5 support to the email service to forward my email outbound traffic to the server with the IP specified by SPF?

Code of Conduct

wilinz commented 1 month ago

Additionally, this is very useful for email servers that are behind a firewall, such as the Chinese National Firewall, which will not be able to send mail to servers such as gmail without a proxy.