http proxy:suggestion

Julian Field MailScanner at ecs.soton.ac.uk
Fri Feb 22 16:38:41 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



shuttlebox wrote:
> On Fri, Feb 22, 2008 at 3:49 PM, David Lee <t.d.lee at durham.ac.uk> wrote:
>   
>>  Julian: A suggestion to assist large sites which sit behind tight
>>  firewalls...
>>
>>  The "cron.daily" scripts "update_phishing_sites" and "update_spamassassin"
>>  need to reach out to remote websites.  But at some large sites, the
>>  general practice is for web browsers to divert via a cache service. In
>>  this context the MS "update*" scripts are web clients (pseudo-browsers)
>>  and so the site-friendly way for the sites to work would be to honour any
>>  "http_proxy" environment variable.
>>
>>  That is almost, but not quite, already in place.  (Run manually, with
>>  explicit "http_proxy", it works.)
>>
>>  What still seems absent is recognising "http_proxy" when run under "cron".
>>
>>  Those scripts already do:
>>    if [ -f /etc/sysconfig/MailScanner ] ; then
>>         . /etc/sysconfig/MailScanner
>>    fi
>>
>>  But that file seems oriented to variables specific to "MailScanner.conf".
>>
>>  Could there also be a "/etc/sysconfig/MailScannerEnv" (or similar) whose
>>  purpose would be for environment variables for scripts?
>>     
>
> I'm all for supporting environment variables like http_proxy but if
> the scripts should be overhauled it would be better if they were made
> in a more Unix generic way. Sysconfig isn't even a Linux standard but
> a Red Hat one. :-)
>   
I believe SuSE use /etc/sysconfig too. I don't use a proxy at all, so 
have no easy way to test any of this. If you want to modify the scripts 
and send me the modified ones, I'll take a look at your changes certainly.


Jules

- -- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.0 (Build 2158)
Comment: (pgp-secured)
Charset: ISO-8859-1

wj8DBQFHvvqSEfZZRxQVtlQRAnZIAKCW54n0/4xt1ao5dlXo4hZiCGY4bQCdFfRl
hvDVXq/zCQe+5Ynrs6DF6U0=
=+2S+
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list