【问题标题】:Postfix relayhost communication through Squid proxy?通过 Squid 代理进行 Postfix 中继主机通信?
【发布时间】:2021-02-11 15:43:32
【问题描述】:

我在专用网络中运行 postfix,外部通信只能通过 squid 代理进行。我的中继主机是 AWS SES。有没有办法通过 squid 代理进行中继主机通信?

我一直在研究 rinetd 和 ssconnect。我认为我们可以根据post 使用ssconnect 来做到这一点,但我找不到为此在 ubuntu 上安装的软件包。

【问题讨论】:

    标签: postfix-mta squid


    【解决方案1】:

    这是一个旧帖子,希望这仍然可以帮助。它基于从德语翻译而来的this post

    您今天可以找到 sconnect here

    这是一个小程序,您可以使用它通过代理进行 ssh - 特别是通过 socks 或 HTTP 代理:

    要使其可运行,您可以:

    $ gcc -o sconnect connect.c
    $ cp sconnect /usr/local/bin (or your a folder where it is globally reachable) 
    $ nano ~/.ssh/config
    

    然后像这样编辑 ssh 配置:

    # Usage with Socks proxy
    ProxyCommand /usr/local/bin/sconnect -4 -S your-socks-server:1080 %h %p
    
    # Usage with HTTP Proxy
    ProxyCommand connect /usr/local/bin/sconnect -4 -H proxy.local.net:8080 %h %p
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-23
      • 2011-09-26
      • 1970-01-01
      • 1970-01-01
      • 2017-08-09
      • 2013-08-03
      • 1970-01-01
      相关资源
      最近更新 更多