Previously, command in terminal * telnet gmail-smtp-in.l.google.com 25
will falied, get * Trying 142.250.101.27... * ^C I just configure my vpn server info on Shadowsocks and let Shadowsocks listen port 1080, and configure Proxychains to route traffic to port 1080. Then in terminal, * proxychains telnet 142.250.101.27 25 will work, get * ProxyChains-3.1 (http://proxychains.sf.net) * Trying 142.250.101.27... * |S-chain|-<>-127.0.0.1:1080-<><>-142.250.101.27:25-<><>-OK * Connected to 142.250.101.27. * Escape character is '^]'. * Connection closed by foreign host. What I want to know is whether it is possible to integrate Proxychains at some stage before Postfix to easily implement SOCKS5 proxy for SMTP traffic? Based on the AI assistant’s suggestion, I tried creating a new executable file smtp_socks in /usr/lib/postfix/sbin and filled it with the following content: * #!/bin/bash * proxychains /usr/lib/postfix/sbin/smtp "$@" Then config in main.cf * smtp_transport=smtp_socks And restarted Postfix. However, the log will indicate that SMTP cannot be executed manually, and the mail transport will be unavailable. I believe I might be doing something wrong, but as an amateur I’m not sure where to try integrating proxychains(or other socks5 proxy tool) in Postfix. Any suggestions would be greatly appreciated. ________________________________ From: Wietse Venema via Postfix-users <postfix-users@postfix.org> Sent: Monday, August 26, 2024 3:48 To: Postfix users <postfix-users@postfix.org> Subject: [pfx] Socksifying Postfix Jyan Ren via Postfix-users: > Dear Postfix Support Team, > Sorry to interrupt, but I hope this email finds you well. > I'm deploying postfix on my vps, but my ISP has blocked outbound traffic on > port 25. To bypass this restriction, I am considering using a VPN based on > the socks5 protocol to forward my SMTP traffic. I would like to know if this > approach is feasible. (I also have a standalone vpn service in addition to my > vps) > I have already configured Shadowsocks and Proxychains on my host, and Telnet > can now connect to Google?s mail service on port 25 (which was previously > inaccessible without the VPN proxy). Could you please advise if it is > possible to configure Postfix to route my SMTP traffic through the VPN proxy? > Thank you very much for your assistance! I am not familiar with proxychains and shadowsocks. What is heeded to make telnet to a remote port 25 work? Did you have to set any environment variables? Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org