Re: sa-update through proxy

2016-05-04 Thread RW
On Wed, 4 May 2016 08:57:59 -0400
Reinier Carmona Lizana wrote:

> Hi
> 
> Someone has managed to sa-update through a proxy?

It should work if you have full internet DNS access, some networks
behind proxies only have local DNS. If in doubt try this:

$ dig +short  mirrors.updates.spamassassin.org txt
"http://spamassassin.apache.org/updates/MIRRORED.BY; 

Also try running sa-update -D for more information


> I tried the following ways :
> 
> 
> 1- I set on my /etc/bash.bashrc
> 
> export HTTP_PROXY=http://myserver:myport/
> export FTP_PROXY=http://myserver:myport/
> 
> Another way:
> 
> 2- I set on my
> 
> alias sa-update='env http_proxy=http://myserver:myport/
> https_proxy=http://myserver:myport/  sa-update'

IIRC it uses curl, wget or fetch if it finds one of them, and will
fall-back to perl. I'm guessing there's a reason for not
preferring perl.

I think  curl and wget use the lower-case versions and fetch prefers
upper-case, but should fall-back to lower.



Re: sa-update through proxy

2016-05-04 Thread John Hardin

On Wed, 4 May 2016, Ian Zimmerman wrote:


On 2016-05-04 08:13 -0700, John Hardin wrote:


alias sa-update='env http_proxy=http://myserver:myport/
https_proxy=http://myserver:myport/  sa-update'


Lose the "env"?


Why?  Apart from using an extra process, this should work exactly the same.


{reads man page} Ah, I wasn't aware env did that, I thought it was just a 
dump utility (or, at least, that's the only way I've ever used it). I'm 
used to just prepending local env sets before the command.


No idea why that wouldn't work, then.

--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 jhar...@impsec.orgFALaholic #11174 pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
  When I say "I don't want the government to do X", do not
  automatically assume that means I don't want X to happen.
---
 4 days until the 71st anniversary of VE day


Re: sa-update through proxy

2016-05-04 Thread Ian Zimmerman
On 2016-05-04 08:13 -0700, John Hardin wrote:

> > alias sa-update='env http_proxy=http://myserver:myport/
> > https_proxy=http://myserver:myport/  sa-update'
> 
> Lose the "env"?

Why?  Apart from using an extra process, this should work exactly the same.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.


Re: sa-update through proxy

2016-05-04 Thread John Hardin

On Wed, 4 May 2016, Reinier Carmona Lizana wrote:


Hi

Someone has managed to sa-update through a proxy? I tried the following ways
:


1- I set on my /etc/bash.bashrc

export HTTP_PROXY=http://myserver:myport/
export FTP_PROXY=http://myserver:myport/


Try lowercase variable names there.


Another way:

2- I set on my

alias sa-update='env http_proxy=http://myserver:myport/
https_proxy=http://myserver:myport/  sa-update'


Lose the "env"?


And nothing, any suggestion?


--
 John Hardin KA7OHZhttp://www.impsec.org/~jhardin/
 jhar...@impsec.orgFALaholic #11174 pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
  Maxim XXXVII: There is no 'overkill.' There is only 'open fire' and
'time to reload.'
---
 4 days until the 71st anniversary of VE day


sa-update through proxy

2016-05-04 Thread Reinier Carmona Lizana
Hi

Someone has managed to sa-update through a proxy? I tried the following ways
:


1- I set on my /etc/bash.bashrc

export HTTP_PROXY=http://myserver:myport/
export FTP_PROXY=http://myserver:myport/

Another way:

2- I set on my

alias sa-update='env http_proxy=http://myserver:myport/
https_proxy=http://myserver:myport/  sa-update'


And nothing, any suggestion?