How to Install and Configure a Postfix Mail Server with Dovecot on Linux Ubuntu

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody watch this video to find out how to install and configure a postfix mail server with Dell cut how to configure the mail server to prevent your mail from falling into the spam folder how to add DNS entries such as SPF dkim and dmorc [Music] creating a mail server on linux-based machines could be one of the most important things that every system administrator should do if this is the first time you configure your server you're going to face a lot of aspects that have to be considered during setup in today's video I'll take you through the initial server configuration we'll discover how to install a postfix mail agent and a dovecode mail server and how to configure them for your emails to circulate properly postfix is a free and open source MTA which stands for mail transfer agent that can be used to root and deliver electronic mail on a living system dovcom is a mail deliver agent created primarily with security in mind I'll show you how to configure it as an IMAP or POP3 server Hello friends if you need to recover deleted data view restore removed browsing history admon software products will help you follow the link in the description download the necessary program for free install it and analyze the disk the utility will show you the data you cannot cover so you'll be able to view it or get it back in our Channel and blog you will find solutions to any problem from installing an operating system or configuring it to fixing possible bugs and errors are optimized in Mobile gadgets our Specialists will answer any questions you ask in your comments under the videos or articles to begin the installation you'll need a properly configured Linux Ubuntu server with a fully qualified domain name or fqdn for short on the server you need to add a non-root user but with pseudo Privileges and open corresponding ports in your network I already have a server with the required settings and its ports are configured properly so the only thing left to do is to add a user and start installing mail applications to add a user open the terminal by pressing the key shortcut Ctrl alt t and run this command set a new password for this user and leave other values without changes you can specify any additional information if you need to now you have a new user account with standard privileges however sometimes you may have to perform administrative tasks as a root user to avoid having to sign out of your regular account and then sign into a root user account you can configure the so-called super user or root privileges for your regular user account this will let you run commands with administrator privileges by just placing the word sudo before the command to add privileges you need to add a new user into the pseudo system Group by running this command foreign the next thing to do is to set a true domain name for your server for this purpose there is a special command hostname CTL [Music] after that you need to add MX and a records for the domain in the DNS control panel these records will show to the other mail agents that your domain is in charge of delivering electronic mail open the DNS control panel and add these records [Music] here you need to specify your server's public IP address now you can begin the installation of a postfix mail agent here is the command you need to use in the postfix configuration window that opens click OK after that the system will suggest you to choose mail configuration type select Internet site and press enter in the next window type the domain name to be used when sending electronic mail after postfix is installed it will start automatically and create a configuration file you can check both fixed version and service status by using the following commands [Music] if you need to change the configuration use this one [Music] and click ok here select Internet site and press enter in the next window type the domain name to be used when sending electronic mail then add the mail recipient specify other destinations to accept mail Force synchronous updates on mailq no I will leave local network settings without changes mailbox size limit 0. local address extension character Plus internet protocols to use all now let's check if your mail server is connected to Port 25 by running this command [Music] the result displayed by the system indicates that the connection has been established successfully to close the connection type quit also you can use a mail application to test the mail service however it should be installed first so around the installation command [Music] here is the command to use specify the email address to send your mail to subject and contents and then press Ctrl D to send as you can see the mail service works and the email was delivered but it ended up in the spam folder I'm going to show you what settings should be changed to prevent emails from being classified as spam after sending the first email the program will create a file with the user's name in the vir mail folder in this file all in common and outgoing mail will be recorded this recording format is known as Mbox to use the mail deal format which divides emails to separate files which are then moved between directories depending on the user's actions you need to make some changes to the configuration file foreign or run this command in this case mail will be stored in separate files and can be found by this path foreign [Music] as a result the mail server is running you can send and receive mail but it can hardly do without an opportunity to send mail by SMTP this protocol is already supported in postfix but it has no authentication by default to add authentication support you should use downcot as a bonus you'll get the opportunity to view your mail by POP3 and IMAP protocols first of all you need to install the dovecodes service itself and here is the command to use foreign service to configure.com you should edit the configuration file to open it you need one more command you can choose which protocol to use it could be POP3 pop3s secure POP3 IMAP or IMAP s which is secure IMAP IMAP s and pop3s are more secure the conventional IMAP and buff 3 since the use SSL encryption for their connections as soon as you have chosen a protocol to use correct the next line in the file dovecup.conf add or edit this line press Ctrl X and then yes to save it enter now let's check how buff 3 works go to a checkup service enter the data then click to stop the test as you can see the test is successful all right we have configured the mail service now we need to make sure that the mail doesn't end up in the spam folder and for that purpose you should add a few more DNS records open the DNS control panel add SPF dmarc and the key mirrors [Music] thank you to have SPF and demarc running all you need is to add their DNS records but for a decim to work it has to be installed in the server domain Keys identified mail or deakin for short is an email authentication method designed to detect forged sender addresses in a male known as email spoofing the game enables the user to check if any mail was actually sent from the stated domain and here is the command you need to install the package foreign after that you should create a certificate with the help of open the Kim gen key create a directory for Keys using this command and use another command to generate a key here you need to specify your server's domain name in the folder Etc open daycare two files should appear with extensions private a private key and txt at the XD record now let's configure DNS view the contents of the txt file copy the contents switch to DNS control panel and create a DxD record assign a name to it and paste the dxt file contents where mail is selector name and here is the public key [Music] now let's make changes to the configuration file here you need to command and add a few lines [Music] add your domain to trusted hosts add the domain Ctrl X yes and press enter give the path to the key [Music] Ctrl X yes and press enter on the path to the signature Ctrl X yes and press enter then restart the services [Music] now that the record is added let's check it open a D team checkup service in the browser type the domain in this field add the selector name in the other field as you can see the service has found my leaking racket the record is added for additional fine tuning adding trusted host domains Etc you'll have to open the configuration file and add extra settings now let's test mail sending again Ctrl d foreign [Music] as you can see the email arrived and this time it was not dumped into the spam folder [Music] let's reply to this email [Music] well now the mail service works properly all right so we have installed and configured postfix in dovecod checked how that mail service works and added corresponding DNS records for more convenient work you can add a MySQL storage server and a mail client for example round Cube but that is all for now hopefully this video was useful remember to click the like button and subscribe to our Channel leave comments to ask questions thank you for watching and good luck [Music] thank you foreign [Music]
Info
Channel: Hetman Software: Data Recovery for Windows
Views: 53,055
Rating: undefined out of 5
Keywords: How to install postfix, how to install dovecot, how to add DNS records, SPF, DKIM, DMARC, POP3, IMAP4, MX record, A record, ubuntu, linux, mail server setup, domain, postfix setup, postfix dovecot, dovecot, dovecot setup, mta, mda, mail linux, mail server on linux, mail system, postfix on Ubuntu, Dovecot on Ubuntu, mail spam protection, postfix mail test
Id: P5NeyiRPYiY
Channel Id: undefined
Length: 15min 28sec (928 seconds)
Published: Wed Feb 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.