That's kinda lame- why did they strike you? on a side question- does your email server setup include the ability to have a 'catch-all' function? Where emails sent to users who don't exist automatically get received in the inbox anyway? Thanks
Definitely going to dig deeper into your advice on there. I have been censored on YT for a while now, in fact you likely will never see this message. But if you do, I am going to build my own portfolio with these behaviors in mind, thank you :)
I love those videos about your personal server. They make me really nostalgic for the time when I made my own personal website. That was, of course, before I realized that I am really good at making websites but don't have any interesting content to put on one in the first place.
@@LukeSmithxyz Does this mean you are going to make a guide on how to do this? I feel like a guide for even making a viewer account (on your own instance) could be nice.
keeping the packages updated , if you run the system as your main system that part is easy because you update them along with everything else. configuration files however, that might be a different story.
When you are setting up your DNS records, make sure to take the time the first go around to get it right, or set the TTL number low, because the initial propagation is nearly immediate. If you have to change anything, you will have to wait for the cache time to expire.
The feeling of magic when you do all of that nerdy stuff and then you log in to your email on normie Thunderbird and it works just like your outlook address. Now I have a professional email account for my business. Thanks so much!
THANK YOU LUKE! That script is exactly what I was trying to find, when I was trying to set up an email server ages ago, and it was quite long. The next one I set up will be this ^^
It's quite viable if you live in a area with a nice aquifer. My grandma's cottage has a water well that has provided water to the house for 3 decades now, all year-round. The sewage is sent to an underground septic tank in the opposite side of the property, almost zero maintenance required, as its contents decompose fast enough as to never clog the system. Works so well (well, ironic), living off the grid isn't a far-fetched idea!
Hey Luke. I'm a zoomer that has never set up a website or email server before, and thanks to your vidayos, I was able to do so. Just thank you so so much for the tutorials and providing such awesome content!
I finally pulled the trigger over the weekend and I purchased a Vultr VPS using Luke's referral link (somehow it didn't work properly and didn't count for the bonus 50$, shame). I've been having lots of fun, I precisely used this very script to setup a mailserver (and added rainloop for a webmail interface, although I mostly use it with Thunderbird), I also installed OpenVPN and I'm using the VPS to host my personal documentation with mkdocs. The port 25 was indeed blocked, I've opened a support ticket with Vultr and they seem friendly enough to open the port after answering some basic questions to make sure I'm not setting up an spam farm. Thank you Luke!
>a boomer that lives in a cabin in the middle of the woods instructing people how to send mail >mfw it's "e-mail" >can't send fun "packages" You are nothing compared to him. Disappointed.
I was about to comment if you could do a video on email server hosting, since general consensus on the internet seems to be "omg it's so hard, dont do it", and here you go posting the video before I could even make the request. :) Love the content lately, keep up the great work.
Oh my god, thanks a lot Luke, I just tried to setup a mail server yesterday and mail to GMail would go to Spam. I don't know whether it's thanks to your recent script updates or anything, but it works now.
I also recommend mailu which is fairly easy to install, especially if you tend to want to containerize everything to avoid having to install a bunch of dependencies on your system/VPS
Thank you so much, funny thing is that i used mailgun or sendgrid several times just because setting up postfix was complicated on VPS. but i didn't even use their stuff like lists and templates and bullshits, i just wanted to send some stupid emails. I appreciate your help really
A few differences in the process now. You need to allow the ports your mail server uses in ufw, or disable ufw. You also need to restart your instance from the vultr control panel to enable SMTP (it will tell you this if you check the web panel.) Though SMTP will still be disabled afterwards, and you will have to contact support, and wait up to 24 hours in between responses.
This is a big gamer move. If you are troubleshooting the certbot, use the --test-cert flag. You will get rate limited at 5 requests per hour instead of 60 per hour if you don't use this flag to test it. When you pass the test, remove the flag. Right now I am rate-limited so I just have to wait
Indeed! - Been running my own email servers for years - My current setup is FreeBSD hosted, but works just as well under Linux: OpenSMTPd, Dovecot and rSpamdD (With redis for cache) and it works like a charm and OpenSMTPd's config is sooo easy - My full "unlimited domains, unlimited users" config file is literally 20 lines.
I feel so embarrassed when someone recognizes my proton mail emails and tells me how cool it is that I'm so security centric. Ooo, I'm relying on Swiss law to keep my emails from being looked at. I'm so "security minded".
Hey Luke - thanks for the video - very useful. Out of interest (I know you like a challenge), how would you go about setting up a second domain pointing to the same server, and have mail on both of them. Would you set up a second nginx record? I guess this would also mean the user names would be linked to both email addresses?
If you're having problems logging into your email account, run "sudo ufw app list" to see a bunch of different apps that use ports. Then run "sudo ufw allow XXX" replacing XXX for any app in the list that has anything to do with postfix or dovecot. This will allow postfix and dovecot through your servers firewall. To test that you can connect to your mail server run "telnet yourdomain.com 25" "telnet yourdomain.com 993" and "telnet yourdomain.com 875" . It should say connection successful for them. Hope this helped :) spent the past day trying to fix mine lol Edit to clarify: You need to run the ufw commands on your server. You may also need to restart postfix and dovecot after doing these changes I'm not sure if you need to but I did.
Email server script: github.com/lukesmithxyz/emailwiz Affiliate link to Vultr: www.vultr.com/?ref=8384069-6G (gives you $100 in first-month credit to play around with server however you want) Other VPS providers are good too, but I know my script works on Vultr since I use it. If you have success using the email script another VPS, provider, tell me! Note that some users (even those using Vultr) will have to tell their VPS support to open port 25 to send mail. I never had to do this, but others have reported it to me as being necessary for them.
You know what, I went ahead and have done it! What a nightmare it is to setup a fully functioning email server when you want to add dovecot. With great flexibility comes the great ability to break things.... But, after 3 days of figuring out what settings break what I did it! (Arch Linux installation of Postfix, Dovecot, OpenDKIM, OpenMARC). If anyone wants I guide to it I will provide as there are some things the Arch wiki just doesn't explicitly mention.
I'd appreciate it if you did While I don't plan on trying this anytime soon it's always good to have some reference Might also allow me to just go full overkill and get into Arch, VPS, DNS and mail servers at once
@@CrystalMaidenFeetLover86 Sure thing, I'll give my memory a jog, I haven't written many guides before so it will probably end up quite lengthy, although I suppose that is better than leaving people in the dark about what is going on haha. It's worth noting that I'm not using a VPS service as I mostly did this as a test and practice so I self host everything. With my current setup this produces down time from 00:00BST to whenever I wake up, typically 09:00BST
@@CrystalMaidenFeetLover86 I went ahead and put the post together, it may not be perfect but it should at least provide a good baseline: blog.redfox32.xyz/posts/A_simple_guide_to_setting_up_your_own_email_server.html
Just commenting before even watching the video: In Finland it's already illegal for internet service providers to keep the SMTP port (25) open in customer internet plans, so it's impossible to host an own mail server here.
Either way, you can get the same amount of security by using PGP, offline only email (your server auto-deletes email once a local client syncs). Self-host email is quite annoying and not worth it imo. I personally use Migadu. As long as I have access to my domain, I still can get email on another service if for any reason Migadu dies.
If you make it to the end and are not able to login via thunderbird or whatever, disable your VPN as it seems one of the things the scripts installs blocks VPNs that are associated with spam. PIA, nord etc
I've been hosting my own mail servers in a similar manner on a VPS provided by OVH. It's been working without hardly any trouble for the past 8 years. Today, a fire destroyed the OVH datacenter in Strasbourg. This is the only drawback of hosting your own server, unless you have a backup system. Unfortunately, data doesn't survive fires, unless redundancy has been built into the service outside of the same datacenter building :(
Christ man rip. Can I gently suggest that you start off this time using managed email hosting. You don't need to use Gmail. Fastmail and Protonmail are viable alternatives. These services will replicate across multiple datacenters.
This might be useful, but if you renew your cert using certbot, IMAP server will still be using the old cert so you need to restart it. I was having issues with Thunderbird because of that.
Thanks for your awesome work! Now, I only need to figure out how to mod your script to setup multiple domains and user accounts bound to the specific domain. Thanks again!!!
Fuck man, Thank you so much! Please Please Keep these up, I actually learned so fucking much from the mail server, there is not 1 fucking tutorial out there without breaking 10h/day to work on setting up a mail server. You really helped me a lot man!
@@LukeSmithxyz Maybe it was something like " port 80 unavailable" ? I just had this, I had to take nginx down for a moment for certbot to spin up its webserver and do its thing. Dunno if this will work when renewing though.
Apparently port 25 is blocked on Vultr by default, preventing you from sending mail. Is there any way to change the port, or do i have to beg vultr to unlock it?
@@LunarBears You should make sure that that is your problem by checking "journalctl -xe", somewhere at the bottom it should say "connection timed out" or something like that with the number 25 somewhere on the same line.
You could easily improve this by adding an antivirus like ClamAV. Also adding grey-listing is useful in preventing spam in addition to Spam-Assassin. Good video!
I just upgraded to the latest Ubuntu and now Fail2Ban can't run because of asynchat being deprecated in the latest Python. 1) Is Fail2Ban being borked going to cause issues with the email server this sets up? If so, I may have to revert back to the old Ubuntu, because I've been relying on this setup for about 6 months now. 2) Are you still maintaining this script?
I’m too used to gmail to switch to a desktop email client. Gmail is pretty good at organizing email and displaying the list. (Showing attachments in line, if you make a purchase it puts a card with the price, if it includes an event it shows up in your calendar, you can have custom filters, etc.)
Good luck not being exploited, its no longer safe with legacy ad integration and garbage code everywhere. Every browser is keylogging shit by default for "cort...a" or "si..i" or whatever name, so if you want any privacy in 2021 you may want to reconsider that.
Someone should probably say that you don't need that trailing period on every registrar's webui. You don't with namecheap for example. The letsencrypt package (certbot) also has a built-in (standalone) web server. I was able to cut out a web server entirely that way.
If you try to set up a new mailing server on Vultr. They will require an active account with at least 30 days of "normal" activity before they open the port 25 for you. If this doesn't happen you won't be able to send any mail.
How can you backup your mail? How can you view logs in case of failure (running out of free disk space for example? How can you delete mailboxes? What about TLS certificate renewals? What about email aliases?
Here's my initial response from Vultr support: "Thank you for contacting the Vultr Technical Support team. Port 25 would be closed by default, but ports 933 and 587 should be open. While we do block SMTP ports by default, this block may be lifted by our Account Management team on a case-by-case basis. We are forwarding this request to our Account Management team for review, and they will work as swiftly as possible to address your inquiry."
be warned,, Vultr is now asking for this: "Please reply to this ticket with the following information: 1. The business name and organization URL(s) under which you offer services. 2. Describe, in as much detail as possible, the nature of the emails you intend to send. 3. The volume of email that you plan to deliver on a daily/monthly basis."
Ahah! It worked, thank you so much! But now I've a question: why did the SMTP server need STARTTLS and not SSL? Didn't we set up SSL? It seems if I specify that, it breaks. Thanks!
As much as some might flame me for this: Don't bother setting up your own mail server unless you are genuinely interested in the process, the end result will be inferior to what google can do. SMTP basically sucks as a protocol, and like http is now a pile of hacks to get some level of security and protection against spam. I used to run a small isp "back in the day" with several hundred accounts running qmail (which is fantastic btw and still around, it was suckless before suckless). Basically every small to medium company, and almost all the big ones as well, just use one of the major providers. They have better integration with phones, and you can't compete with google on anti spam. If google detects malicious email, they can just block it system wide before anyone even sends you anything. SMTP ports are probably blocked on your home connection anyway, and if you are using vps servers then the host can intercept everything unencrypted anyway, or just suck it off your filesystem. You could refuse all unencrypted connections which can mitigate the security issues somewhat, but will prevent you from getting some email. Though to be fair it's increasingly viable as basically nobody hosts their own email anymore and your big providers all support tls... but that brings us back to square one anyway, because 90% of your destinations ARE these big companys, and they will read your email anyway. TLDR, treat smtp as you would discord, aol, or whatever else, it's not secure, your email is being read.
Hey, Luke. What program did you use to display your webcam directly onscreen? Is it only ffmpeg? Edit (5 minutes later): Nevermind! I figured it out! ffplay is awesome!
There is an easy solution for how to set up a mail server in just a few minutes using docker, docker-compose, and a nice open-source project called mailcow. I recently did a YT video about that 😎
Used to run my own email server for the fam. when all these additional tools like Spamassassin weren't necessary, got in to more and more trouble over time and gave up. With this setup we could go back in time and be happy again, should I ...
Some advice against MX -> cname -> IP and instead ask to just point MX -> IP. Is that an issue, or something that really doesn't matter? Also, would you recommend AWS's SNS (Simple EMail Service)? It seems much cheaper than a VPS. I was planning to setup a VPS, but am researching the AWS route. Nice video! Thanks! Stay Safe!
URGENT! Read this:
lukesmith.xyz/deletion
That's kinda lame- why did they strike you?
on a side question- does your email server setup include the ability to have a 'catch-all' function? Where emails sent to users who don't exist automatically get received in the inbox anyway? Thanks
Definitely going to dig deeper into your advice on there. I have been censored on YT for a while now, in fact you likely will never see this message. But if you do, I am going to build my own portfolio with these behaviors in mind, thank you :)
Thanks Luke!! This helped me setup my own email server on my homelab
I just foudn this video. Giving it a try. What was this URGENT message?
@@TimRubel How'd it go? Is this method still working?
Next week: The government is bias, how to create your own country
Welcome to CHAZ
there are unclaimed lands. it's totally possible.
The word is BIASED. You can't 'be bias' any more than you can 'be embarrass'
How to overthrow the government, establish total anarchy with vim and dwm
@@milesrout I am disappoint
Luke Smith is a nice person who likes helping the community.
Thank you, Luke.
I agree, these vids have been extremely helpful, and I cant thank him enough
Thank you, Luke
i see what you did lmao
@@sunset-inn Anyone with 2 brain cells
"linux community"
Ah, yes my fbi agent can finally retire
I'd upboat your post but its at 69 upcummies
>he thinks the fbi doesn't have access to the vps
Kek
LMAO IM DYING 🤣🤣🤣🤣🤣
Hahhahahahah
@@getgle this is why you just buy your own server hardware tbh.
I love those videos about your personal server. They make me really nostalgic for the time when I made my own personal website. That was, of course, before I realized that I am really good at making websites but don't have any interesting content to put on one in the first place.
🤣🤣🤣🤣🤣🤣👌💪 idk this sounds so funny ! i feel ya 💪🤣🤣🤣🤣
Nice steins;gate avatar, I see u r a person of culture.
i wanna grab moeka's moeka's
next video: RUclips's dumb: just make your own video hosting service
Well... videos.lukesmith.xyz
🤣🤣🤣 Love it!!!
@@LukeSmithxyz Lmfao
@@LukeSmithxyz Does this mean you are going to make a guide on how to do this? I feel like a guide for even making a viewer account (on your own instance) could be nice.
@@LukeSmithxyz well done! I can even reply to your video using my Mastodon account.
i just created my website yesterday after watching your video and now i want to setup my own email server. damn! luke out here inspiring people.
Time to spin up a bootstrap personal website with all the knowledge from your past 10 videos. Thanks for everything you do Luke!
the only youtuber who doesn't ask for like , share and these stuff i appreciate it 👌
pretty sure there are others
Thanks for making this video! Setting up a mail server seemed like an impossible task, but with your script, it looks super easy.
You are the best!
Setting it up is the easy part. Keeping the packages and config up to date is the hard part.
keeping the packages updated , if you run the system as your main system that part is easy because you update them along with everything else.
configuration files however, that might be a different story.
When you are setting up your DNS records, make sure to take the time the first go around to get it right, or set the TTL number low, because the initial propagation is nearly immediate. If you have to change anything, you will have to wait for the cache time to expire.
Apparently Vultr blocks port 25 by default so you need to open a ticket and ask them to unblock it before you can start sending your emails.
The feeling of magic when you do all of that nerdy stuff and then you log in to your email on normie Thunderbird and it works just like your outlook address.
Now I have a professional email account for my business. Thanks so much!
THANK YOU LUKE! That script is exactly what I was trying to find, when I was trying to set up an email server ages ago, and it was quite long. The next one I set up will be this ^^
Next week: The states water supply is dumb: How to create your own H2O supply
@Fallen Archangel Welcome to Transhumanism
🤣🤣🤣🤣🤣
It's quite viable if you live in a area with a nice aquifer. My grandma's cottage has a water well that has provided water to the house for 3 decades now, all year-round. The sewage is sent to an underground septic tank in the opposite side of the property, almost zero maintenance required, as its contents decompose fast enough as to never clog the system. Works so well (well, ironic), living off the grid isn't a far-fetched idea!
Hey Luke. I'm a zoomer that has never set up a website or email server before, and thanks to your vidayos, I was able to do so.
Just thank you so so much for the tutorials and providing such awesome content!
you've inspired me to set up my own website, thank you luke!
I finally pulled the trigger over the weekend and I purchased a Vultr VPS using Luke's referral link (somehow it didn't work properly and didn't count for the bonus 50$, shame).
I've been having lots of fun, I precisely used this very script to setup a mailserver (and added rainloop for a webmail interface, although I mostly use it with Thunderbird), I also installed OpenVPN and I'm using the VPS to host my personal documentation with mkdocs.
The port 25 was indeed blocked, I've opened a support ticket with Vultr and they seem friendly enough to open the port after answering some basic questions to make sure I'm not setting up an spam farm.
Thank you Luke!
>a boomer that lives in a cabin in the middle of the woods instructing people how to send mail
>mfw it's "e-mail"
>can't send fun "packages"
You are nothing compared to him. Disappointed.
If you don't know how to cause chaos with only email, I'm worried about you
E-mail a pacman package.
I was about to comment if you could do a video on email server hosting, since general consensus on the internet seems to be "omg it's so hard, dont do it", and here you go posting the video before I could even make the request. :) Love the content lately, keep up the great work.
Oh my god, thanks a lot Luke, I just tried to setup a mail server yesterday and mail to GMail would go to Spam. I don't know whether it's thanks to your recent script updates or anything, but it works now.
I just remember almost smashing my keyboard trying to do that back then, thank you luke
I also recommend mailu which is fairly easy to install, especially if you tend to want to containerize everything to avoid having to install a bunch of dependencies on your system/VPS
Is it easy to configure?
@@DB-nl9xw yee
Next video: how to create your own oxygen supply
and water its very important lol
Have a glass roof, a giant house, and surround the whole area with leafy plants
@@AdventureTimeWithAsh That's not as pressing
Luke is already doing a lot of gardening
@lggy how?
Second time going through this, and I gotta say, I love the energy. You can't tell, but I'm having fun with you.
Wow this was amazing! Took like 10 minutes! I learned more in from this video than I have learned from a RUclips video in a loooong time!
Thanks Luke!
Thank you so much, funny thing is that i used mailgun or sendgrid several times just because setting up postfix was complicated on VPS.
but i didn't even use their stuff like lists and templates and bullshits, i just wanted to send some stupid emails.
I appreciate your help really
Luke looks like a excited kid who's showing you his Minecraft world. I like his vibe, it's so positive :D
A few differences in the process now. You need to allow the ports your mail server uses in ufw, or disable ufw. You also need to restart your instance from the vultr control panel to enable SMTP (it will tell you this if you check the web panel.) Though SMTP will still be disabled afterwards, and you will have to contact support, and wait up to 24 hours in between responses.
I like these new videos about doing your own services. Keep it up!
based and freedompilled
I wanted to setup my email server for quite some time but couldn't find a good tutorial. This is just it!🙌
Thanks very much, I was just thinking about doing that and you provide with the wonderful How To Setup Own Email Server: Remastered!
Thank you Luke, you're doing a great job.
Oh man lets go!!!! I have been looking to do this for sooo long... finally!
Thanks a lot for your work
This is a big gamer move. If you are troubleshooting the certbot, use the --test-cert flag. You will get rate limited at 5 requests per hour instead of 60 per hour if you don't use this flag to test it. When you pass the test, remove the flag. Right now I am rate-limited so I just have to wait
I've been using Mailgun after many unsuccessful attempts to set up my own.. This gives me hope. Thanks!
thanks a lot luke because of you now I have my website and my mail server, and become more "independant of the system"
Indeed! - Been running my own email servers for years - My current setup is FreeBSD hosted, but works just as well under Linux: OpenSMTPd, Dovecot and rSpamdD (With redis for cache) and it works like a charm and OpenSMTPd's config is sooo easy - My full "unlimited domains, unlimited users" config file is literally 20 lines.
I feel so embarrassed when someone recognizes my proton mail emails and tells me how cool it is that I'm so security centric.
Ooo, I'm relying on Swiss law to keep my emails from being looked at. I'm so "security minded".
This aged like stale milk
>waves goodbye at the end emotionally
:')
Hey, Luke, may the Force be with you
Hey Luke - thanks for the video - very useful. Out of interest (I know you like a challenge), how would you go about setting up a second domain pointing to the same server, and have mail on both of them. Would you set up a second nginx record? I guess this would also mean the user names would be linked to both email addresses?
If you're having problems logging into your email account, run "sudo ufw app list" to see a bunch of different apps that use ports. Then run "sudo ufw allow XXX" replacing XXX for any app in the list that has anything to do with postfix or dovecot. This will allow postfix and dovecot through your servers firewall. To test that you can connect to your mail server run "telnet yourdomain.com 25" "telnet yourdomain.com 993" and "telnet yourdomain.com 875" . It should say connection successful for them. Hope this helped :) spent the past day trying to fix mine lol
Edit to clarify:
You need to run the ufw commands on your server. You may also need to restart postfix and dovecot after doing these changes I'm not sure if you need to but I did.
Email server script: github.com/lukesmithxyz/emailwiz
Affiliate link to Vultr: www.vultr.com/?ref=8384069-6G (gives you $100 in first-month credit to play around with server however you want)
Other VPS providers are good too, but I know my script works on Vultr since I use it. If you have success using the email script another VPS, provider, tell me!
Note that some users (even those using Vultr) will have to tell their VPS support to open port 25 to send mail. I never had to do this, but others have reported it to me as being necessary for them.
Ah, but do you host your own nameserver?
You know what, I went ahead and have done it! What a nightmare it is to setup a fully functioning email server when you want to add dovecot. With great flexibility comes the great ability to break things.... But, after 3 days of figuring out what settings break what I did it! (Arch Linux installation of Postfix, Dovecot, OpenDKIM, OpenMARC). If anyone wants I guide to it I will provide as there are some things the Arch wiki just doesn't explicitly mention.
I'd appreciate it if you did
While I don't plan on trying this anytime soon it's always good to have some reference
Might also allow me to just go full overkill and get into Arch, VPS, DNS and mail servers at once
@@CrystalMaidenFeetLover86 Sure thing, I'll give my memory a jog, I haven't written many guides before so it will probably end up quite lengthy, although I suppose that is better than leaving people in the dark about what is going on haha. It's worth noting that I'm not using a VPS service as I mostly did this as a test and practice so I self host everything. With my current setup this produces down time from 00:00BST to whenever I wake up, typically 09:00BST
@@CrystalMaidenFeetLover86 I went ahead and put the post together, it may not be perfect but it should at least provide a good baseline: blog.redfox32.xyz/posts/A_simple_guide_to_setting_up_your_own_email_server.html
Just commenting before even watching the video: In Finland it's already illegal for internet service providers to keep the SMTP port (25) open in customer internet plans, so it's impossible to host an own mail server here.
You're supposed to use port 587 for SMTP with TLS enabled, or ports 465 or 2525 as alternatives.
@@p_serdiuk They are probably also blocked.
@@tikkasen_urakointi Surely it is fine if your VPS is hosted outside of Finland.
Either way, you can get the same amount of security by using PGP, offline only email (your server auto-deletes email once a local client syncs). Self-host email is quite annoying and not worth it imo. I personally use Migadu. As long as I have access to my domain, I still can get email on another service if for any reason Migadu dies.
WHAAAAAAAAAAAAAAAAAATTTTTT :O
Why not try Mailinabox?
I've been running it for years, and I love it!
If you make it to the end and are not able to login via thunderbird or whatever, disable your VPN as it seems one of the things the scripts installs blocks VPNs that are associated with spam. PIA, nord etc
I'm glad i found you over the internet...
Worked like a charm, thank you. Only thing missing from me was to open the ports in ufw
Trust me luke, if i had everything needed to setup an email server, you wouldn't see me here or on any google product
so very true. most troublesome is the ISP NAT service and port 25 blocking.
thanks Luke, love you
Next up epik is lame: how to set up your own DNS server
DNS servers aren't necessarily hard, the domain registry part is the pain in the posterior.
@@odisdracul Is it possible to register a domain yourself? Or must it be a registrar? I assume you can't get a domain name for free.
MX should be a hostname with an A record. Using a CNAME isn't standards compliant and several name servers disallow it.
I've been hosting my own mail servers in a similar manner on a VPS provided by OVH. It's been working without hardly any trouble for the past 8 years. Today, a fire destroyed the OVH datacenter in Strasbourg. This is the only drawback of hosting your own server, unless you have a backup system. Unfortunately, data doesn't survive fires, unless redundancy has been built into the service outside of the same datacenter building :(
Christ man rip. Can I gently suggest that you start off this time using managed email hosting. You don't need to use Gmail. Fastmail and Protonmail are viable alternatives. These services will replicate across multiple datacenters.
Luke is a Godsend, Thx for this video!
Thanks Luke, finally I have my email server up and running. 👍
FYI Vultr makes you wait at least 30 days before letting you send emails.
@0:13 ahh yes the faint glow of white light!
This might be useful, but if you renew your cert using certbot, IMAP server will still be using the old cert so you need to restart it.
I was having issues with Thunderbird because of that.
ngl i bought a vps cos of this string of videos and have implemented pretty much all of them cant wait for the git frontend one
Thanks for your awesome work! Now, I only need to figure out how to mod your script to setup multiple domains and user accounts bound to the specific domain. Thanks again!!!
Hail King of e-mail setups..!
Fuck man, Thank you so much! Please Please Keep these up, I actually learned so fucking much from the mail server, there is not 1 fucking tutorial out there without breaking 10h/day to work on setting up a mail server. You really helped me a lot man!
i think you can use 'certbot certonly --standalone' to get certification if ther is no web server available?
Yup. I do this exclusively since I use wildcard domains
I seem to remember having some issue doing this for this video. I forgot exactly what it was, so I just did it this way.
@@LukeSmithxyz Maybe it was something like " port 80 unavailable" ? I just had this, I had to take nginx down for a moment for certbot to spin up its webserver and do its thing.
Dunno if this will work when renewing though.
6:20 that's read as engine X? I thought it was N Jinx. Wow. That makes a lot of sense.
Do you really need to create full-fledged user for email? Isn't it more secure to create it with --system and/or --shell=/bin/nologin ?
Thank you Luke! I'm just closing ties with my gmail address then I'll delete my Google Account!
Apparently port 25 is blocked on Vultr by default, preventing you from sending mail. Is there any way to change the port, or do i have to beg vultr to unlock it?
thank you, i was wondering why i could not send mail
@@LunarBears You should make sure that that is your problem by checking "journalctl -xe", somewhere at the bottom it should say "connection timed out" or something like that with the number 25 somewhere on the same line.
@@mallock8529 Thanks dude. I opened up a ticket and they are interviewing me to see if they will unblock my port for me.
I've requested that it be unblocked, and works fine, just have to give a reason why, and what you are using it for etc.
You could easily improve this by adding an antivirus like ClamAV. Also adding grey-listing is useful in preventing spam in addition to Spam-Assassin. Good video!
You the man. FREEDOM!
I just upgraded to the latest Ubuntu and now Fail2Ban can't run because of asynchat being deprecated in the latest Python.
1) Is Fail2Ban being borked going to cause issues with the email server this sets up? If so, I may have to revert back to the old Ubuntu, because I've been relying on this setup for about 6 months now.
2) Are you still maintaining this script?
The script is still maintained on github, last commit was 3 months ago according to the github page.
Great how to video! I was wondering what is the application you seem to be using for your audio control from the cli?
Would it be possible to encrypt the mail on the server ?
Could you set up a calendar and sync that too ?
What about shared notes ?
lmgtfy
I’m too used to gmail to switch to a desktop email client. Gmail is pretty good at organizing email and displaying the list. (Showing attachments in line, if you make a purchase it puts a card with the price, if it includes an event it shows up in your calendar, you can have custom filters, etc.)
Good luck not being exploited, its no longer safe with legacy ad integration and garbage code everywhere. Every browser is keylogging shit by default for "cort...a" or "si..i" or whatever name, so if you want any privacy in 2021 you may want to reconsider that.
Now all we need is a tutorial to host torrent trackers then I can finally share my cartoons with friends!!! Based!
I believe you can setup peertube to function as a tracker
'cartoons'
Someone should probably say that you don't need that trailing period on every registrar's webui. You don't with namecheap for example. The letsencrypt package (certbot) also has a built-in (standalone) web server. I was able to cut out a web server entirely that way.
If you try to set up a new mailing server on Vultr. They will require an active account with at least 30 days of "normal" activity before they open the port 25 for you. If this doesn't happen you won't be able to send any mail.
ah that must be my problem then, thanks
I've been waiting for this!!!!
How can you backup your mail?
How can you view logs in case of failure (running out of free disk space for example?
How can you delete mailboxes?
What about TLS certificate renewals?
What about email aliases?
you are really doing a great job man ;)
Here's my initial response from Vultr support:
"Thank you for contacting the Vultr Technical Support team.
Port 25 would be closed by default, but ports 933 and 587 should be open. While we do block SMTP ports by default, this block may be lifted by our Account Management team on a case-by-case basis. We are forwarding this request to our Account Management team for review, and they will work as swiftly as possible to address your inquiry."
be warned,, Vultr is now asking for this:
"Please reply to this ticket with the following information:
1. The business name and organization URL(s) under which you offer services.
2. Describe, in as much detail as possible, the nature of the emails you intend to send.
3. The volume of email that you plan to deliver on a daily/monthly basis."
I had to tell them how many emails I'd be sending a day/week/month.. then they opened port 25
Linode are more laissez-faire, they just want your DNS set up before removing the email port restrictions
I believe there was some thing to do with PTR records which should be set by your ISP. Could be outdated info.
Luke, please, make a tutorial on how to host your own Runescape server.
world of warcraft and minecraft also
Luke Smith is dumb: Just build your own Luke Smith.
we laughing at this now but the year 2222 is coming 🤣🤣🤣🤣 xD
Thank you for making this!
This script works like a charm! :) Ubuntu server 20.04 LTS
does this have any advantages regarding security over something like protonmail?
You have full control over the security of the server and ProtonMail could be stealing your info and you wouldn't know it.
Ahah! It worked, thank you so much! But now I've a question: why did the SMTP server need STARTTLS and not SSL? Didn't we set up SSL? It seems if I specify that, it breaks. Thanks!
As much as some might flame me for this: Don't bother setting up your own mail server unless you are genuinely interested in the process, the end result will be inferior to what google can do. SMTP basically sucks as a protocol, and like http is now a pile of hacks to get some level of security and protection against spam. I used to run a small isp "back in the day" with several hundred accounts running qmail (which is fantastic btw and still around, it was suckless before suckless). Basically every small to medium company, and almost all the big ones as well, just use one of the major providers. They have better integration with phones, and you can't compete with google on anti spam. If google detects malicious email, they can just block it system wide before anyone even sends you anything. SMTP ports are probably blocked on your home connection anyway, and if you are using vps servers then the host can intercept everything unencrypted anyway, or just suck it off your filesystem. You could refuse all unencrypted connections which can mitigate the security issues somewhat, but will prevent you from getting some email. Though to be fair it's increasingly viable as basically nobody hosts their own email anymore and your big providers all support tls... but that brings us back to square one anyway, because 90% of your destinations ARE these big companys, and they will read your email anyway.
TLDR, treat smtp as you would discord, aol, or whatever else, it's not secure, your email is being read.
They fear the self hosted email server owner
Hey, Luke. What program did you use to display your webcam directly onscreen? Is it only ffmpeg?
Edit (5 minutes later): Nevermind! I figured it out! ffplay is awesome!
There is an easy solution for how to set up a mail server in just a few minutes using docker, docker-compose, and a nice open-source project called mailcow. I recently did a YT video about that 😎
not familiar with the spirit of this channel, eh? Docker indeed....
Used to run my own email server for the fam. when all these additional tools like Spamassassin weren't necessary, got in to more and more trouble over time and gave up. With this setup we could go back in time and be happy again, should I ...
Some advice against MX -> cname -> IP and instead ask to just point MX -> IP. Is that an issue, or something that really doesn't matter?
Also, would you recommend AWS's SNS (Simple EMail Service)? It seems much cheaper than a VPS. I was planning to setup a VPS, but am researching the AWS route.
Nice video! Thanks! Stay Safe!
I'm actually gonna try this :) thanks
Works fine!! Thanks for the video.. Still prefer some web admin interfaces though so I'm going to look for that...