Wietse Venema via postfix-users: >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?
Previously, command in terminal * telnet gmail-smtp-in.l.google.com 25 will falied, get * Trying 142.250.101.27... * ^C I 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.
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org