Served by the server through a web interface. Webmin - Linux administration through a web interface. Software router "ArtX router"

jqgrid has 4 data filtering

  1. Option search:true in the parameters of the grid footer. Appears at the appearance of the icon at the footer, pushing on the yak, the search dialog appears in one field. Minusi in the fact that there is only one field, there is a text field for specifying a value and a set of operators for all fields.
  2. Construction

    jQuery("#mysearch" ).filterGrid("#grid_id" , ( ...) )

    It's creating a random panel on the side of the "#mysearch" element. The set of fields at the panel and the control elements for them is static and depends on colModel or on the special filterModel option. The downside of the panel being static (the koristuvach cannot change the number of fields) and the fact that the search engines are forced in the same post-parameters, and not in the json-array. Tse nasty lies on the concept of a universal data server (server-side) for the grid. Also, there is only one operator equal to all minds (equally).

  3. Option multipleSearch:true city ​​footer. At the footer there is a button to ask, a dialogue is pressed on the yak. With whom you can add a word to the dialosis, you can add them to the mind with the mind OR or the mind AND. The downside of this possibility is that the control element for setting the value is selected only for the text field. The operators of the order are also the same.
  4. Possibility tool.

    jQuery("#toolbar") .jqGrid("filterToolbar", (stringResult: true));

    There is another minus in vikoristannі test fields and post operator control (equally). All minds go with one more wild (AND).

Like Bachimo all 4 mechanisms search for a number of shortcomings. There are a lot of clicks and a new smartSearchPanel component.

UNIX-like systems have always been called to the command row, which is why the admins have been vvazhavshiy, and the newcomers bypassed this solution. But the hours are changing, you can learn from a small organization * nix-systems that someone manages. It is necessary to know that the GUI has a number of advantages - sharpness, simplicity in common sense, intelligence and less clarity of pardon. It is not easy to choose among dozens of projects: no matter what the similarity is, all have a different set of functions. Let's get familiar with the most familiar.

cockpit

I’ll look back at the youngest project - youmu is less than two years old. Cockpit is a web-based server management panel with a valid code that is distributed by Red Hat. Appointments for the control of robots and systems, the distribution of services on the basis of containers. For the help of a sensible interface, it’s just a matter of typing the main administrative tasks: here is the launch of that zupinkka of services (systemd), and the setting up of a security extension (setting up LVM, setting up RAID), configuring the network (bonding, VLAN, bridge), managing cloud records, attaching domain, managing koristuvalny SSH keys, real-time traffic monitoring, log reverification and much more. I would especially like to see the possibility of using Docker containers. In order to handle a number of servers from the same web console, you can connect the dashboard to the Dashboard with Kubernetes clusters or OpenShift v3. To countless pluses of Cockpit one can see the ability to win for keruvannya by the server at the same time the terminal and the web browser. In view of other decisions, such a pidhead does not mean daily problems. You can give commands at the console, and see the result at Cockpit, otherwise. Moreover, Cockpit itself has a terminal, so you can control the server from the browser.

The Cockpit web service (Cockpit-ws), installed on the base system and systemd's vicorist socket, allows access to the interface to local cockpits with the help of PAM (define /etc/pam.d/cockpit). On remote systems, you can run an SSH server. For the connection, you can use a login/password link, you can use an SSO login based on Kerberos, or you can use a public key. Peredbacheno possibility to log in to the remote server from the streaming data of the koristuvach.

Help is available for the help of the web panel. The interface is not localized, but, in principle, it does not create any difficulties, so that all the parameters are understood and sounded need to be pressed on the request or to remember the proponed fields.

Minus Cockpit - binding to systemd. Distributions that use a different service manager may not use all features. If you don't want to select all servers and use one interface for easy access to them.

Available from the repository of the Fedora distribution kit from version 21. For free texts, on the project website, you can find items on the repository of Fedora, RHEL/CentOS, Arch Linux and Ubuntu retailers. The version of Ubuntu is not specified, but if you want to restore the link to systemd, you will work without a file in 15.04/15.10. You can run it in early versions that upstart upstart, including the one popular on 14.04 LTS servers, but other functions won't work. Installed:

$ sudo add-apt-repository ppa:jpsutton/cockpit $ sudo apt-get update $ sudo apt-get install cockpit $ sudo apt-get install glib-networking $ sudo /usr/sbin/remotectl certificate --ensure --user= root $ sudo /usr/libexec/cockpit-ws

Optionally, in a row starting cockpit-ws, you can change the port (--port) and block the TLS hack (--no-tls), or rather, change the configuration file cockpit.conf. Under the hour of installation, a self-signed certificate is generated. For promotion, the protocol is HTTPS and port 9090 (https://ip-server:9090). When logged in, the monitoring panel pops up to show graphs of CPU, memory, and I/O disk operations. Below is a server that has Cockpit installed; to take away the data, enough to click for the blessings. We have improved the distribution of six menus, recognized by some of you. To connect a new server, simply select Add Server, enter name or IP. Ensign Log in with my current credential to allow the verification of streaming data for the login. You don't need to fix the work of the Cockpit itself, all the power of the administration is in the Cockpit Guide.

Ajenti


Vesta CP

Promotion available only to members

Option 1. Come to the “site” to read all the materials on the site

Membership with a jointly assigned term grants you access to all materials of the Hacker, to increase the special accumulative discount and allow you to accumulate a professional Xakep Score rating!

At the front article, we could see a different graphical shell for optimizing the work with the server under the Linux kernel. Ale, scho robiti, її її zastosuvannya z quiet chi іnshih reasons not є dolіlnym? Whack the robot at the console?

Luckily, there is one more alternative for Linux - the web interface.

Specially for the administration of Linux, the Webmin program was broken up. Let's just use a web server and type scripts in my Perl to ensure the functionality of the web interface.

Installedwebmin

Information about the repository for installing Webmin on the system is available today. That її need to be added in advance.

For this, it is necessary to open the /etc/apt/sources.list file and add it to the beginning of the next row:

deb http://download.webmin.com/download/repository sarge contrib

Now you can run the Webmin installation with the following command:

apt-get install webmin

apt-get install webmin

Once installed, Webmin will automatically start. The login page is available behind the server address via port 10000 ( server_address:10000)

Entrance to the system is subject to additional public data of a local correspondent, who may have administrative privileges.

Robot zwebmin

After logging in to the system, we will go to the Webmin start page.

This side contains short information about the system (version of Webmin, type of processor, hard disk memory, space on the disk is too small) and a smut menu (roztashovane levoruch).

Webmin should be well-equipped with software modules and functions and, if necessary, it is impossible to describe the work with it within the framework of one article. To that, we will briefly dwell on the main details.

The smut menu is composed of a number of divisions:

  • webmin
    Nalashtuvannya without intermediary Webmin;
  • System
    Information about the system and system adjustments (corystuvacha, processes, services, etc.);
  • Servers
    Management of installed servers (web servers, database servers, etc.)
  • Other
    Take care of the administration that did not appear in other distributions (file manager, only console);
  • Networking
    Nashtuvannya merezhі;
  • Hardware
    Management of hardware security (system hour, storage of disks, printers, etc.);
  • Cluster
    Management of a number of servers, united in a cluster. Webmin is installed only by one of them. The work with others is based on the RPC protocol;
  • Un-usedmodules
    Webmin modules that are not hacked. Modules that have been installed, but for work on the server are the necessary components. How many components will be installed to connect the required modules?
  • Search
    Webmin internal search;
  • viewModule'sLogs
    Webmin module change logs;
  • Systeminformation
    Brief information about the system. Є starting page at the entrance to the system.
  • RefreshModules
    Updates to Webmin modules. Change ceremoniality only after you log out and re-enter the system;
  • logout
    Exit from the system.

When you open the file manager, the root directory of the file system is displayed. For help hyperposilan you can go to those and other folders and open or download files to your computer.

The screenshot below shows the Documents directory in the home directory of one of the correspondents.

This file manager allows you to perform only the simplest operations. Creation of catalogs and text files, editing of text files, creation of archives, unpacking of archives (for example, unzip), uploading of files from a computer to a server and a new pack.

Also, it is possible to change the file manager's files and folders and the access rights to them for the additional interface of the file manager.

This is especially relevant, as it is wrong, that files and folders are created from the vlasnik for the root:root promotion and access rights 755 and 644 are visible.

Insanely, with a look of security, it’s not varto to give us new access to us who are willing. Ale vikoristannya vlasnik for zamovchuvannyam can also solve various problems. For example, due to the fact that the web server has write permissions, the directory with the site has a lot of web programs that can work incorrectly or not work at all.

Therefore, the strategy for accessing the file system can be well thought out.

Work from the console

For robots from the console, the “Text Login” side of the “Others” branch is won.

The black color field exactly mimics the Linux console robot. Because you need access to a great console, Webmin gives you that ability.

For the help of the Open in separate window … button, you can open the console in the browser window.

Robot z

The module for working with Apache is available from the "Servers" branch of the main menu under the "Apache Webserver" link.

On the start page of the module, you can add a list of existing virtual hosts.

When pressing on the pictogram, the instruction from the name of the host is displayed.

In fact, it is nothing more than a web-interface for robots with host configuration files. With this help, you can adjust all the parameters, including redirects (redirects), pardons, resource sharing (for those who know virtual hosting well), etc.

You can also edit the host configuration file manually ("Edit Directives").

The “Create virtual host” tab is used to create a new virtual host and to replace the main settings.

After the creation of the virtual host, the wines will be displayed in the list on the main side of the module and you may be more finely tuned.

Tab "Global configuration" to check the global installation of Apache.

Zocrema, you can edit the server configuration files (Edit Config Files), change the name of the koristuvach group, how to select for Apache robots (User and Group), enable or disable add-on Apache modules (Configure Apache Modules).

Robot z MySQL

The module for working with Apache is available from the "Servers" branch of the main menu under the "MySQL Database Server" option.

The interface of the module is intuitively intelligible.

On the main side, you can configure general MySQL parameters or create or delete the database.

When pressing on the pictogram of the data base, a side with a list of її elements is displayed.

In the future, the visual editor allows you to create tables and appearances (view).

At the time of consumption, it is also possible to select an additional SQL request (button "Execute SQL").

The request can be written manually, or it can be acquired from a SQL script. This allows you to restore the database from a backup copy without special difficulties.

It also supports the possibility of creating backup copies.

The backup copy is saved in the SQL script, but it is necessary to explicitly specify the name of the file at once from the extensions.

Zagal module for working with MySQL, phpMyAdmin does a good job of its capabilities. Therefore, with the help of Webmin, most of the vipadkivs can be found in other programs.

webmin

If necessary, Webmin can be easily Russified.

To change the language interface in Webmin, you need to go to the "Change Language and Theme" option. Then set the "Webmin UI language" jumper to the "Personal choice" position and select the "Russian (RU.UTF-8)" item from the list.

After pressing the “Make changes” button, the ceremonies will change, but visually they will be displayed only after a total re-advancement of the party.

It is also important to note that not all components can support Russian. Take it again.

For example, the module for MySQL robots is russified only a little.

Summary

The Webmin program allows you not only to evacuate the administrator from the main administration of servers under the supervision of Linux, but also to replace the low-level programs with yourself.

However, this functionality is significantly limited by the possibilities of these modules, as installed in the system.

In addition, Webmin significantly compromises the sizable graphical shells not only in terms of expansion, but also in terms of functionality. Still, the web-interface is overwhelmed by the web-interface. However, if you need a graphical shell for a remote administrator, you need to install an additional VNC or RDP server and an external client on the administrator's computer, then Webmin does not care about any browser cream.

For the same reason, with its functionality and ease of installation, the Webmin program has gained wide popularity.

Webmin is not the only alternative to graphical shells and you can work in parallel with them. The choice of a specific environment for work with a power server is faster than the security of specific work environments.

To create a terminal, file (FTP) or mail server on Linux, you need to work with your operating system. Otherwise, it will be difficult to get along. The OS does not require a hard-wired computer. That's why you don't showcase your own resources on the graphic design. Linux distributions can be downloaded from an old PC. Therefore, for the creation of different servers, Linux or Ubuntu Server is often chosen.

A lot of different literature has been written about it. There are thousands of books about Linux in existence. Pratsyuvati bring through the terminal and enter all commands manually. But still, you can build a small Linux server with your own hands, which includes a file share, Web services, and a mail protocol.

Ubuntu Server is based on the Linux operating system. For її work is not needed current processor, vіdmіnna vіdеоkarta аbо large amount of operative memory. With Linux, you can fire up a server on an old laptop. And in the new one there will be all the necessary components: mail, FTP, Web.

You can download a Linux disk image from the Ubuntu.ru website. Choose a version with a server (not Desktop!). The download is passed through the Torrent client. This image needs to be written to a disc or a USB flash drive (for the help of LiveUSB). You can also speed up with a virtual drive.

Ubuntu has a simple interface. There are no other graphical overworlds for him. Qia OS is miraculously approaching, so that the Linux server can be spawned with a hand. With it, the resources of the computer will be consumed by the domain. Adzhe їy for robots is not necessary.

Її installation proceed as follows:

  • Choose the language of that region, in a sack.
  • Guess the administrator's name. Vono vikoristovuєtsya for keruvannya server.
  • Also enter the name of the correspondent in the "Username for your account" field. Under this post, you will be consulting with the Ubuntu tech support.

Vkazuєmo im'ya koristuvacha in Ubuntu

  • Enter password. Confirm yoga.

Enter the password for the oblіkovogo record

  • Specify the domain, as well as the wine number. All services will be on the new one: file (FTP), mail, hosting for sites and so on.
  • Check it out, the system will dock.
  • After all, you will need to propagate the additive components.

Axis is a list of what is necessary for a Linux server and some basic work:

  • Open SSh. Victory for distant administration. Become in good hands, as if you were violating the service of the service from another computer. Also, on a PC with Linux, you can turn on the monitor and video adapter.
  • LAMP. A set of Linux utilities that includes Apache (Web server). MySQL (database) and PHP (movie programming for CMS). Qi components are necessary for the creation of a critical interface.
  • Samba file server. Allows you to configure the exchange of files between computers. If you need an FTP server, select this item.
  • Virtual machine host. Install, as you choose to be able to use the possibilities of virtualization.
  • print server. Merezhevy printer.
  • DNS server. Domain name system With it, you can recognize the IP address on the computer's name and navpacki.
  • Mail Server. Post server.
  • PostgreSQL Database. Object-relational data bases.

Choose those that you need, and confirm the installation. At the first start, you will need to enter the administrator's login and password. The console is displayed. It is similar to the Windows command line and the interface of the MS DOS operating system.

You will need to revisit the appearance of the update. Enter the command sudo apt-get update or sudo apt-get upgrade without paws. After the update, you can start updating all the components of the servers: FTP, mail, Web.

For Ubuntu, the main pseudo-graphical interface is Midnight Commander. This is an analogue of the Norton Commander shell, rozroblenoy for MS DOS. With such an interface it is easier to practice - everything is better, lower at the console.

Launching the Linux terminal

In today's Linux, the console replaces the terminal. To get to the new one:

  1. Open the programs.
  2. Press "Standard".
  3. There will be a terminal.

For the new one, you can enter commands the same way as with Ubuntu Server.

  • To install the LAMP components (which are not available yet), you need to enter the commands sudo apt-get update, sudo apt-get install tasksel and sudo tasksel install lamp-server in sequence. Next, press the Enter key.
  • To get Open SSh, type "sudo apt-get install openssh-server".
  • To install the Samba file server, type "sudo apt-get install samba".

When installing MySQL from the LAMP package, you will need to set an administrator password for SQL.

Local Web Server

For the creation of the Web, the server may have its own IP views. Once LAMP is installed, the Apache test side will be available for this IP address. Tse i є future Internet. Nadalі you can put FTP, data base, mail protocol. To set up a web server:

  • Install phpMyAdmin. For which in the terminal or console enter one by one enter "sudo apt-get install phpmyadmin"

  • Let's do sudo service apache2 restart.
  • Component zavanazhitsya. Apache will be re-uploaded. The next step is to use the version of the operating system.

If you have Ubuntu 13.1 or higher, change the commands:

  1. sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
  2. sudo a2enconf phpmyadmin
  3. sudo /etc/init.d/apache2 reload

Drive them in sequentially one by one, after the skin press Enter.

In Ubuntu 16.04, you need other instructions:

  1. sudo apt-get install php-mbstring php-gettext
  2. sudo phpenmod mcrypt
  3. sudo phpenmod mbstring
  4. sudo systemctl restart apache2

After the introduction of the automatic restart of the service at the address http:///phpmyadmin, the web interface will be available.

  • The configuration and data about it can be found in the Apache server folder "etc/apache2/". Apache2.conf - configuration file for the distribution
  • The directories "mods-available"/"sites-available" and "mods-enabled"/"sites-enabled" contain site mods.
  • Ports.conf has a list of things to eavesdrop on.
  • If you add the word "Stop" after the command "sudo /etc/init.d/apache2", Apache will stop the robot. Yakscho "Start" - start again. Yakshcho "Restart" - revantagize.
  • To independently select a path for saving sites, sequentially enter the terminal "sudo a2enmod rewrite" and "sudo a2enmod userdir".

After making any changes, you need to restart the service with the Restart command.

mail server

To create a mail server on Linux, you already have a domain registration. Also, a static IP is required.

  • Install the Postfix component. To do this, type sudo apt-get postfix at the console.
  • If you are interested, write the command sudo /etc/initd/postfix start. Service is more efficient.
  • Postfix already has parameters that are necessary for full operation with the SMTP protocol. All the same, you can’t make a small nalashtuvannya.
  • Open the file /etc/postfix/main.cf.
  • Look for the new value "mydomain =". After the "=" sign, write the name of the domain.
  • Let's find out "myhostname =". І enter the name of the machine.
  • Now the mail server can overpower other computers, as they are in the same dimension. In order to send correspondence to other domains on the Internet, in the “main.cf” file, find the row “inet_interfaces =”. Put the word "all" after it.
  • Change "mynetworks =" to enter the address range of all computers in your area (for example, 127.0.0.0/8).

As soon as the service is set up correctly, and if all is clear (fixing the IP address, registering the domain), then the Server can accept and receive correspondence. This is how the MX record for your domain is sent to your host.

To view the resource log, type in the "tail -f /var/log/mail/info" command. To remove the reminder, enter "mailq".

File Server

You may need a Linux FTP server to exchange documents and download files. I have a few versions of such resources: vsFTPd, Samba, proFTPd.

We report on vsFTPd. Yogo can be installed and run with one command - sudo apt-get install vsftpd. A little further on, lie down like yours, like that, what kind of service you want to work. You may need administrator rights to change parameters.

  1. As soon as the program is taken up, the system creates a new folder and adds a folder to the home directory, as it is recognized for work with the server folder. The "etc" directory also has the "ftpusers" file. There you can add koristuvachіv, yakim blocked access to files.
  2. After the installation, change the directory, in which files should be, into the “var” folder as soon as possible. For this type of administrator name, write the command "usermod -d /var/ftp ftp &&rmdir /home/ftp".
  3. Create a new group of koristuvachs. For example, "userftp". Instruct addgroup userftp in the console.
  4. Give her a new appearance record (for simplicity, we call that group coristuvacha, however). Link the command "useradd -a /var/ftp -g userftp userftp". She's contagiously creating a koristuvach. To include an essential nickname in the group, instead of "useradd" write "usermod".
  5. It is necessary to come up with a password for the new koristuvachev. Enter "passwd userftp" at the terminal.
  6. Instruct "chmod 555 /var/ftp && chown root:userftp /var/ftp" to give the account access to the root folder of the file server.
  7. Now create a public directory. Sequentially enter mkdir /var/ftp/pub and chown userftp:userftp /var/ftp/pub.

The FTP folder starts offline. Vaughn maє script, which plays the role of a demon. For such functionality, a few commands are available. The stench is entered after the sudo service vsftpd line.

  • Stop and Start. Vimknennya that vіmknennya.
  • Restart and Reload. Restart. Needed for stosuvannya new nalashtuvan. The difference between the teams is that another re-advancement is allowed without a new inclusion.
  • status. Information about the camp.

Further on, setting up the server is done by rewriting the configuration file, which is found in etc/vsftpd.conf. The new one has a simple structure. It's easy to get it off the new one. Wanting for whom you need a lot of knowledge. Before changing the file, you can create a backup copy. In order to show pardons, everything could be renewed. Enter the command "cp /etc/vsftpd.conf /etc/vsftpd_old.conf" and the information will be saved.

If so, you can proceed to editing.

  • Next to "listen=" write "YES". Todi the server is pracyuvatime for the independent mode.
  • "Local_enable" Allows entry of local corylists.
  • "Write_enable" gives you access to your home directories.
  • "Anonymous_enable". You can protect the rights of anonymous correspondents, so put NO. There is also the "no_anon_password" option - log in anonymously without a password. Її it is also possible to fence.

If you want to run a public server, after the “listen” row, you need to add a few additional parameters.

  • "max_clients". Number of one-hour days.
  • "Idle_session_timeout" and "data_connection_timeout". Timeout sessions.
  • "ftpd_banner". Vital information for veterans. You can write, for example, Hello!.

Terminal server

Terminal server on Linux for business and office purposes, all computers in a single unit. It’s even more convenient if the organization can access the terminal from any PC (which can have access) to the organization. This shows great opportunities for remote administration.

For such a task, LTSP is the Linux Terminal Server Project. The program is in the standard Ubuntu package. Sob її insert:

  1. Enter the command "ltsp-server-standalone".
  2. Then write "apt-get update && apt-get install ltsp-server-standalone".
  3. Check, while everyone is interested and refreshed.
  4. Now you need to install the client system. Instruct "ltsp-build-client".
  5. Let's run "ltsp-build-client-dist trusty-arch i386-fat-client-desktop lubuntu-desktop".
  6. Type in the debootstrap command, and the distribution will automatically fire up into the opt/ltsp/i386 directory.

Linux Server can be run on weak computers. That is why it is often victorious for the creation of servers and that distant administration. Run mail services, FTP files, terminals on your operating system.

For the correct operation of the mail server, it is important that the DNS zone is set up correctly. We have already discussed some aspects related to the DNS system, and today we report on this issue more. The setting up of the DNS zone is to be carried out before the preparation of the operations before the opening of the mail server and in it to lay down the operation of the electronic mail system.

Create an e-mail address and send it to the deakim koristuvachs. In addition, by distributing the names of coristuvachs with coma, you can work in such a way that the names of the addresses were sent by mail to the decals of oblique records:

Let's save it and close the file.

Viklichte will attack the command, so that the vikonati will be transformed:

sudo postmap /etc/postfix/virtual

Let's restart the service to activate the changes.

sudo service postfix restart

Testuvannya nalashtuvan

In order to reconcile, the server can correctly override the mail, send the sheet from the original email address to one of the creations of pseudonyms or one of the cloud records on the server.

For example, the sheet was sent to:

Now add information to the rest of the table:

INSERT INTO `examplemail`.`virtual_aliases`
(`id`, `domain_id`, `source`, `destination`)
VALUES
(‘1’, ‘1’, ‘ ’, ’ ’);

Close MySQL:

Postfix patching

Let's go straight to the Postfix parameters. It is necessary for us that the mail client should immediately correct the names entered in the base of the koristuvachiv and having processed the SMTP registration. For the first time, we create a backup of the configuration file, so that in different ways you can turn to the standard settings:

cp /etc/postfix/main.cf /etc/postfix/main.cf.orig

Now the file with configurations is displayed:

nano /etc/postfix/main.cf

Instead of nano, you can tweak any text editor that is convenient for you.

Let's comment on the TLS parameters, as well as add some others. Here are the quotes for free SSL:

#TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:$(data_directory)/smtpd_scache
#smtp_tls_session_cache_database = btree:$(data_directory)/smtp_scache
smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
smtpd_use_tls=yes
smtpd_tls_auth_only = yes


After that, let’s add more low parameters:

smtpd_sasl_type=dovecot
smtpd_sasl_path=private/auth
smtpd_sasl_auth_enable=yes
smtpd_recipient_restrictions=
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination

We also need to comment on setting up mydestination and changing it to localhost:

#mydestination = primer.ru, namehost.primer.ru, localhost.primer.ru, localhost
mydestination=localhost

The myhostname parameter can replace our domain name:

myhostname=namehost.primer.ru

Now we add a row for superseding the alert on all domains listed in the MySQL tables:

virtual_transport = lmtp:unix:private/dovecot-lmtp

We can add three more parameters so that Postfix can instantly connect with MySQL tables:

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf

Customizing MySQL and Postfix files

We create a file

mysql-virtual-mailbox-domains.cf

We add to the new qi value:

user=usermail
password = mailpassword
hosts=127.0.0.1
dbname=examplemail
query = SELECT 1 FROM virtual_domains WHERE name='%s'


Restart Postfix:

service postfix restart

Test domain for Postfix:

postmap -q primer.ru mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf

Let's create one more file:

nano /etc/postfix/mysql-virtual-mailbox-maps.cf
user=usermail
password = mailpassword
hosts=127.0.0.1
dbname=examplemail
query = SELECT 1 FROM virtual_users WHERE email='%s'

Rezavantazhuemo Postfix:

service postfix restart

Let's revisit Postfix:

postmap -q mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf

If everything is set up correctly, it can appear

Create the rest of the file - for aliases:

nano /etc/postfix/mysql-virtual-alias-maps.cf
user=usermail
password = mailpassword
hosts=127.0.0.1
dbname=examplemail
query = SELECT destination FROM virtual_aliases WHERE source='%s'

service postfix restart


Wake up test:

postmap -q mysql:/etc/postfix/mysql-virtual-alias-maps.cf

We need backup copies for seven files, so we can change:

cp /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.conf.orig


Tse srazok command. We introduce six more of these for these files:

/etc/dovecot/conf.d/10-mail.conf
/etc/dovecot/conf.d/10-auth.conf
/etc/dovecot/dovecot-sql.conf.ext
/etc/dovecot/conf.d/10-master.conf
/etc/dovecot/conf.d/10-ssl.conf

Open the first file:

nano /etc/dovecot/dovecot.conf

Reverse, chi commented on this parameter:

Include_try /usr/share/dovecot/protocols.d/*.protocol
protocols = imap lmtp

Include_try /usr/share/dovecot/protocols.d/*.protocol line

Editing the next file:

nano /etc/dovecot/conf.d/10-mail.conf

We know the mail_location row, we know the comment, we set the next parameter:

mail_location = maildir:/var/mail/vhosts/%d/%n

We know mail_privileged_group, put it there:

mail_privileged_group = mail

We are reviewing access. We enter the command:

Access can look like this:

Create a folder for the skin registered domain:

mkdir -p /var/mail/vhosts/primer.ru

We create this group with identifier 5000:

groupadd -g 5000 vmail
useradd -g vmail -u 5000 vmail -d /var/mail

Changing Vlasnik Koristuvach VMail:

chown -R vmail:vmail /var/mail

Editing the next file:

nano /etc/dovecot/conf.d/10-auth.conf

Let's comment on the text of the authentication and add the line:

disable_plaintext_auth=yes

Change the next parameter:

Today, if you can without any problems take a look at a number of mail-free screens, just registering the oblique records on the services of "Yandex", "Mail.Ru" and similar ones, such a power, like setting up a mail server, don't worry about the rich coristuvachiv.

Prote buvayut takі moments, if you want to know the deyaki aspects of that food will be korisno.

If it is necessary

The situation, if the elementary knowledge of the development of the post is necessary for the peresichny koristuvachev, is not so rich. І Tim no less, be it from them, you can be, if:

  • As a result, it was decided to switch from a browser-based to a visionary program. Even more rich in why so clients are better: they allow you to send a mail program with an organizer, a notepad, as well as more gnuchko cheruvat address book and administrate notifications.
  • Due to non-delivery problems with the mail client robot, all the bugs were fixed. Then you just need to install a mail server. Nalashtuvannya yogo sing does not have a lot of strength for an hour, but in a different situation you can be left without a post to finish a trival hour.
  • No-cost postal screens may be underestimated by the administration, moreover, without explanation. That one looks like such a screen in the eyes of business partners, frankly, disrespectful. And to that it is possible to make visions on the server.
  • If the provider is propagating a postal screen, then why not hurry up with such a proposition.

Setting up a Windows mail server

The main parameters of e-mail, such as DNS, IP data and similar data, are seen directly by the provider.

In order to start tweaking Windows OS, it is necessary either to get the client suitable for this operating system, or to go to the help of the clients. For the cob it is necessary to start a new oblіkovy record. As a rule, you are also asked to enter your її name, come up with a password and login to enter.

It is possible, necessary, to enable support for Windows mail services through the "Visual and software installation" panel of the E-mail Services component installation section.

To create a new screen, you will need to enter your password.


For SMTP parameters, you need to specify port number 25, and for POP3 server - 110. If the provider has other parameters, then enter them. In that case, if the client does not send the entered port number, it is necessary to leave out the address, seen by the provider, at the items "Server for incoming notifications" (or POP3 or IMAP) and "Im'ya for the external notification server" (sound less SMTP).

More fine-tuning of the Windows mail server is rich in why you should lie in the form of a vicorous mail program, but the principle of work will be your own. Retail can be different for graphical interface options and for menu items.

Transfer from the non-cash mail to the client's vision

Sometimes it is necessary to stay on a cost-free, prote zastosovuvaty like a client with a lot of supplements. You can show on the butt and nailed the mail for the Yandex service. The setup of the mail server will be carried out with the following parameters.

1. IMAP protocol settings for input alerts:

  • send server addresses: imap.yandex.ru;
  • in the parameters of the password for the login, select the SSL;
  • port number is specified as 993.

2. To set up holiday reminders for the IMAP protocol:

  • as the server address smtp.yandex.ru;
  • in the parameters to secure the login, you also need to install SSL;
  • port number next install 465.

3. What is the use of the POP3 protocol for sending notifications:

  • like the server address pop.yandex.ru;
  • how to parametrize the protection of a wicked connection, SSL is required;
  • port number is specified as 995.

4. To remind you that the POP3 protocol is enforced:

  • how the server address is sent smtp.yandex.ru;
  • in the parameters of the zahistu for the victorious connection, it is required again to use SSL;
  • the port number is set to 465.


Yak im'ya koristuvach, as well as the address and password slid to put in the same address and password in the post on "Yandex".

Mail.Ru server setup

Sometimes it is necessary to find out about the installation of the Mail.Ru mail server. In general, the custom looks the same, as it was described in the Yandex post. Ale parameters when looking at it like this:

  • full email addresses (in the format with the @ sign, for example);
  • for the IMAP server, imap.mail.ru is specified;
  • for the SMTP server, specify smtp.mail.ru;
  • im'yam koristuvacha є povna e-mail address in vіd vzhe іsnuyuchoї post;
  • password - the same password as sent;
  • IMAP: number 993 (for SSL/TLS protocols);
  • POP3: number 995 (for SSL/TLS protocols);
  • SMTP: number 465 (for SSL/TLS protocols);
  • It is necessary to indicate what it is necessary to authorize the server in the management lists, in the authentication parameters - a simple password, without encryption.


Zagalom, nalashtuvannya say so themselves, like in the case of Yandex, or even more with the addition of the prefix mail. For other cost-free servers, you should set the parameters themselves, but also with different prefixes.

As you can see, there is nothing foldable in such food, like setting up a mail server, nothing. Zim zavdannyam can go back to navit pochatkіvets. Then you can be sure that you can’t get away with a critical failure without a hitch.

The manager of the office sends mail servers for additional Linux-tools, Apache, SQL, which means more deep knowledge of information technologies.