Webmin Tutorial: Linux Server Configuration

Source: Internet
Author: User
Tags imap domain name server mx record

For many users who are used to windows, it may be difficult to configure the Linux server by using the command line when they are new to Linux. Today, we will explain how to use Webmin, a graphical Configuration tool in Linux, to conveniently configure Linux servers on the web interface.

1. Configure the bind dns Server

1. System-> "Software package"-> Search and install the corresponding "Software package" (upload file & install package)

2. Choose "hardware"> "network configuration"> "dns customer"> change "Resolution order" to "dns, hosts"> Save return

Select "service"-> "bind 8 dns server"-> you can see that it consists of "global server options", "existing dns region", and other parts

Bind can be installed by default as a high-speed cache server (there are root zone, 127.0.0 reverse, localhost forward) --> the installation sequence is bind-9.1.3-4-> bindconf-1.6.1-> caching-nameserver7.2-1

3. Create a master server

Select "bind dns server"-> select "new primary region"-> "region type" and select "Forward" in "existing region ", enter "test.com" in the "Domain Name/network" Domain Name, enter "master.test.com" in the master server, enter "root @ localhost" in the email address, and press "new ".

In "existing region", select "new primary region"> "region type" and select "reverse". In "Domain Name/network", enter "192.168.0 ", enter "master.test.com" as the master server, and enter "root @ localhost" as the email address.> press "new ".

Add a forward address record to the master server-> select "test.com"-> select "a record"-> enter "www" in "name ", enter "192.168.0.100" in the address and press "add ".

You can also add "cname record", "Mail Server mx record", and "Auxiliary Domain Name Server ns record"

After adding all records, return to "bind dns server" and press "application changes" to complete configuration changes.

4. Create a slave server

Select "existing region"> "new sub-region"> select "forward resolution" and enter the domain name "abc.com ", enter the "master server" Address "192.168.0.101"-> press "new" to complete-> press "save" and return "bind dns server"-> press "application change" to configure effective

Use the same steps to set "Reverse Record of slave server"

Ii. postfix email server configuration

1. Install postfix

On the "webmin" Page, choose "system"> "software package"> "install a new package"> "from upload file"> "install ". postfix-1.1.7-2.i386.rpm, imap-2001a-10.i386.rpm

2. Configure the start of the postfix Server

In "system", select "bootup and shutdown"-> select "postfix"-> change "start at boot time" to "yes"-> press "save" to return

In "server", select "extended internet services"-> "imap" and "pop3", respectively ", change "service enable" to "yes"-> Save and return-> press "applay changes" to make the settings take effect (equivalent to service xinetd restart)

3. register an email server on dns

(Note: 1. After adding the host name, press "apply changes" to make the configuration take effect. 2. If a complete host name is written on the server, it must end)

4. Configure postfix

In "server", select "postfix configuration"-> select "general options"-> set "what domain to use in outbound" to "use domainname" to use the domain Name of the current email server the domain name of the email sender; set "what domains to receive mail for" to "whole domain" to indicate that the current mail server receives all emails from the entire domain; Set "network interfaces for processing ing mail" to "all ", all NICs are used to receive emails. Set "hostname of this mail system" to enter "mail.test.com" for the host name of the current mail server "; in "local internet domain name", enter the domain name "test.com" where the current host is located; retain the default value for other items-> press "save and apply ".

5. Add a user account to the email server

In "webmin", "system", "users and groups"-> select "local groups" and press "create a new group"-> enter "mailuser" in "group name" -> select "create a new user" in "local user"-> enter "mailuser1" in "username ", enter "/home/mailuser1" in "home directory" and "normal password" in "password ", in "group membership", select "mailuser"-> for "existing group" of "primary group" and click "create" to create a user.

5. email alias and virtual domain

Email alias:

In "webmin", select "postfix configuration"-> select "mail aliases"-> select "create a new alias"-> set" alias databases used by the local delivery agent "and" alias databases built by newaliases command "are" hash: /etc/postfix/aliases "-> select" create a new alias "-> on the" alias properties edition "Page, enter" mailuser3 "in" alias ..." Enter "mailuser2" in (mailuser3 is a nonexistent account alias to mailuser2 is an existing account, so emails sent to mailuser3 are automatically forwarded to mailuser2)

Virtual domain of the email:

In "postfix configuration" of "webmin" "server"> select "virtual domain"> set "domain mapping lookup tables" to "hash: /etc/postfix/virtual "-> select" save and apply "-> enter" virtual domains "and select" new mapping "to create a ing-> in" edit a map" set "name" to "@ newtest.com ", "maps ..." For "@ test.com" (ing all emails sent to @ newtest.com to @ test.com) --> save by "save mapping"

  • 2 pages in total:
  • Previous Page
  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.