 What's up gamers welcome to my speedrun So today what I'm going to do is I'm going to speed run I'm going for the world record of Installing an email server as quickly as possible the I'm doing script percent meaning I can use a script To do all the difficult stuff. I don't have to type everything in manually I'm gonna go for five minutes. Let's see if I can do it under five minutes now Of course, I'm gonna be using the script that I wrote email whiz Which many of you guys actually now run email servers using this script But this basically you can start off on any VPS that's running Debian or Ubuntu Just run the script and it basically installs everything you need for an email server In fact recently I've added it even gets SSL certificates for you It has failed to ban for some extra security in addition to the stuff that it's always had And I've also made some other improvements. So I'm gonna do a speedrun. We're gonna see how long again We're going for five minutes. We're going for five minutes here and so the only thing you need to run this script is of course, you need a domain name and a VPS like, you know some a server to host your thing on so all you need on your DNS records is You don't need any of this stuff We're gonna add like the mail records and the text records in this speedrun all you need at the very beginning is You need to direct your domain name in its DNS records To the IP address of your server or really you need to redirect the mail subdomain now I have a wild card here that's gonna redirect mail But you want mail dot your domain to direct to whatever your server is here. So here's my IP address Here's my IPv6 address And another thing you want to start off with I already have set these it's not well We'll say this is not part of the speedrun, but you also want to have reverse DNS addresses and On vulture so I usually use vultures Vultured I'll host a lot of my servers and I originally made this script for it You can check the video description to get a server there, but I Set mail dot the conus.net it as its reverse DNS address And this is like for validating that this is the right email or you know the IP address and the server are correctly matched So I have one for IPv4 and IPv6. Okay, so that's the only stuff I have set up now everything else. We're gonna do in this little video and So yeah, let's let's go ahead and do the speedrun and then I'm gonna test Sending mail out to another server or something like that. So let's uh, what's what's a thing called term? Term down. Okay, so this is gonna be our timer. All right, so get ready kids get ready for this actually Just go ahead and go over here Okay, so I'm gonna start time starts now. I have not logged into the server yet now to download my Script you can go to The larbs.xyz slash email whiz actually I think you can do my own main domain slash email is in the work So now the script is downloaded on this other window I'm also gonna log in on this server because I'm gonna do something else It's gonna do this prompt You're gonna say internet site and then type in the domain name that we're using here So one is Boconus.net and that's gonna do basically the rest of the work But we have some other things to do here So we want to add in a username Billy of the mail group So any user that is of the mail group will be able to send and receive mail And I'm also gonna add a password for Billy because we're gonna I've already prepared a password for him But we're gonna try sending out mail as Billy. So now we're done with this terminal Actually, we want to let's let's go over here We need to put in some let's see Text records here. Actually, let's go ahead and put our in our MX record While the script is running and we want that to point to mail dot Boconus Dot net our domain name and of course I think we want a trailing period here And that's just when someone tries to send mail to you know, Billy at Boconus.net. It will pop up It will go to the mail sub domain So for these we're gonna wait for the script for the end of the actually we can go ahead and start putting them in because I have Some in memory so mail dot domain key And then I want to say there's underscore D mark actually I can look at this because I think like they're kind of written here So yeah, the SPF address so these addresses are these like weird things weird cryptic things that I'm putting in here they are for Reducing like the chance of you being spammed. They're basically ways of your DNS settings telling people Like, you know, what to expect when they connect to their e to your email server The most important one is this one we have to wait for I guess the script just finished so great So this really long one. This is the one that you put under mail dot underscore domain key This is basically a public cryptic cryptographic key That's corresponds to oh, you know what? We're done. So I'm gonna say two minutes and 22 seconds. I'm gonna say that was our time So But let me explain what that was. So this is like probably the most important one What it basically when your server installs that? When it in when it installs open DKIM it generates a cryptographic key that you sign all emails with and then you put Put the public key here and it's a way of like people validating. Oh, this email actually came from their server It's not just someone for well for those who don't know you can actually just put any from address on any email And so open DKIM is a way of avoiding that. So All right. Now, let's see what we got So I have an email here that I've already prepared and I'm going to send it It's it's with the billy address with the password I prepared in advance and I am going to send it to this gmail address Okay, now I never actually use gmail in real life, but I want to use for this test Oh my goodness it actually went through and the reason I want to use gmail is gmail is usually the most finicky About getting mail from domains. It hasn't seen So my meal my mail has successfully gone through a triumphant email And the important thing so that means basically our open DKIM stuff all of that worked fine This probably works good So I will say if yours let's say you're following along. Let's say you did the speed run guys beat my speed running world record Yeah, don't actually do that. That's cringe, but if you want to install this Because you want to email server Let's say if things aren't going through there are a couple things you can check I put a bunch of these links at the bottom You know this site you can send an email address I Just ate like almonds and I have like almond crust like in my throat. I'm coughing it up But this site you can send an email to them and they'll tell you if something's wrong with your open DKIM And then you can check and see if your server IP is in a blacklist all this other stuff So one thing I don't think I noted before that you do need to have not before you set this up But before you really start sending mail is you want to make sure that where is it you want to unblock your ports? So on vulture and a lot of other sites By default they block mail ports now once your account you just open a ticket with them and say hey Could you unblock your mitt my mail ports? I want to be able to send mail I'm not going to be spending sending spam and they will open it up for you So you want to do that and notice that that is different than opening the script itself actually opens up ports with like UW or yeah, UFW But there's a difference between opening the ports on your side and opening the ports, you know as them as your internet provider in essence Okay, so yeah now you have an email server now. There's no graphical Like log in for this. This is just a bare bones email server If you want some kind of graphical log in actually no, don't do that. That's stupid What you should be using is you should be using Thunderbird or mutt or on mail or on Android k9 You should just be using a mail client and not running that other crap but if you really want to have a graphical a graphical I guess What is it? What's a word? I don't know web interface for your mail. You can go look at the rain loop Tutorial that's on landshad.net that's linked here and that rain loop is just like this way it looks like this Right. It's it's a way for you getting your email on in a browser or something But I always use it. I I always use like email clients and nothing else So just another note. I'm just gonna talk about how the script works in the meantime Wow, I'm just my heart is just racing from that world record. Wow two minutes and 22 seconds. That's that's trips Um But anyway, what was that gonna say some some other things know about this now I added a user so you remember I like added Billy as a user user add You know, I don't know Amanda Any user that you add with the mail group and you want to of course give the M option So it creates a home directory because it actually stores the mail in you know in folders in the home directory But as you can just create normal Unix users on your machine Like if your friends if you want to give them an email address Just use this command to create, you know, their account and then add their password with password, you know Amanda Or something like that very simple So that's another thing here. I'm trying to think if there's anything else funky I need to tell people in this video while I have it on instead of getting like 5,000 emails and questions One other thing that sometimes like people with the script. They want to do is they want to have multiple domains So like let's see where is DKIM So you you have to do that manually like the script doesn't do it itself, but you'll see like an Etsy post-fix DKIM I've created this didn't used to be the case. This is now some a change that I've made to the script It used to be I put all the DKIM information just in this directory But now it actually makes a separate sub or sub folder for whatever, you know, main domains you use So if you this is kind of canonically like if you want to add a new domain address You can look up the commands that it runs here like basically you just generated open DKIM Key was I looking for it. So this and then of course you would have to put that into you the Domain or the DNS records of that email or that domain name you're talking about so many words I'm like getting confused in this video because it's just like all these abbreviations and terms and they all they're all used in the same context because I don't know technology Everything in technology is basically just one. I don't know one small segment of my brain That is getting increasingly confused at this point because I care so little about it None the rest nonetheless Nonetheless, I am now a world record holder of installing an email server as fast as I possibly can Oh, yeah, this is the stuff about generating domain keys and all that. But anyway So try it yourself Try it on vulture links below or actually it should be able to work on any VPS provider Vulture is the only one I ever really use it on but you know either way to you guys next time Wow, I'm so wow. I'm this is so amazing world records are amazing. Okay. Goodbye