How to Run an Email Server with Mail-in-a-Box (on a VPS)

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2021
  • Learn how to setup your own email server with Mail-in-a-box in this tutorial that will use Vultr hosting as an example. While some DNS configuration is necessary, Mail-in-a-box takes care of most of this for you behind the scenes.
    While this tutorial uses Vultr, you can use my affiliate links to host your own email server with any one of these VPS providers.
    - DigitalOcean 👉 ttt.do/DigitalOceanMail ($200 free credits)
    - Vultr 👉 ttt.do/VultrMail ($100 free credits)
    - Contabo 👉 ttt.do/ContaboMail
    - Linode 👉 ttt.do/LinodeMail
    Find more at tonyteaches.tech
    Check out my vlog channel @TonyFlorida
    #mailinabox
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 133

  • @yiannisserpico2646
    @yiannisserpico2646 2 ปีที่แล้ว +3

    You are a great teacher, Tony. Thanks for all videos.

  • @mariocaterp343
    @mariocaterp343 ปีที่แล้ว

    I think I did not leave a comment on youtube for years, but I have to say a big thank you. You are great!

  • @joshuadanielp
    @joshuadanielp 2 ปีที่แล้ว

    Thank you Tony, I asked you about this exact tutorial long back. You finally did it, Thanks a Lot!

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      I'm a one man show so it takes me time. Thanks for the idea!

    • @joshuadanielp
      @joshuadanielp 2 ปีที่แล้ว

      @@TonyTeachesTech We all Love you for what you're doing. For young people like me, you are sharing something which is incredible through your yt channel. Thanks a Lot for Replying and I always look forward to your videos :)

  • @muhammedmustaphaabdullahi1029
    @muhammedmustaphaabdullahi1029 ปีที่แล้ว

    I love you tony thanks for this tutorial you made my day

  • @jdhshs12
    @jdhshs12 2 ปีที่แล้ว

    Great one Tony!! Thx 🙏🏻 for share it!!

  • @wrzq
    @wrzq 2 ปีที่แล้ว

    Of course I found it valuable. Tony you're the Man. Thanks a lot, buddy!

  • @spreadthegarden
    @spreadthegarden ปีที่แล้ว +2

    Wonderful! I now have my first ever email server that I set up myself. 🙂

    • @yourlinuxguy
      @yourlinuxguy 8 หลายเดือนก่อน

      How did you get your ports unblocked?

  • @arivonto
    @arivonto 2 ปีที่แล้ว

    Thanks for the tuto! Really helpful :)

  • @1000left
    @1000left 2 ปีที่แล้ว

    Terrific video!!!!! Thank you again sir!!!!

  • @adrianelvis9931
    @adrianelvis9931 2 หลายเดือนก่อน

    Great video. Anything to be aware of now in 2024?

  • @goteddy6465
    @goteddy6465 2 ปีที่แล้ว

    Hi tony, great video, just want to ask, is there any video where we can see and install mail with not fresh installation on VPS?

  • @unkownsiner
    @unkownsiner ปีที่แล้ว

    Hi Tony, great video. I had a question does this support custom emails? I wanted to create custom emails by using html file format as the main content for different scenarios. If you can make a video on it that too would be greatly appreciated!

  • @worthmind
    @worthmind 2 ปีที่แล้ว

    Great tutorial

  • @metamask0x
    @metamask0x 3 หลายเดือนก่อน

    Very good tutorial tony! Thanks .Is it possible to just use static VPS's ip address / duckdns /freenom for this ?

  • @AthelstanEngland
    @AthelstanEngland 8 หลายเดือนก่อน

    Thanks for this. So did the MIAB install create the ns1 and ns2 nameservers on the Ubuntu server?

  • @jakubtomas9154
    @jakubtomas9154 ปีที่แล้ว

    Bro, I have a working mail server thanks to you. Thank you

  • @slavyivanov4982
    @slavyivanov4982 2 หลายเดือนก่อน +1

    Reagards from Europe, Bulgaria, you do a realy good job with your tutorials. I have a question. Is this work together with web server like apache2 allready running and serve websites on same server machine? I really strugling to find a solution for that. Can you help me a bit please. Thank you!

  • @javadtaghavi8277
    @javadtaghavi8277 ปีที่แล้ว +2

    If the port 25 is blocked. Is it possible to work with 465 or it must be only 25 to be able to set-up this server?

  • @tekunramirez
    @tekunramirez 3 หลายเดือนก่อน

    awesome

  • @rahul_manek
    @rahul_manek 2 ปีที่แล้ว +1

    Hey
    Can i use external SMTP in MIAB like mailjet, sendinblue etc

  • @expertsmedia2250
    @expertsmedia2250 2 ปีที่แล้ว

    Worked Now, Thanks. Maybe it was propagating or something

  • @mytime2016
    @mytime2016 ปีที่แล้ว

    Hi Tony what’s the limit of this smtp method .
    How many emails can be sent ?

  • @MichaelSharpTechniSmart
    @MichaelSharpTechniSmart ปีที่แล้ว +1

    Tony, I just spent the day and night with MiaB Slack forum, trying to get MiaB to run on Contabo. We tried Ubuntu 18.04, 20.04 and Debian 11 and even the Power-MiaB fork and they all had the same error. nsd.service: Failed with result 'exit-code' It seems Contabo are not using the standard Ubuntu/Debian repos/images/templates. Have you tested Contabo?

  • @jairosantos8269
    @jairosantos8269 2 ปีที่แล้ว

    Great!!

  • @tridentsafaristudio7014
    @tridentsafaristudio7014 ปีที่แล้ว

    Hey Tony what's the sending limit for mail in a box

  • @VictorPietroM
    @VictorPietroM 2 ปีที่แล้ว +1

    Hi Tony, really awesome video, thanks! I'm very newbie on this subject, may I ask you what is the difference of this approach from using something like Zoho? I've never used Zoho, but I've done a VPS course and the instructor didn't go into mailing because of its complexity and because it could expose security vulnerabilities, so he recommended using Zoho.

    • @jacopopace7575
      @jacopopace7575 ปีที่แล้ว +2

      The instructor was right, anyway Zoho bring its own contract's limits.
      With a self hosted solution like this, you are free to manage, for example, all the domains domains, subdomains, users, number of email sent etc..
      Other than that, you have much more control over the data passing through your mails (if you build a properly secure environment).

    • @VictorPietroM
      @VictorPietroM ปีที่แล้ว +1

      @@jacopopace7575 hey thanks a lot for the explanation!

  • @mecrayavcin
    @mecrayavcin 2 ปีที่แล้ว

    Hi Tony excellent video. I have a question.
    In manuel configuration, Protocol is IMAP.
    I have a web site in another cloud and i use WP Mail SMTP lugin for basic yandex mail system.
    If i install Mail-in-a-Box, how can i configure SMTP settings on WP Mail SMTP plugin or should i use another plugin for IMAP?
    Thanks.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Settings for external connections are at 16:19

  • @ricardorivera5365
    @ricardorivera5365 2 ปีที่แล้ว

    Great video. DKIM SPF, DMARC record are necessary?

  • @raihanakbar7236
    @raihanakbar7236 8 หลายเดือนก่อน

    i have an email hosting on cpanel but i have problem my storage is full now, my question is can i migrate to this server with ur method? and upgrade the storage btw my storage is 200gb now. sorry if my english bad

  • @sosscs
    @sosscs 28 วันที่ผ่านมา

    but my domain name is already used by another VPS hosting plan, how can I use it again with the Mail-in-a-Box installed on a another VPS?

  • @geziraunited
    @geziraunited ปีที่แล้ว

    I setup my email with virtualmin and Conatbo vps
    round cube is opened but i can not to connect it with outlook
    please guide me to fix this problem
    Thanks , Mohamed

  • @arpro3038
    @arpro3038 2 ปีที่แล้ว +1

    Great video, thank you. My thought is if I use another (3rd part) server then I might as well have my emails on another provider (free or paid).
    The risk is always there that someone is snooping at your information. Also if something ever happens to me my family would not be able to access my email.
    I have a local service provider that allows me to run my own email server with the ports need to host email server.
    Can you please do a video where an average person can do mail in a box self hosted Linux setup, domain by Godaddy? Thank you again.

    • @rickyanthony
      @rickyanthony ปีที่แล้ว

      It's all the same. GoDaddy has a similar dns setup interface as well

  • @usehemmanuel5500
    @usehemmanuel5500 ปีที่แล้ว

    Hi Tony finding it difficult to point servers to domain

  • @mohamedmohamed-wn7yl
    @mohamedmohamed-wn7yl 2 ปีที่แล้ว

    Thanks for wonderful video .... I want to ask what if use centos what I do in command .....

  • @moneyusa5286
    @moneyusa5286 2 ปีที่แล้ว

    Thanks for the inspiration you bring to me and many others. ♥♥ ♥♥ 6:46

  • @mecrayavcin
    @mecrayavcin 2 ปีที่แล้ว

    Hi again Tony :)
    I have nginx lemp debian server and i have 2 sites in it.
    Should i install iRedMail to same server or to another one (new server)?
    Thanks

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      You should have nothing else running on the server before installing iRedMail

  • @youruleyourlife
    @youruleyourlife 2 ปีที่แล้ว +2

    can you make a comparison of VPS companies and a comparison in 2nd video of Gloud Free Tier solutions ?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      I plan to do an overarching comparison one day

  • @farhanzakyme
    @farhanzakyme 2 ปีที่แล้ว

    how to change default email
    avatar in this mail server ?

  • @ddrci88
    @ddrci88 2 ปีที่แล้ว

    Got question ; you didn’t add dkim and sfp record how does it land to inbox box instead spam ? Can you show how to add another domain ? Different then original domain not the subdomain

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +1

      These are automatically configured by Mail in a box

  • @xenstarnetwork5333
    @xenstarnetwork5333 2 ปีที่แล้ว +1

    Can we proceed if port25 is blocked? Or it must be opened before installing mail in a box?

    • @rwahowa
      @rwahowa ปีที่แล้ว

      You can install, but you won't be able to send mail.

  • @EmperorStorky
    @EmperorStorky ปีที่แล้ว +1

    Can you after this still setup a second VPS with a webserver using the same domain?

    • @sugumaranveejakumaran
      @sugumaranveejakumaran ปีที่แล้ว +2

      Yes, you can. You need to edit the DNS records and set your domain's A record to your second VPS.

  • @jesuisbenjamin
    @jesuisbenjamin 2 ปีที่แล้ว

    When you set the timezone, is that the timezone of the server or the timezone of the user? (I'm assuming the former)

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Your users can be anywhere. You can pick your server timezone or your physical location timezone

  • @suvodipebala5272
    @suvodipebala5272 ปีที่แล้ว

    i cant type password to access control panel in there cmd got stuck or something help

  • @youruleyourlife
    @youruleyourlife 2 ปีที่แล้ว +1

    Nice video! , is any other alternatives to Mail-in-a-Box ?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +2

      CyberPanel is another option th-cam.com/video/8G93NVWkXZk/w-d-xo.html and I also have another tutorial coming next month for iRedMail

    • @RealMTBAddict
      @RealMTBAddict 2 ปีที่แล้ว

      @@TonyTeachesTech Which is easiest to set up?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      @@RealMTBAddict Probably Mail in a Box

  • @Ajaykumar-tr4hz
    @Ajaykumar-tr4hz 2 ปีที่แล้ว

    Hi sir good morning.., this is very good to understood but these commads are not working in ubuntu 20.04 version what can i get ? updated version

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Please pay attention to my comments at 1:23

  • @io_inc
    @io_inc หลายเดือนก่อน

    Digital ocean refused to open up port 25 for me

  • @matg795
    @matg795 ปีที่แล้ว

    Ho sorry for my question but how can I setup my dns on namecheap I haven’t the glue records . Thanks for your help

    • @rwahowa
      @rwahowa ปีที่แล้ว

      Last year, I had to do a video for this under different circumstances. Here is the guide: th-cam.com/video/CeBCPfD_l0k/w-d-xo.html

  • @TOBIADEGBOYE
    @TOBIADEGBOYE 2 ปีที่แล้ว

    Please can you help us to setup a postal mail server with ssl enable on linode vps?
    Thanks.

  • @youruleyourlife
    @youruleyourlife 2 ปีที่แล้ว +1

    .. from all mail servers you have work with until now ... Which Email Server is Best to work with ?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      For self hosted, CyberPanel is pretty darn easy to set up

  • @augustomontoya4441
    @augustomontoya4441 4 หลายเดือนก่อน

    Why we need glue records ? I don't get it

  • @Daniel-qo9uv
    @Daniel-qo9uv 2 ปีที่แล้ว

    Hi I host my website from home with virtualmin and Cloudflare. After tel net on port 25 I get this: «telnet: Unable to connect to remote host: Connection timed out.» That to do in this case. I also have a reverse proxy.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Perhaps this video can help th-cam.com/video/qf7nm29svNg/w-d-xo.html

  • @niteshcbz
    @niteshcbz 2 ปีที่แล้ว

    Hey Dear, i want to start tech channel on youtube. pls tell me which software you are using for screen record.

  •  2 ปีที่แล้ว

    I need, vps CentOS 6 where can I find it?

  • @snamas
    @snamas ปีที่แล้ว

    Informative. wont this fit on ubuntu 20.04.

    • @SimenSooz
      @SimenSooz 11 หลายเดือนก่อน

      no, I just try, and get error " This script may be used only on a machine running Ubuntu 14.04, 18.04, or 22.04. "

  • @bashardlaleh2110
    @bashardlaleh2110 2 ปีที่แล้ว +2

    I don't understand why do mail servers need a specific port for outgoing mail why can't they just pick a random port like any client and listen for a specific port for incoming mail like any server

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +1

      That's a good question, and I don't know the answer. My guess is with most protocols, there is a standard and that same goes for mail ports

    • @EitanbAi
      @EitanbAi ปีที่แล้ว

      This is because gmail and other isp listen only to port 25.

  • @CDS1815
    @CDS1815 2 ปีที่แล้ว

    I made one once with digitalocean but problem was that their ips are mostly blocked by email filters…

  • @emmanuelakogwu720
    @emmanuelakogwu720 2 ปีที่แล้ว

    What if I already have website files on the server?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +1

      CyberPanel may be a better option th-cam.com/video/8G93NVWkXZk/w-d-xo.html

  • @worthmind
    @worthmind 2 ปีที่แล้ว

    Please make a tutorial about Postal SMTP Server

  • @MDARH
    @MDARH 2 ปีที่แล้ว

    What happend to your server? Only rules channel is available.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Please make sure you join the server to be able to access all channels

  • @ddrci88
    @ddrci88 2 ปีที่แล้ว

    how to add another domain? thanks

  • @samuraitatin
    @samuraitatin 7 หลายเดือนก่อน

    I haven't finished the video, actually i'm just starting but... RIP Google domains :( really liked that service.

  • @Rahul_Hindu_Mondal_108
    @Rahul_Hindu_Mondal_108 2 ปีที่แล้ว

    Tony brother can you please make a video on how to make digital selling goods website (using wordpress). As I want to sell steam keys minecraft keys etc . Please make a tutorial on it please.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      I don't have experience with that right now, but something I would like to explore in the future

    • @WreeperXD
      @WreeperXD 2 ปีที่แล้ว

      ok

  • @vishnu_deepak_
    @vishnu_deepak_ 2 ปีที่แล้ว

    Please make a video without changing nameservers records of main domain . In Oracle free server please..

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Something I can look into

    • @WreeperXD
      @WreeperXD 2 ปีที่แล้ว

      oracle blocks email ports

  • @MAHDIATMANI
    @MAHDIATMANI ปีที่แล้ว

    When i type this is unsafe it does not work

  • @mutalemulenga8708
    @mutalemulenga8708 2 ปีที่แล้ว

    First one to see this...

  • @FranciscoMarcosMilhomemAbreu
    @FranciscoMarcosMilhomemAbreu 2 ปีที่แล้ว

    Não é recomendado fazer o próprio servidor de email. Acho que isso só pode ser útil em caso muito específico.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      What?

    • @FranciscoMarcosMilhomemAbreu
      @FranciscoMarcosMilhomemAbreu 2 ปีที่แล้ว

      @@TonyTeachesTech por exemplo, em redes internas (intranet) de grandes companhias ou órgãos públicos. Ou simplesmente para aprendizagem.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +1

      @@FranciscoMarcosMilhomemAbreu English please 🙏because I don't speak Spanish

    • @FranciscoMarcosMilhomemAbreu
      @FranciscoMarcosMilhomemAbreu 2 ปีที่แล้ว

      @@TonyTeachesTech, it's not spanish, it's portuguese. XD It is not recommended to make your own mail server. I think this can only be useful in very specific cases. For example, in internal networks (intranet) of large companies or public agencies. Or simply for learning.

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว +1

      @@FranciscoMarcosMilhomemAbreu Excuse my ignorance! Yes I agree there is a lot that goes into setting up and maintaining an email server. Some are concerned about privacy, others cannot afford a paid email service at early stages of their business, and even others are just curious. I hope to provide educational and real-world value.

  • @tiaan_va
    @tiaan_va ปีที่แล้ว

    really wish people would learn how to pronounce Ubuntu correctly....

    • @TonyTeachesTech
      @TonyTeachesTech  ปีที่แล้ว

      How do you say it?

    • @nicolefisher3500
      @nicolefisher3500 ปีที่แล้ว

      @@TonyTeachesTech after this can i use the smtp on third party mailer tools? like Gammadyne

    • @tiaan_va
      @tiaan_va ปีที่แล้ว

      @@TonyTeachesTech oo-boon-too. All 3 'oo' sounds sound the same in the word (like in the word too)

  • @RealMTBAddict
    @RealMTBAddict 2 ปีที่แล้ว

    Lol you're using Google?

  • @jacke.nelson8931
    @jacke.nelson8931 2 ปีที่แล้ว

    Hi tony, is there any other way i can reach you like fb or whatsapp?

    • @TonyTeachesTech
      @TonyTeachesTech  2 ปีที่แล้ว

      Check out my Discord discord.com/invite/2JpRTTxxTG