[Buildroot] FW: [PATCH 1/1] toolchain-buildroot: create a relocatable one

Thomas De Schampheleire patrickdepinguin at gmail.com
Sun Jun 15 14:06:23 UTC 2014


On Sun, Jun 15, 2014 at 2:16 PM, Baruch Siach <baruch at tkos.co.il> wrote:
> Hi Noam,
>
> On Sun, Jun 15, 2014 at 11:46:03AM +0000, Noam Camus wrote:
>> > See the EXAMPLE section of the git-send-email(1) man page (online at
>> > http://git-scm.com/docs/git-send-email).
>>
>> I followed EXAMPLE section but /usr/libexec/git-core/git-send-email always
>> complains:
>> Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls maildomain=xxx.ezchip.com Debug=0 port=587 at /usr/libexec/git-core/git-send-email line 1041.
>>
>> This is Net::SMTP->new() that always returns NULL.
>> I used CPAN to install latest Net::SMTP.
>>
>> Any ideas?
>
> Your friendly corporate firewall might be blocking outgoing traffic to port
> 587. Try doing 'telnet smtp.gmail.com 587'. If you get timeout, this is most
> likely the reason. Your best options is to talk to your IT department to let
> you access to outgoing port 587. If that fails I can think of two workarounds:
>
> 1. Use an external server you can control from withing your corporate network
>    (SSH would be best, though I guess your firewall blocks SSH as well)
>
> 2. Tunnel SMTP over HTTP somehow. This is quite ugly.
>
> Others on this list may have better solutions for this frustrating problem.

If it's purely a proxy problem, then you can use socat to let smtp go
through the tunnel.
Set up git to use localhost as smtp server, and a port of your choice,
for example 10587, and set up a socat instance:

socat TCP4-LISTEN:$localport,reuseaddr,fork
PROXY:$proxy:$remotehost:$remoteport,proxyport=$proxyport,resolve

where localport=10587, remotehost=smtp.gmail.com, remoteport=587,
proxy=proxy.yourcompany.com proxyport=8080 (whatever is the right port
for your proxy)

Same trick can be used to forward IRC through the proxy.

Best regards,
Thomas


More information about the buildroot mailing list