Monthly Archives: July 2015

Proxy in Ubuntu

There are two ways of configuring proxy in Ubuntu:

1. Using GUI:

  1. click Unity Launcher and type in “Network”.
  2. Select application and navigate to “Network Proxy “tab on the left hand side.
  3. Select “Manual” for “Method” and specify your proxy address.

2. Using /etc/environment file which is responsible for system-wide environment variables that are available to all processes. e.x:
http_proxy="http://fully_qualified_domain_name:port_number"
https_proxy="https://fully_qualified_domain_name:port_number"
ftp_proxy="ftp://fully_qualified_domain_name:port_number"
socks_proxy="socks://fully_qualified_domain_name:port_number"

apt-get 

To configure apt-get proxy edit configuration file:
vim /etc/apt/apt-conf
and include the following:
Acquire::http::Proxy "http://fully_qualified_domain_name:port_number"

Advertisements

Test forwarding mail server

  1. Establish connection with the server:
    telnet <hostname> 25
  2. Greet with the domain.
    helo domain.com
  3. Specify sender:
    mail from: name@domain.com
  4. Specify receiver:
    rcpt to: name@domain.com
  5. Type of the message:
    data
  6. Content of the message:
    subject: <content>
    .  (complete with full stop)
  7. Exit
    quit