Gmail's dumb: Just host your own mail server!


Derek Kong , Miami, FL – Support ? What support! It does not exist. Wait time 30 minuter. – This hosting company is a subsidiary of BlueHost and I wonder if their service is as bad as #Justhost?


I set up a mail server from scratch. Use Thunderbird, mutt or any other mail client to log in securely, just requires a domain name and a VPS/server. I use this script to help me:
https://github.com/lukesmithxyz/emailwiz

Not only will it automatically set up a Postfix and Dovecot server, but also Spamassassin and use OpenDKIM and SPF to validate and secure your mail domain to ensure that you can send messages to Gmail and other big addresses.

My registrar as used here is Epik: https://www.epik.com/?affid=we2ro7sa6 They are based.
My VPS is with Vultr: https://www.vultr.com/?ref=8384069-6G that affiliate link will give you a $100 credit to test the waters for the first month. A VPS after that can be about $3.50 a month.

By the way, once you do all this, you can also get a command-line based mail system with my mutt-wizard: https://github.com/lukesmithxyz/mutt-wizard

WEBSITE: https://lukesmith.xyz 🌐❓🔎
DONATE: https://lukesmith.xyz/donate 💰😎👌💯
OR affiliate links to things l use:
https://www.epik.com/?affid=we2ro7sa6 Get a cheap and reliable domain name with Epik.
https://www.vultr.com/?ref=8384069-6G Get a VPS and host a website or server for anything else.
https://brave.com/luk005 Get the Brave browser.
https://lbry.tv/$/invite/@Luke View my videos on LBRY.
https://www.coinbase.com/join/smith_5to1 Get crypto-rich on Coinbase.

Luke Smith

45 Comments
  • lacerta borealis
    Posted at 14:09h, 22 June

    People are dumb: How to create your own with TempleOS

  • C C
    Posted at 14:16h, 22 June

    I'm a pleb and use Squarespace for business hosting. I'm really hoping this will work for me, as I'm forced to use fucking GSuite at the moment, and I hate it.

  • Qt Animu
    Posted at 14:19h, 22 June

    E-mail is dumb and for boomers. Use a Matrix.org server / client instead.

  • qorg11
    Posted at 14:20h, 22 June

    This video would have been useful to me… 3 years ago

  • aziz
    Posted at 14:20h, 22 June

    your mom is dumb

  • Manvel Beaver
    Posted at 14:26h, 22 June

    It’s looks like I’m the Boomer here.

  • Miguel
    Posted at 14:26h, 22 June

    Next week: The government is bias, how to create your own country

  • Jon
    Posted at 14:43h, 22 June

    The last time I done this 15 years ago, it was taken over constantly and used to spam people. But maybe things have gotten better in the last 15years. But I heard postfix, dovecot and I dont know.
    Maybe I will try again, maybe I wont.

  • Johan Svensson
    Posted at 14:45h, 22 June

    Luke why do you follow Sv3rige? I'm very curious

  • Spencer Nick
    Posted at 14:51h, 22 June

    THIS IS IMPORTANT: Don't forget to edit your nginx error pages (Like 404) to not show what version of the web server you are using. This can keep script kiddies from compromising (hacking) you in the future. Years ago a friend of mine learned that the hard way.

  • RheejusXelesis
    Posted at 14:54h, 22 June

    Next stop, setting up your own DNS/name server so no one gets to see your DNS requests. DNS servers can identify you and look at bits like your MAC address by using extensions for DNS (EDNS0).

  • R S
    Posted at 14:58h, 22 June

    luke what's your wpm speed?

  • Elijah Master
    Posted at 15:03h, 22 June

    Even though your connection to smtp or imap servers may be encrypted with tls (or starttls), your actual mail is not by default, so all mail servers that receive and relay your emails can see your whole message (with a possibility to store it and sell your personal information to third parties for targeted advertising). I'd suggest considering encrypting your email messages with PGP.

  • Khoi
    Posted at 15:03h, 22 June

    configuring your own email server is the recipe for disaster. DO NOT EVER DO IT, well unless you're a youtuber

  • Kolačić
    Posted at 15:04h, 22 June

    Is there an equivalent channel like Lukes but for windows?

  • JamPacked
    Posted at 15:06h, 22 June

    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".

  • WobbleCat
    Posted at 15:12h, 22 June

    your nginx is outdated

  • TheAnimateor
    Posted at 15:12h, 22 June

    When will you be sorting out your `stagit` front end to your git server?

  • HT Olson
    Posted at 15:27h, 22 June

    I wish you made this video yesterday 🙁
    I spent 9 hours trying to get my email server up and running…
    Good Video though!

  • Breaker Name
    Posted at 15:29h, 22 June

    I've been waiting for this!!!!

  • Thoreau
    Posted at 15:30h, 22 June

    Liking your recent series on a rented server. Can this server be configured to act as a proxy? To these server providers allow torrent protocols?

  • Chris Fischer
    Posted at 15:31h, 22 June

    Great video Luke! Question, what would you recommend I do to make it easier for my family members to manage their own email account password if I decide to host my own email server?

  • Federer Fanatic
    Posted at 15:33h, 22 June

    Another problem: How to get all gmails transferred to new email server?

  • DrCruse
    Posted at 15:33h, 22 June

    If you're relying on Vultr not to keylog everything on your VPS, how is this any more secure than trusting ProtonMail or something

  • Aries Red
    Posted at 15:36h, 22 June

    Dear Luke Smith
    I want to reprint your video to China Bilibili platform,and ask for your permission.By the way ,I send once email for you yesterday,if you have time.And thank for you let me known Arch 's more.Have a good day!

  • Francesco La Camera
    Posted at 15:37h, 22 June

    Vultr: Why are all these people deciding to get a mail server now? Jeez

  • shuwan4games
    Posted at 15:40h, 22 June

    personally I say you should just do something like protonmail cause if you are hosting on a vps you still have to trust the provider

  • bsqrd
    Posted at 15:50h, 22 June

    I use mail-in-a-box, auto installs, includes Roundcube (web client), auto configures the server and firewall..etc.
    It's actively maintained. I have it on a cheap Hetzner vps. Works great for what I need. It also gives you a JSON api for easy user / alias creation.
    https://mailinabox.email/

  • George Eliozov
    Posted at 15:52h, 22 June

    actually postfix sends and receives a mails, dovecot provides auth/quota/pop3/imap/sieve….. services

  • Sérgio Teixeira
    Posted at 15:56h, 22 June

    please, dont host your own mail server, not worth the trouble.

  • D
    Posted at 15:59h, 22 June

    based and freedompilled

  • Radu Ciurca
    Posted at 16:01h, 22 June

    Could you use a Raspberry Pi as a mail server? My guess is you can, I'm curious if anyone tried it.

  • RaverDK
    Posted at 16:02h, 22 June

    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.

  • cellomonster
    Posted at 16:13h, 22 June

    Like next vid: YouTube is dumb! Host your own YouTube!

  • Max Stanford-Taylor
    Posted at 16:14h, 22 June

    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

  • Matej Ukmar
    Posted at 16:17h, 22 June

    I'm actually gonna try this 🙂 thanks

  • Harpy Productions
    Posted at 16:21h, 22 June

    ok, but the real question is how do i set up a minecraft server?

  • Jordanski
    Posted at 16:22h, 22 June

    Just use iRedMail it's super easy

  • Diego Roccia
    Posted at 16:37h, 22 June

    Dovecot does not receive mails

  • Bou tast
    Posted at 16:40h, 22 June

    To have a mail server is my dream.

  • Jānis Bērziņš
    Posted at 16:43h, 22 June

    Why not try Mailinabox?
    I've been running it for years, and I love it!

  • skatcat743
    Posted at 16:53h, 22 June

    4:10 me too luke. me too. Being the only person here at my wage cuck job sucks

  • Aneesh Prasobhan
    Posted at 16:53h, 22 June

    Is it as reliable as Gmail tho ?

  • Gantz akira
    Posted at 17:05h, 22 June

    but how did Clinton email server got hacked …

  • bro wot
    Posted at 17:11h, 22 June

    Luke, please, make a tutorial on how to host your own Runescape server.