Madchatthew I would like to convert my mail receiving/sending from Mailgun to my own webmail server. I currently have a Ubuntu 20.04 web server on Digital Ocean running. I have serveral websites that are currently up and running on that server. I found the below tutorial on how to setup Postfix to send/receive email. I would like to set this up myself so I know how and for educational purposes. This will also eventually make it so that all the websites on my server will send email for notifications and such through this setup.
Are you running any form of "admin panel" tools on this server ? The (by far) simplest mechanism here is to use something like
Virtualmin which will come with Postfix preconfigured.
Madchatthew I do have a question regarding the FQDN where you set myhostname = hostname.example.com - Does the host name need to be a dot com and registered domain like my other websites have? If that is the case, I can use that domain name to also setup a webpage as well as server the mail right?
The hostname can be anything you want really, but you need to be sure that the value of
$mydomains is populated with the domains you want to be able to send email from
Madchatthew Is this a good tutorial to follow or is there a better one out there?
I wouldn't recommend using this tutorial. For the most part, it's "fine", but this could cause issues with the current configuration you have and is better served on a new system (see my comment about Virtualmin above)
Madchatthew I will also make a backup of my server so just in case I mess something up I can restore it.
If we go my suggested route (see first point), it will mean taking a backup of the sites, databases, email data etc, then recovering this once the system is rebuilt. Obviously, we do not want to take out our existing server, so we will build a new server, test, migrate to that, then stop the current server after changing DNS entries etc.
I'm happy to work with you to get the initial build completed. I've something similar on two occasions for @JAC