SELF-HOSTED | Set up and run your own Mailserver with Mailcow | DNS, Security, Installation, Test

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии • 252

  • @WokCorner
    @WokCorner Год назад +9

    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

  • @nura943
    @nura943 Год назад +7

    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.

  • @ishi92
    @ishi92 Год назад +8

    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.

    • @p4nd4hunters68
      @p4nd4hunters68 3 месяца назад

      How did you resolve it? I believe Portainer can back up the entire container in some way. Or is there another method?

  • @ze3rax
    @ze3rax 8 месяцев назад +3

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

  • @boss0killer
    @boss0killer 2 года назад +59

    This is what a tutorial is supposed to look like! Thank you!

  • @carter608
    @carter608 17 дней назад

    You are the first channel I have actually been able to find that had any sort of tutorial and I had a easy time understanding how everything works thank you so much

  • @Star-egy
    @Star-egy 2 года назад +6

    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 :)

    • @adamkahava
      @adamkahava 11 дней назад +1

      Add MX record in your DNS records and set the name of it as your domain name and the value of it as the IP address of your mail server

  • @dwrout
    @dwrout Год назад +8

    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.

  • @PeterBatah
    @PeterBatah 11 месяцев назад

    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.

  • @Stiffy_the_magnificent
    @Stiffy_the_magnificent Месяц назад

    I just want to say Thank you, this has been the best and most comprehensive tutorial I've found on setting up a home email server.

  • @raven325i
    @raven325i 2 года назад +13

    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!

  • @jim7smith
    @jim7smith Год назад +3

    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!

  • @psi4j
    @psi4j 2 года назад +15

    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 RUclips 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!

    • @benjaminralston7046
      @benjaminralston7046 3 месяца назад +1

      +1 on backing off on the zoom cuts. I am easily distracted and I could not focus on the tutorial because the view was constantly changing.

  • @francesco4143
    @francesco4143 2 года назад +2

    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

  • @akiyai
    @akiyai 11 месяцев назад

    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!

  • @sideshowlol
    @sideshowlol Год назад +1

    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.

    • @the_chilli_town
      @the_chilli_town 3 месяца назад

      Hello @sideshowlol , what cloud provider are you using. None of the big one seems to open port 25 for new users

    • @sideshowlol
      @sideshowlol 3 месяца назад +1

      @@the_chilli_town Have you tried alternatives such as port 587 (SMTP with auth) or port 465 (SMTP over SSL)?

  • @3rdClaude
    @3rdClaude 2 года назад +2

    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!

  • @viniciostorres
    @viniciostorres 10 месяцев назад

    Great tutorial! The only problem I faced was the time propagation of DNS updates. Thank you very much for your video.

  • @commievoyager
    @commievoyager 2 года назад +2

    Awesome video! It's just a great job! I'll try this manual tomorrow. I hope it will work. Thanks for your efforts.

  • @patrickscheel2033
    @patrickscheel2033 2 года назад +9

    As always, a wonderful and inspiring video! Keep it up!

    • @opentaq
      @opentaq  2 года назад +6

      Thank you so much!

  • @pharaohstudiosllc
    @pharaohstudiosllc 10 месяцев назад +1

    Great Tutorial! Time for us to take control of our own data & businesses moving forward..

  • @Epicvids61
    @Epicvids61 2 года назад +2

    Amazing content, thank you for the tips! Got a 8.7 on the spam meter, and setup my first mailserver!!

  • @rosolovsky
    @rosolovsky 2 года назад +3

    Nice. How can i use letsencrypt certificate for secure Mailcow server?

  • @Dvalin21
    @Dvalin21 6 месяцев назад +1

    Hello, I was wondering if you could do a updated version of this video? Cloudfare and mailcow has changed a lot. Thanks in advance.

  • @decemberfrostpaindine7987
    @decemberfrostpaindine7987 10 месяцев назад

    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

  • @geoffgates8264
    @geoffgates8264 Год назад

    proper tutorial and no stupid loud music. cheers, by the way I did it and it works.

  • @frankuchan3080
    @frankuchan3080 2 года назад +2

    Thank you!
    I was able to successfully set up my own mailserver!

  • @Sebinator007
    @Sebinator007 24 дня назад +1

    Das war ein wirklich gut durchdachtes Tutorial, danke!

  • @thomasmullen2511
    @thomasmullen2511 5 дней назад

    The reverse DNS us confusing for me. You say that it's the host, not the dns provider. Does that mean if you aren't using a host service that this step isn't needed? In my case, I host my VMs through proxmox and my domain is provided by Cloudflare. I'm jus not sure if the reverse DNS step is only needed if the host is external or in my case where woukd I go to set it up? Thank you!

  • @Robert08010
    @Robert08010 29 дней назад

    I am wondering if you can offer a suggested price to do this. For example, how much generally would it cost to lease a server with that configuration? How many people can it support (generally) and how much more per additional user if we're assuming say 50 GB per user?

  • @AlexS-so7wk
    @AlexS-so7wk 9 месяцев назад

    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 :)

  • @sirwrad
    @sirwrad Год назад +1

    the best tutorial to build a mail server that i've seen! thanks a lot!

  • @danielrdugan
    @danielrdugan 2 года назад +2

    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

  • @romainrochas1474
    @romainrochas1474 8 месяцев назад

    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 :)

    • @saranyasreedharan480
      @saranyasreedharan480 8 месяцев назад

      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?

  • @invention69
    @invention69 4 месяца назад

    Hi. Please also specify what is the required speed of internet connection? If running at home with static ip.

  • @ADHDOCD
    @ADHDOCD Год назад +4

    This is a great tutorial. Can you also make a video on domain/email reputation & deliverability?

  • @mainegrower
    @mainegrower 5 месяцев назад

    I have a setup with virtual hosts but with a dedicated IP address for this. How do I go about setting this up on an existing server I'm running with virtualhosts and apache2

  • @FirstnameLastname-we6dh
    @FirstnameLastname-we6dh Год назад +20

    For better security don't setup a root password when installing Debian. If you skip this and only setup a user account the root account will be disabled and you'll get root access on the user account when using the sudo automatically. You may also want to enable automatic updates by installing and configuring unattended-upgrades.

    • @martingerlach_1990
      @martingerlach_1990 Год назад

      You mean PGP instead of a root password and get root access with sudo -aG sudo username?

    • @sveps8883
      @sveps8883 3 месяца назад

      For even better security use Gentoo, customise the kernel, use open-doas over sudo.
      Or if you have the knowledge about BSD use a version of FreeBSD or NetBSD, or even OpenBSD if you want maximum security.

  • @sparti89
    @sparti89 2 года назад +2

    Nice, and now i have a domain where i can host my own website. Looking forward for more videos to recycle domains :)

  • @James_Alfonso
    @James_Alfonso 6 месяцев назад

    This is the first tutorial I was able to fulfill my mail server without a glitch

  • @JayPatel-wn7hs
    @JayPatel-wn7hs 2 месяца назад

    at my server i using ERP for my company they already used port 80 and 443. so now how to install mailcow on same server.

  • @notDacian
    @notDacian 2 года назад +2

    I run mailinabox for years now, and i never had problems!

    • @notDacian
      @notDacian 2 года назад

      Also it requires much less resources

    • @kennethlau8108
      @kennethlau8108 2 года назад

      @@notDacian what server provider are u using. As alot of service providers ban the mail ports

    • @notDacian
      @notDacian 2 года назад +1

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

    • @MichaelSharpTechniSmart
      @MichaelSharpTechniSmart 2 года назад

      @@kennethlau8108 You can see he is using Hetzner, but you have to aopply after 3 months to unblock port 25.

    • @chimastudios
      @chimastudios 2 года назад

      @@notDacian if I can use AWS Lightsail I'm good then

  • @gf6h75fghfghfghdfh7
    @gf6h75fghfghfghdfh7 2 года назад +3

    Great video! Very well explained. My only concern is email reachability these days (aka oligopoly). Did you have any big issue?

  • @donboscow9291
    @donboscow9291 11 месяцев назад

    THE tutorial on this topic! No other tutorial comes close!

  • @TutoDS2014
    @TutoDS2014 5 месяцев назад

    Is possible to add multiple domains to mailcow?

  • @phobes
    @phobes 2 года назад +1

    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?

  • @fransvanderwerf7485
    @fransvanderwerf7485 Год назад

    Excellent tutorial from Germany! You've been a great help here :) Many many thanks

  • @yoyo26-34
    @yoyo26-34 11 месяцев назад

    not working for me. When sending a mail, I got "orange screen with ERROR" but no error description... When login the admin panel, I checked all logs but no error reported in postfix or any other section. So mail is not sent and I have not idea why... However thks for this very clean and detailed video

  • @angeldelvax7219
    @angeldelvax7219 4 месяца назад

    Why do you use docker? Does mailcow have a relay built in? How do you do the reversed DNS part on a local physical machine in stead of a VPS?

  • @YeloPartyHat
    @YeloPartyHat 9 месяцев назад

    How do you check DMARC-reports and how should you action and maintain your abuse email?

  • @cryptoharvester
    @cryptoharvester Месяц назад

    @Opentaq Great video I tried everything step by step like in video and even downloaded your exact version and I get stuck at the docker part. Perhaps can you do a new video with the new Debian possibly. I tried it on the newer and was able to do everything but were it gets lost on that something to to do with the sql database. Im always up for a challege and boy this is one lol.

  • @brandonmoore3124
    @brandonmoore3124 6 месяцев назад

    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.

  • @maxmuster6691
    @maxmuster6691 6 месяцев назад

    Great video. Did I miss the part where you routet all of the trafic to the VM? How did you do that?

  • @ayhangunay1178
    @ayhangunay1178 9 месяцев назад

    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 ?

  • @reformatioinpeius2743
    @reformatioinpeius2743 Год назад +1

    Help! I can send emails but can't recieve them. Anybody have any idea of why it may be?

  • @markanthonypadin608
    @markanthonypadin608 7 месяцев назад

    I am stuck at "Reverse DNS", I want to know where to find this Hoster?

  • @gopireddy5131
    @gopireddy5131 3 месяца назад

    Excellent tutorial; saved me a ton of time! Got this running and created a few mail boxes with a password that the users should change on first login. What config changes do I make to require users to change their passwords on first login? Appreciate any help. I didn't see any UI elements on the webmail client to change the password.

  • @RavivarmanJ
    @RavivarmanJ 9 месяцев назад

    i can't able to send the mails. the mail test itself failed. i had deployed the configuration settings on gcp virtual machine

  • @maxime_vhw
    @maxime_vhw 5 месяцев назад

    Wait i'm confused about the reverse dns. You do this in the hoster? But im selfhosting on my homelab. I just have a domain, and my own server.

  • @Sabs761010
    @Sabs761010 4 месяца назад

    Hi, do you have a video to create a mailserver in linux using postfix and samba or ldap to autentificate users?

  • @kerimhasanyildirim
    @kerimhasanyildirim 5 месяцев назад

    Can I use mailcow as a smtp server such as connecting it from a programming language with smtp over through port 25 or 587?

  • @PatGreen-t4g
    @PatGreen-t4g 6 месяцев назад

    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.

  • @JuanFernandoGallegoGomez
    @JuanFernandoGallegoGomez Год назад +2

    The hardest part is migrating from a previous mail system preserving all previous data for all accounts, specially if it is a lot.

    • @connor7439
      @connor7439 Год назад +1

      Not really. IMAP sync.

    • @nilpo
      @nilpo 11 месяцев назад

      ​@@connor7439yep. This.

  • @megyptmEgy
    @megyptmEgy 2 месяца назад

    awesome :-) really i like your tutorial, one question please if i already have VPS with php, mysql, apache server if i install docker nothing will fail my current work is that right ???
    as i didn't use docker before thats why i ask this question.
    Looking for help :-)

  • @YeloPartyHat
    @YeloPartyHat 9 месяцев назад

    How do you uninstall docker when you've installed it like this?

  • @SobatErzet1
    @SobatErzet1 2 месяца назад

    Hello friend I did all the steps but sent messages but I can't receive message from others like Gmail. Could someone tell me if I have the same error and how did I solve it?

  • @essanhaji
    @essanhaji Год назад

    Hi there thank you. I followed along everything is working fine except for ma domain it is not secured no https.please help

  • @NunoRibeiro1975
    @NunoRibeiro1975 2 месяца назад

    Can I built it inside a LXC instead of a VM?

  • @dallascao
    @dallascao 9 месяцев назад

    Thank you! By the way if you get a "unbound test fail" error, replace the unbound image with
    unbound-mailcow:
    image: mvance/unbound:latest

  • @yourlinuxguy
    @yourlinuxguy Год назад

    Why didn't you used port 587? Like these ports are supposed to used for SMPT delivery rather than port 25 which is SMPT relay and is blocked by most ISP and Cloud Providers.

  • @MehrTV.
    @MehrTV. 10 месяцев назад

    everything i did like you, and my score was 10/10. but my email went to spam !!!! what is the problem ? ith another toturial also i did, iredmail., and the same thing happend!! also you didnt said how to install ssl certificate on server, when i brows my server hostnaime, it says this site is not secure

  • @vmerinom
    @vmerinom 3 месяца назад

    Thanks for this great explanation and the video! Regards from Chile

  • @denystry
    @denystry Год назад

    Hi i got an error:
    dovecot-mailcow Cannot start service dovecot-mailcow: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting rlimits for ready process: error setting rlimit type 6: operation not permitted: unknown

  • @MichaelSharpTechniSmart
    @MichaelSharpTechniSmart 2 года назад +1

    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?

  • @nephygt.h.k1187
    @nephygt.h.k1187 7 месяцев назад

    Can I be able to connect remotely to this mailserver with smtp credentials?

  • @GrundGad
    @GrundGad 9 месяцев назад

    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 ?

  • @CodinTest
    @CodinTest 7 месяцев назад

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

  • @fabienl.7569
    @fabienl.7569 Год назад

    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

  • @smalltimer4370
    @smalltimer4370 11 месяцев назад

    Would love a tutorial on how to use and configure wildcard SSL on mailcow and mail domains

  • @jmsvigno
    @jmsvigno Год назад

    One question, how to setup using reverse proxy, like nginx proxy manager behind nat on private ip , with redirect ports from video?!

  • @gunnerguy31
    @gunnerguy31 Месяц назад

    will this stand againts oauth2 tho

  • @gomo5628
    @gomo5628 9 месяцев назад

    thanks for the detailed vid man. I wonder how this works if i host multi websites/domains on the same server.

  • @guandulin
    @guandulin Год назад

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

  • @DNAblue2112
    @DNAblue2112 Год назад

    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!

  • @Ruoall
    @Ruoall Год назад +2

    Where the hell do you get a $5 server with 2 CPUs and 4GB or Ram?

    • @opentaq
      @opentaq  Год назад +1

      Hetzner

    • @opentaq
      @opentaq  Год назад

      At least last year, that was still an option.

    • @ancour
      @ancour 7 месяцев назад

      Hi give you better then hetzner, there server always get blast and data get erased

  • @ghazixdii
    @ghazixdii 7 месяцев назад

    CAN I USE THE EMAIL ACCOUNTS FOR SENDING COLD EMAILS?

  • @andrewkamoha4666
    @andrewkamoha4666 2 года назад

    18:57 Inglorious Bastards - 3 glasses scene ???

  • @AquaBliss_gr
    @AquaBliss_gr Год назад

    looks great! how can we add virus protection etc? what are the possibilities of hacking? and how? Thank you.

  • @zekarov
    @zekarov 2 года назад +5

    A fantastic tutorial! Thank you

  • @northblue8216
    @northblue8216 Год назад

    Very nice. Thank you. What about spam? How do you block spam?

  • @cyberamooz
    @cyberamooz Месяц назад

    Thanks but after send mail , my mail go to folder spam !!!!!???

  • @veroxsity2336
    @veroxsity2336 10 месяцев назад

    Is this possible to do on a preinstalled version of debian?

  • @SoRoSMaster
    @SoRoSMaster 6 месяцев назад

    Give more video about Mailcow, example I have 4 company domain, I need buy 1 VPS but I will give every company 1 panel for mails.

  • @farmermet6242
    @farmermet6242 2 года назад

    like to know how to use mailcow with nginx proxy manager ... didn´t find a proper configuration yet. Any pracitcal idea?

  • @erbmur
    @erbmur Год назад +1

    This is incredible! I am now able to send emails through my own domain, but I don't seem to be able to recieve anything. Any pointers as to what I might be doing wrong or missing?

    • @zk321
      @zk321 Год назад

      inapparopiate picture

    • @erbmur
      @erbmur Год назад

      grow up@@zk321

  • @reneb.248
    @reneb.248 7 месяцев назад

    Why do you use a VM instead of a Debian CT?

  • @kamaljoshi9644
    @kamaljoshi9644 Год назад

    what is sending limit of this in inbox on receipient side ? can i send 100k inbox a day?

  • @gustavomejia9184
    @gustavomejia9184 Год назад

    Can I use my websites domain or would I have to buy another one for this?

  • @miguelpalencia4386
    @miguelpalencia4386 8 месяцев назад

    excelente video!!!
    Recomendado 200%
    muy facil de entender y muy funcional para ccomenzar usando seguridad ante todo.

  • @VishalSharma-ri8mo
    @VishalSharma-ri8mo 9 месяцев назад

    Can i setup it with kubernetes and ingress?