{"id":284,"date":"2008-08-09T08:50:00","date_gmt":"2008-08-09T03:20:00","guid":{"rendered":"http:\/\/ankitsharma.blog\/?p=284"},"modified":"2020-10-17T01:02:24","modified_gmt":"2020-10-16T19:32:24","slug":"making-your-linux-machine-multi-server","status":"publish","type":"post","link":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/","title":{"rendered":"Making your Linux machine Multi-server"},"content":{"rendered":"\n<p>Many of us want to have our own server, some for just trying out things, some for their home networks , even small business network or in schools &amp; colleges. The first thing that comes to our mind while thinking about setting up a server is cost. Though various free VPS &amp; Domain services do exists but they do not have desired control over the server. If the need is duly private then I can suggest you some ways out here to set up your own <strong>ftp<\/strong>, <strong>http<\/strong> , <strong>sql<\/strong> and <strong>mail<\/strong> <strong>server<\/strong> with <strong>smtp<\/strong> and <strong>pop3\/imap<\/strong> <strong>protocol<\/strong>. This post only deals with Linux as the base environment. So no <em><strong>windoze<\/strong><\/em> users here.<\/p>\n\n\n\n<p>First step is to choose a specific distribution with which you are most comfortable. If you are a <strong>rpm<\/strong> guy then I suggest you to go for <strong>Redhat Enterprise Linux<\/strong> or <strong>Centos<\/strong>. After selecting the distro get it running up on you target machine. Now when your machine has been set up install the following packages via add\/remove software.<\/p>\n\n\n\n<ul><li>Apache For http<\/li><li>Postfix For smtp<\/li><li>Dovecot For pop3\/imap<\/li><li>Mysql For mysql<\/li><li>Vsftpd For ftp<\/li><li>system-switch-mail<\/li><\/ul>\n\n\n\n<p>Setting up Apache is quite simple. Just start <strong>httpd <\/strong>service on your machine. If you need to further modify its setting then go to <em>\/etc\/httpd\/conf\/httpd.conf<\/em>.<\/p>\n\n\n\n<p>For setting up MySQL server refer to my earlier post on <a href=\"http:\/\/ankitsharma.blog\/setting-up-mysql-on-linux\/\"><em>Setting up MySql on Linux<\/em>.<\/a><\/p>\n\n\n\n<p>For the ftp server just start VsFTPd service on your machine.<\/p>\n\n\n\n<p>The following procedure implies for mail server setup.<\/p>\n\n\n\n<p>First of all edit your PostFix server settings.<\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\">Go to <em>\/etc\/postfix <\/em>and open main.cf in a text editor.<\/p>\n\n\n\n<p>Then search for the following keys in the file.<\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\"><em>inet_interfaces = all<br>mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain<br>home_mailbox = Maildir\/<\/em><\/p>\n\n\n\n<p><em><br><\/em>Un-comment all these lines and in the system-switch-mail window select postfix.<br>Then start the postfix service.<br>Here your <em>smtp <\/em>protocol server has been set up.<\/p>\n\n\n\n<p>Now to set up pop3\/imap server open <em>dovecot.conf<\/em> located in <em>\/etc<\/em> and look out for the following keys.<\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\"><em>protocols = pop3 pop3s imap imaps<br>mail_location = maildir:~\/Maildir\/<br>pop3_uidl_format = %08Xu%08Xv<br>imap_client_workarounds = delay-newmail outlook-idle netscape-eoh<br>pop3_client_workarounds = outlook-no-nuls oe-ns-eoh<\/em><\/p>\n\n\n\n<p>Un-comment these lines and change as required.<\/p>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color\">64 bit users should add <em>login_process_size = 64<\/em> in file <em>\/etc\/dovecot.conf.<\/em><\/p>\n\n\n\n<p>Now start the dovecot service and your pop3\/imap server is up.<\/p>\n\n\n\n<p class=\"has-background has-luminous-vivid-amber-background-color\"><em><strong>Note: <\/strong><\/em>To start a service type <strong>service start<\/strong> in your shell prompt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many of us want to have our own server, some for just trying out things, some for their home networks , even small business network or in schools &amp; colleges. The first thing that comes to our mind while thinking&#8230; <\/p>\n","protected":false},"author":1,"featured_media":328,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,16],"tags":[38,35,40,43,24,29,42,39,34,41],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Making your Linux machine Multi-server &#187; Ankit Sharma<\/title>\n<meta name=\"description\" content=\"Making your Linux Laptop Multiserver, Web Server , MySQL , Mail Server , FTP\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Making your Linux machine Multi-server &#187; Ankit Sharma\" \/>\n<meta property=\"og:description\" content=\"Making your Linux Laptop Multiserver, Web Server , MySQL , Mail Server , FTP\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Ankit Sharma\" \/>\n<meta property=\"article:published_time\" content=\"2008-08-09T03:20:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-16T19:32:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ankitsharma.blog\/wp-content\/uploads\/2008\/08\/linuxmultiserversetup.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1277\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ankit Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ankit Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\"},\"author\":{\"name\":\"Ankit Sharma\",\"@id\":\"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918\"},\"headline\":\"Making your Linux machine Multi-server\",\"datePublished\":\"2008-08-09T03:20:00+00:00\",\"dateModified\":\"2020-10-16T19:32:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\"},\"wordCount\":408,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918\"},\"keywords\":[\"Apache\",\"CentOS\",\"Dovecot\",\"IMAP\",\"Linux\",\"MySQL\",\"POP3\",\"Postfix\",\"RedHat\",\"VSFTPd\"],\"articleSection\":[\"Linux\",\"technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\",\"url\":\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\",\"name\":\"Making your Linux machine Multi-server &#187; Ankit Sharma\",\"isPartOf\":{\"@id\":\"https:\/\/www.ankitsharma.blog\/#website\"},\"datePublished\":\"2008-08-09T03:20:00+00:00\",\"dateModified\":\"2020-10-16T19:32:24+00:00\",\"description\":\"Making your Linux Laptop Multiserver, Web Server , MySQL , Mail Server , FTP\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ankitsharma.blog\/#website\",\"url\":\"https:\/\/www.ankitsharma.blog\/\",\"name\":\"Ankit Sharma\",\"description\":\"technology | food | cars | lifesyle | rants\",\"publisher\":{\"@id\":\"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918\"},\"alternateName\":\"ankitsharma\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ankitsharma.blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918\",\"name\":\"Ankit Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ankitsharma.blog\/wp-content\/uploads\/2021\/11\/cropped-ankitsharma-logo1.png\",\"contentUrl\":\"https:\/\/www.ankitsharma.blog\/wp-content\/uploads\/2021\/11\/cropped-ankitsharma-logo1.png\",\"width\":415,\"height\":68,\"caption\":\"Ankit Sharma\"},\"logo\":{\"@id\":\"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/www.ankitsharma.blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Making your Linux machine Multi-server &#187; Ankit Sharma","description":"Making your Linux Laptop Multiserver, Web Server , MySQL , Mail Server , FTP","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/","og_locale":"en_US","og_type":"article","og_title":"Making your Linux machine Multi-server &#187; Ankit Sharma","og_description":"Making your Linux Laptop Multiserver, Web Server , MySQL , Mail Server , FTP","og_url":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/","og_site_name":"Ankit Sharma","article_published_time":"2008-08-09T03:20:00+00:00","article_modified_time":"2020-10-16T19:32:24+00:00","og_image":[{"width":1920,"height":1277,"url":"https:\/\/www.ankitsharma.blog\/wp-content\/uploads\/2008\/08\/linuxmultiserversetup.jpg","type":"image\/jpeg"}],"author":"Ankit Sharma","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ankit Sharma","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/#article","isPartOf":{"@id":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/"},"author":{"name":"Ankit Sharma","@id":"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918"},"headline":"Making your Linux machine Multi-server","datePublished":"2008-08-09T03:20:00+00:00","dateModified":"2020-10-16T19:32:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/"},"wordCount":408,"commentCount":0,"publisher":{"@id":"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918"},"keywords":["Apache","CentOS","Dovecot","IMAP","Linux","MySQL","POP3","Postfix","RedHat","VSFTPd"],"articleSection":["Linux","technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/","url":"https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/","name":"Making your Linux machine Multi-server &#187; Ankit Sharma","isPartOf":{"@id":"https:\/\/www.ankitsharma.blog\/#website"},"datePublished":"2008-08-09T03:20:00+00:00","dateModified":"2020-10-16T19:32:24+00:00","description":"Making your Linux Laptop Multiserver, Web Server , MySQL , Mail Server , FTP","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ankitsharma.blog\/index.php\/making-your-linux-machine-multi-server\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.ankitsharma.blog\/#website","url":"https:\/\/www.ankitsharma.blog\/","name":"Ankit Sharma","description":"technology | food | cars | lifesyle | rants","publisher":{"@id":"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918"},"alternateName":"ankitsharma","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ankitsharma.blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/37b04ecf3989b3c285db5048cc61a918","name":"Ankit Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/image\/","url":"https:\/\/www.ankitsharma.blog\/wp-content\/uploads\/2021\/11\/cropped-ankitsharma-logo1.png","contentUrl":"https:\/\/www.ankitsharma.blog\/wp-content\/uploads\/2021\/11\/cropped-ankitsharma-logo1.png","width":415,"height":68,"caption":"Ankit Sharma"},"logo":{"@id":"https:\/\/www.ankitsharma.blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.ankitsharma.blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/posts\/284"}],"collection":[{"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":5,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":326,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/posts\/284\/revisions\/326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/media\/328"}],"wp:attachment":[{"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ankitsharma.blog\/index.php\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}