SELF-HOSTED | Set up and run your own Mailserver with Mailcow | DNS, Security, Installation, Test
Вставка
- Опубліковано 4 лип 2024
- THEY always tell you it is too hard and too complicated to run your own mailserver. Well, that's a lie.
In this video we are going to set up our own mailserver. We discuss reasons to do that, prerequisites, recommendations, security, the actual installation process, setting the required DNS-entries (including DKIM, SPF, and DMARC), setup of mailboxes, and what to do after the installation.
This video is a bit longer, but this is time well spent if you want to run your own mailserver! Please apologize the sound quality - I had some issues with the microphone. :-(
Resources:
GIST with firewall commands:
gist.github.com/opentaq/2ce85...
Mailcow Documentation:
mailcow.github.io/mailcow-doc...
Chapters:
00:00 - Intro
00:36 - Why running your own mailserver?
02:59 - Prerequisites
04:32 - VPS- / VM-Setup
08:17 - Securing the System
10:57 - Reverse DNS
11:51 - Basic DNS
13:49 - Installing the Mailserver
16:10 - Changing the Admin-Password
17:09 - Adding a Domain and Finishing the DNS-Setup
24:05 - Adding a Mailbox
25:38 - Checking the Configuration
27:29 - Using the Mailserver
28:45 - What's Next?
30:28 - What do YOU think?
Let me know your thoughts in the comments below. And while you are there, don't forget to like, to subscribe, and to hit the notification bell - since it helps!
Don't forget: Let's make the world a better place - Now more than ever!
#StandWithUkraine #SelfHosted #Mailserver - Наука та технологія
Hi Karsten, das ist das genialste Tutorial, dass ich jemals zu dem Thema gesehen habe. Du hast damit meinem Mailserver Projekt krassen Rückenwind gegeben. Tausend Dank dafür. Das ist so kurzweilig und cool gemacht und hat zwischen den Parts, die ich schon kannte, die Brücken gebaut. Genial.
You are amazing in teaching, period. I've spent numerous hours reading this, reading that, many enthusiasts' websites on "How to", yet none of them were able to share the information the way I find it right - sharing it in such a way in order to teach the other side. Thank you! You did great! My server is running right now and it's receiving all the emails (tested).
you are so great, please come back with more self hosted series we need the great way of explaination, also let me say we miss you :)
By far one of the better mail server tutorials that I have had the pleasure of sitting through. Wonderful. Thank you for sharing your time and expertise with us. Much appreciated.
Awesome tutorial, I did this as self-hosted on proxmox vm. I only needed additional port forwarding, edits to my reverse proxy and also my domain name host screen layout looked different to the one used, but it came up as in the tutorial. Scored 10/10 on the email test. Great job on the video.
25:48 - you just made me flashback to a Better Call Saul scene with that word "truly". "is there no other way, truly?" this sentence lives in my heart rent-free
This is what a tutorial is supposed to look like! Thank you!
Thank you for your excellent tutorial, Mr Opentaq. 🙏😎 Sound quality was plenty good enough and your explanations were very helpful.
One thing I ran into after the main installation was done was the need to set up an SMTP relay server for my VPS. I couldn't send any email without doing this. This can now be done in the Mailcow UI. There's a section in the mailcow docs under Postfix and Relayhosts. Apart from this, I had a few other things to sort out. I'm testing mailcow on a 2GB RAM server which meant I had to disable ClamAV to prevent out-of-memory situations. I realise this is not recommended for a production email server but it has seemingly been fine for testing and has allowed me to familiarise myself with the rest of the mailcow services.
Seriously good job at explaining the process - although I installed mine on a ubuntu platform, most of it was the same - so thanks for your video tutorial. It helped a lot!
Awesome video! It's just a great job! I'll try this manual tomorrow. I hope it will work. Thanks for your efforts.
Amazing content, thank you for the tips! Got a 8.7 on the spam meter, and setup my first mailserver!!
thank you! mailcow has made the process so easy that its a no brainer for a tech company to run their own mail server - especially if privacy matters to your organization.
now need to look into backups.
Very nice, useful and complete tutorial. Thank you. I will give a trial and install this server. You have convinced me of having my own mail server!
Thanks so much for this video. Every other video I found about a mail server was installing a server that had no GUI. Thisa make it so much easier. Liked & subscribed!
As always, a wonderful and inspiring video! Keep it up!
Thank you so much!
I love the content. I have one bit of unsolicited constructive criticism though, and I only am saying this because I believe you will succeed in this UA-cam game: I would back off a bit on the zoom cuts. If you do it too often, it can become distracting. I would use it to add emphasis only on particular points or when the subject is changing or taking a slight detour. Great camera angle and your technique is on point too, just over used. Most important of all, you're a good speaker and the content is top notch. Keep up the good work, my friend! I'm your 777th subscriber!
Great tutorial! The only problem I faced was the time propagation of DNS updates. Thank you very much for your video.
Excellent tutorial from Germany! You've been a great help here :) Many many thanks
proper tutorial and no stupid loud music. cheers, by the way I did it and it works.
Great Tutorial! Time for us to take control of our own data & businesses moving forward..
Thank you!
I was able to successfully set up my own mailserver!
You are a marvellous person, thank you for the video.
I understand almost everything that you said, and it was quite useful for me.
A few times I skiped a content, and got lot of waste of time then, so It was a little funny to find solution of my problem in a passage of the video that I skiped :)
A fantastic tutorial! Thank you
Nice, and now i have a domain where i can host my own website. Looking forward for more videos to recycle domains :)
the best tutorial to build a mail server that i've seen! thanks a lot!
Thank you!
One of the best tutorials I have seen in years of watching. No extraneous babbling, just the facts. Seriously, this was excellent. My only mild complaint is the background music, especially one part where it had vocals. I am hard of hearing anyway, and have to focus to hear the narration. Thanks so much, and praying for your safety in these troubled times for the Ukraine!
THE tutorial on this topic! No other tutorial comes close!
I managed to get everything but the DNS setup by myself. But this tutorial is awesome and I wish I had used it for the whole setup. Regardless, thanks for the help with the DNS portion!
This is a great tutorial. Can you also make a video on domain/email reputation & deliverability?
Hello and thank you very much for the clear and simple guide, but I wanted to ask you if you could also add the guide for port forwarding that needs to be done on your home router (provided that you always need to have a static public address) and if NGINX Proxy is also present Manager what should he manage and how?
Sorry for too many questions but I think this part should be explored :-)
Thank you very much
Wonderful video, Sir. Many thanks!
Mooohooooo it works !!!! Thank you so much ! (I am on this for almost 1 month already...) I still have to fix these anoying email blocking and spam categorization, but I can send and receive mails :)
I setup the same in ec2 instance and one more local machine. It is working fine. When I am working on the production it is not working ans expected. After adding the DNS. while clicking in the DNS ( to see the record). It is showing 504 gateway time out error. Do have any idea?
excelente video!!!
Recomendado 200%
muy facil de entender y muy funcional para ccomenzar usando seguridad ante todo.
Very nice, in depth tutorial, thanks
Thanks for tutorial, that's helped me a lot with my mailcow installation
This tutorial was indeed helpful! thank you.
great to learn about my own mailserver...Karsten....vielen dank
This is the first tutorial I was able to fulfill my mail server without a glitch
Hello,
Thank you for sharing this,
Works like a charm.
Thank you sir....
This is a fantastic tutorial. Thank you very much!
Great video! Very well explained. My only concern is email reachability these days (aka oligopoly). Did you have any big issue?
Thank you very much for this excellent tutorial.
Great tutorial, I got issues with mailcow's web GUIs (admin andwebmail) with port 80 and 443 since I already had a web server running, just change them on mialcow's configuration and now its fine.
Also got problems sending emails since my server is hosted by vultr and by default they block the SMTP ports (solved by opening a ticket explaining I will not be a spammer).
Wow, awesome video!
Fantastic guide, thanks!
Appreciate this!!
Very good video! Thanks.
Thank you! Great tutorial!!!
Great tutorial, thank you!
Really great tutorial I've ever seen...
I liked, subscribed and HIT the notification bell!
Can you go a bit deeper on the rest of the DNS settings?
btw, I like the female vocalist's voice in your background music. What is it?
Great content!
Thank you so much. It was really really helpful for me.
great tutorial!
I've started using Cloudflare Tunnel for 3 of my domains, and it effectively masks your home IP and does not require a static IP. Would this work for a mailserver as well?
nice and excellent !
thanks for the detailed vid man. I wonder how this works if i host multi websites/domains on the same server.
Prefect !, With German precision. I've watched lots of other videos that skip some parts so you end up without a worker server.
A second part might add a spam filter ? Just an idea ...
Great, thank you! So helpfull
Top - Danke für's Video !
just fantastic, thanks
I run mailinabox for years now, and i never had problems!
Also it requires much less resources
@@notDacian what server provider are u using. As alot of service providers ban the mail ports
@@kennethlau8108 In the beginning i used AWS Lightsail, but now i moved my box to Hertzner, they have better deals and overall i feel the performance is better. For Hertzner you have to wait 1 month for your account to be able to open port 25.
@@kennethlau8108 You can see he is using Hetzner, but you have to aopply after 3 months to unblock port 25.
@@notDacian if I can use AWS Lightsail I'm good then
Great tutorial!! Question tho.. would using a service like no-ip or duckdns work for setting this up in my home lab? I really dislike the idea of having a monthly bill of using a VPS and I find the cost of using no-ip way more affordable
Thank you! By the way if you get a "unbound test fail" error, replace the unbound image with
unbound-mailcow:
image: mvance/unbound:latest
Great video. Did I miss the part where you routet all of the trafic to the VM? How did you do that?
thanks you so much, really help
Nice. How can i use letsencrypt certificate for secure Mailcow server?
thank you, great video
Awsome! thanks...
Subscribed & Hit the bell button my lord.
Would love a tutorial on how to use and configure wildcard SSL on mailcow and mail domains
Hi there thank you. I followed along everything is working fine except for ma domain it is not secured no https.please help
Followed the same steps as you did but getting 5/10 for the mail-tester.
My lowest scores are in the dmarc and dkim, any suggestions ?
I have a stupid question here. Is it possible to do this and provide email hosting services? Clients will provide their domain names and we create professional emails for them? thank you
CAN I USE THE EMAIL ACCOUNTS FOR SENDING COLD EMAILS?
like to know how to use mailcow with nginx proxy manager ... didn´t find a proper configuration yet. Any pracitcal idea?
Can I use my websites domain or would I have to buy another one for this?
Very nice. Thank you. What about spam? How do you block spam?
Is this possible to do on a preinstalled version of debian?
The command that is unfortunately not in the description: sudo ufw allow 22,25,80,110,143,443,465,587,993,995,4190/tcp
How do you check DMARC-reports and how should you action and maintain your abuse email?
Can i setup it with kubernetes and ingress?
Can I be able to connect remotely to this mailserver with smtp credentials?
Which hosting provider is offering reverse DNS without extra cost?
Finally i understand it
How do you uninstall docker when you've installed it like this?
I am confused at 8:27 part, is it ssh from my VM to my PC? or from my PC to its VM?
I am just confused what machine we are referring to. sorry for being newb
The hardest part is migrating from a previous mail system preserving all previous data for all accounts, specially if it is a lot.
Not really. IMAP sync.
@@connor7439yep. This.
what is sending limit of this in inbox on receipient side ? can i send 100k inbox a day?
One question, how to setup using reverse proxy, like nginx proxy manager behind nat on private ip , with redirect ports from video?!
Hi, when i setup the server, i keep getting "mydomain"/debug. Any idea why?
Do you know of any information on how to migrate my email domains away from Exchange 2007 to mailcow. I have mailcow set up per this tutorial but having trouble getting the correct mail server to show in the mailcow dns recoreds. It keeps wanting to show the exchange server even after all the dns records are set and the mailcow server is set with a lower priority level than the exchange priority. Any hints or references are appreciated.
Hi, super Anleitung. Was aber interessant wäre - Mailcow in Verbindung mit Proxy wie z.B.: Proxmox Mail Gateway nutzen oder Mailcow selbst mit MTA-STS benutzen, was wäre sinnvoller ?
Help! I can send emails but can't recieve them. Anybody have any idea of why it may be?
salam alaikoum,
Thank you for this wonderful tutorial, I hope doing well, I just have question after searching for what reason allowing the port 4190 (ManageSieve Protocol).
I followed the tutorial to build the mailserver, it's working properly but i can't connect through smtp with a mail client, please what could be the issue.
Thanks for this video! Maybe a stupid question. If i need to restart the server, should i first close Docker / Mailcow? or can i just sudo reboot?
What did you find?
thank you very much for your share 👍
i can't able to send the mails. the mail test itself failed. i had deployed the configuration settings on gcp virtual machine
Thank you 💪