Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, November 23, 2016

How To Install and Configure a Postfix Mail Server On Linux


This informative article is related to installation and configuration of postfix Mail Server. First of all, your mind will click, what is email server.



How To Install and Configure a Postfix Mail Server On Linux




Email Server:

An e-mail server is a computer in your network which act as your virtual post office. A mail server is like memory which store e-mail. It is a database of user accounts that the mail server identify and will deal with locally, and communications modules.

Features of Postfix Mail Server On Linux:

You have many choices to install a Mail Server like on Outlook,Linux etc.In this article you will learn about installation of mail server on Liux.Why linux is my choice.There are number of reasons which are given below.
  • More efficient mail solution
  • Expand repertoire of Linux skills
  • User friendly environment
  • Support 1-300 environments

Requirements:

In order to install Postfix mail server on Linux, you have to require following below.
1). install Postfix on an Ubuntu Server(10.04 OR 9.10)
2). Fake Domain
Domain must be FQDN.I will use the fake domain mail.mymail.com.

How To Install Postfix Mail Server:

The method which is I am going to share with you is too much simple.No complexity is involved.Just you have to follow given below steps.

1) Open up a terminal window or log in if you are using GUI-less server.
2) Enter the command sudo apt-get install postfix.
3) The installation will also automatically start the Postfix daemon for you.
4) Enter Command " telnet localhost 25" to make sure you can connect to your Postfix server
5) Something like below text will appear.

Trying 127.0.0.1...
Connected to www.mymail.com.
Escape character is '^]'.
220 localhost.localdomain ESMTP Postfix (Ubuntu)
6) To make sure that you are connected with domain enter below command. 

telnet www.mymail.com 25

7)Now it is time to start configuration as you have finished installation process.Follow below steps to configure postfix mail server on Linux.

How configure postfix mail server on Linux:
Follow below steps to configure postfix mail server on Linux.

Open configuration file: 

Postfix mail server has one main configuration file /etc/postfix/main.cf. In this file you can do many configurations. Open this file up in text editor like Nano.
Configuration section:

Below configuration section will appear when you will open the file.

myhostname =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost =
mynetworks =
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

Editing in configuration file:


Some editing is needed in configuration file as have mentioned below procedure.

myhostname:
This is the hostname of your machine. Do not enter full name like If your machine hostname is mail.mydomain.com you will only use mydomain.

mydestination:

mydestination specify that which destination will be deliver locally by machine.The default is:

mydestination = $myhostname localhost.$mydomain localhost

mynetworks:
mynetworks define destinations that mail can be relayed from. You have to enter any networks entry as given below

mynetworks = 127.0.0.1/8

The above entry is secure and defines local machines only.

mynetworks = 127.0.0.1/8 192.168.100.1/24

The above entry would authorize local machines and your internal network addresses
Above two mention entries can cause error as dhcp addresses change constantly To avoid error enter given below network entry. Because of this I have used the following, specialized entry which will avoid this issue:

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

If your mail server serves up mail to your entire domain, then enter below entery.

mydomain = mydomain.com

Replace mydomain.com with your real domain.
Restart mail server
Save the configuration file and restart your mail server by entering below command.
sudo /etc/init.d/postfix reloadThat's it.you have done. Your mail server will running.

Users:

You should have a user name which is compatible with every email address you need. If your server has a GUI you can just use the GUI tool for this. If your server is a GUI-less server then follow below command for username:

                                    sudo useradd -m USERNAME

USERNAME is the real name of the user.

Password:

Enter password twice by given below command.

                                         sudo passwd USERNAME
USERNAME is real name of user.

Test Your Server:

Now its time to check the server. Send an email to your newly created server.To check eitehr email has send log in and use the Alpine command line email reader.For this you have to install sudo apt-get install alpine.
Above method which I have shared with you,show that its too much easy to Setting up a mail server .If you have liked this post and have nay problem then share with us.
Read more »

Thursday, July 28, 2016

3 Ways to Setup Anonymous Web Browsing on Linux

3 Ways to Setup Anonymous Web Browsing on Linux


3 Ways to Setup Anonymous Web Browsing on Linux

This straightforward but instructive article will assist you to surf the web furtively and secretly while using Firefox on Linux.To do this you just have to install “Tor” and “privoxy” tools.

Tor:

It is free open source software which helps you to protect in opposition to a form of network supervision that threatens individual liberty and privacy, private business actions and relationships, and affirm sanctuary recognized as traffic analysis.

1. Privoxy:
It is a non-caching web proxy with superior filtering abilities for pleasing to the eye privacy, running HTTP cookies, scheming right to use and other detestable Internet garbage. Privoxy has a stretchy arrangement and can be modified to ensemble person needs

Three Easy Steps:
1. Set-up Tor and Privoxy: 

You can rapidly install Tor and Privoxy on Ubuntu with the given below command:

“$ sudo apt-get installs tor privoxy”.

2. Configure Privoxy:
Edit /etc/privoxy/config by file using your preferred text editor.
For example , we will use gedit:$ sudo gedit /etc/privoxy/config

Then, overwrite the entire content of /etc/privoxy/config with this configuration file:

Generally, this file goes in /etc/privoxy/config
forward-socks4a / 127.0.0.1:9050 .
confdir /etc/privoxy
logdir /var/log/privoxy
actionsfile standard
actionsfile default
actionsfile user
filterfile default.filter

debug 4096
debug 8192

user-manual /usr/share/doc/privoxy/user-manual
listen-address 127.0.0.1:8118
toggle 1
enable-remote-toggle 0
enable-edit-actions 0
enable-remote-http-toggle 0
buffer-limit 4096

Next, restart Privoxy with this command: “$ sudo /etc/init.d/privoxy restart”,

3. Install Firefox Torbutton plug-in:

Torbutton has a button to strongly and simply to allow or disallow the browser’s use of Tor. It is presently the only add-on that will securely manage your Tor browsing to avoid IP address form hacking cookie leakage, and general privacy hacking. Provoke Firefox and install the Torbutton plug-in. After installation, restart Firefox and you are ready to surf the web anonymously and secretly.





Read more »

Tuesday, July 5, 2016

Top Facts About Linux Operating System

Linux is the one of best operating system. The Linux Kernel Version written in C programming language. Linux is the high security operating system. The Famous company known as Google, Facebook & twitter use Linux Operating system. According to the latest report 9 out of 10 of the world's supercomputers run Linux. Now a days Linux running on mobile devices, The Enterprise, Web infrastructure, Data centers, Super computing other devices.

Top Facts About Linux Operating System 



Source: Visual.ly 
Read more »

Friday, July 1, 2016

Five Linux Cool Tricks

Five Linux Cool Tricks

Five Linux Cool Tricks (for fun)

1. Download a website:
Here is a simple way to download a whole website without actually visiting all the pages. First up all go into the directory you wish to download the whole website using the command line and type in the following

wget-r-p-k-E http://www.example.com/dir/

Note -E is to create .html extensions to XHTML or text files. Omit if not needed.It is however not possible for all type of sites

2. Five ways to logout from bash
1.logout
2.exit
3.CTRL+d
4.export TMOUT=1
5 kill -9 $
Don't use the fifth one when you are the root since it will kill some essential processes.

3. To change the root password:
The first step is to reboot the system. When grub loads up, move the arrow key up/down to highlight and select the Linux kernel and press e to edit the GRUB commands before booting. Next, move the arrow key up/down and select the Linux kernel and press e again. Give a single space and then type the word ‘single’ at the end of the line. Hit ENTER key. Then press b to boot up with the single keyword, which will boot Linux into single user maintenance mode. Now you will get a command prompt ready to accept your commands.Voila!!!! you are done. Now just enter the ‘passwd’ comand to reset your password (without prompting for the older one). Reboot and you are now the ROOT.However this is not working in all linux distros.

4. Play videos in RAR file without extracting:
Just type in command line
unrar p -inul /path/to/movie_folder/movie.name.r00 | vlc -
Video will start playing from your vlc player in just a few seconds. You can use other players instead of VLC if you wish.

5. Text based browsing:
You may use elinks or links in text mode to browse websites from a console. Here’s how to get started 
elinks http://www.google.com/
This will open up our site in your browser. haven't tried anyone of them..!
-->
Read more »