Koozali.org: home of the SME Server

Internet access

Offline ansentry

  • ***
  • 118
  • +0/-0
Internet access
« on: December 31, 2015, 09:43:16 PM »
I have an sme 9.0 server running as server only - used as file server and domain controller for users - to get on the internet users have to enter user name and password into a proxy server . Is there anywhere in the SME 9.0 I can enter user name and password so that server gets update notification and I am then able to do updates via server-manager.

Any help would be greatly appreciated.
Regards,

John A

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Internet access
« Reply #1 on: December 31, 2015, 09:58:40 PM »
Update notifications (along with a lot of other useful information) are automatically sent to the admin user.  If you want that user's email to go somewhere else, you can set it to forward to any email address you like in the server-manager.
......

Offline ansentry

  • ***
  • 118
  • +0/-0
Re: Internet access
« Reply #2 on: December 31, 2015, 10:10:15 PM »
Thanks Dan for your reply the problem is that the server has no internet access. See the example of email received by server.  I need to be able to enter user name and password into server that stays there permanently. If that is not possible I need a list of web addresses to add to the proxy server "white list"


Quote
/etc/cron.daily/sa_update:

http: GET http://spamassassin.apache.org/updates/MIRRORED.BY request failed: 500 Can't connect to spamassassin.apache.org:80 (Bad hostname 'spamassassin.apache.org'): 500 Can't connect to spamassassin.apache.org:80 (Bad hostname 'spamassassin.apache.org')
error: no mirror data available for channel updates.spamassassin.org
channel: MIRRORED.BY contents were missing, channel failed
http: GET http://yerp.org/rules/MIRRORED.BY request failed: 500 Can't connect to yerp.org:80 (Bad hostname 'yerp.org'): 500 Can't connect to yerp.org:80 (Bad hostname 'yerp.org')
error: no mirror data available for channel sought.rules.yerp.org

Thanks again for you help.
Regards,

John A

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Internet access
« Reply #3 on: December 31, 2015, 10:30:17 PM »
Ah, yes, I completely misread your post.  My apologies.

I'm not aware of any direct way to enter a username/password in SME for a proxy server, but it should be possible with the appropriate custom template fragments.  For yum, for example (which would provide software updates), https://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html suggests that the following should work, done as root:

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/yum.conf
cd /etc/e-smith/templates-custom/etc/yum.conf
nano 30proxy

In the new file, enter this:
Code: [Select]
# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty

...replacing the proxy server, username, and password as appropriate.  Then,

Code: [Select]
expand-template /etc/yum.conf
That should take care of yum.  You might as well disable spamassassin, if this machine isn't acting as a mail server.  You'd still need to take care of clamav, though.  It looks like a similar template fragment for freshclam.conf would do the job.

Isn't it possible to whitelist the IP/MAC address of your SME server on the proxy server?
......

Offline ansentry

  • ***
  • 118
  • +0/-0
Re: Internet access
« Reply #4 on: January 01, 2016, 12:08:10 AM »
Thanks again Dan for your adivce.
Quote
Isn't it possible to whitelist the IP/MAC address of your SME server on the proxy server?

I have nothing to do with the proxy server administration but will send and email to the administrator and see if that is possible, that would solve the problem.

If not will give your other idea a shot.

Happy New Year
Regards,

John A