Community Control Panel. Hacktoberfest Contribute to Open Source. Not using Ubuntu Choose a different version or distribution. Ubuntu A previous version of this tutorial was written by Justin Ellingwood Introduction Postfix is a popular open-source Mail Transfer Agent MTA that can be used to route and deliver email on a Linux system. Prerequisites Setting up and maintaining your own mail server is complicated and time-consuming.
This server should have a non-root user with sudo privileges and a firewall configured with UFW. You can follow our Ubuntu Be aware that if you plan on accessing mail from an external location, you will need to make sure you have an MX record pointing to your mail server as well. To begin, update your local apt package cache: sudo apt update Then install the postfix package with the following command.
For the purposes of this tutorial, use the following information to fill in your prompts: General type of mail configuration? System mail name : This is the base domain used to construct a valid email address when only the account portion of the address is given.
You will likely want to set the system mail name to example. Root and postmaster mail recipient : This is the Linux account that will be forwarded mail addressed to root and postmaster.
Use your primary account for this. In this example case, sammy. Other destinations to accept mail for : This defines the mail destinations that this Postfix instance will accept. If you need to add any other domains that this server will be responsible for receiving, add those here. Otherwise, the default will be sufficient.
Force synchronous updates on mail queue? Local networks : This is a list of the networks for which your mail server is configured to relay messages. The default will work for most scenarios. If you choose to modify it, though, make sure to be very restrictive in regards to the network range.
Mailbox size limit : This can be used to limit the size of messages. Setting it to 0 disables any size restriction. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings. If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
Published by Admin. All mails redirected or destined to root account will be forwarded to your mail user as shown in the below image. You have successfully installed and configured a mail server at your premises in order for local users to communicate via e-mails.
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation.
We are thankful for your never ending support. Pretty nice guide. Thank you a lot. Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.
Save my name, email, and website in this browser for the next time I comment. Notify me of followup comments via e-mail. You can also subscribe without commenting.
This site uses Akismet to reduce spam. Learn how your comment data is processed. Requirements Debian 9 Minimal Installation A static IP address configured for the network interface A local or a public registered domain name. If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts?
0コメント