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
  • Навчання та стиль

КОМЕНТАРІ • 137

  • @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!

  • @yiannisserpico2646
    @yiannisserpico2646 2 роки тому +3

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

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

  • @wrzq
    @wrzq 2 роки тому

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

  • @jdhshs12
    @jdhshs12 2 роки тому

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

  • @spreadthegarden
    @spreadthegarden Рік тому +2

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

    • @yourlinuxguy
      @yourlinuxguy 9 місяців тому

      How did you get your ports unblocked?

  • @muhammedmustaphaabdullahi1029

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

  • @khalidelgazzar
    @khalidelgazzar 2 дні тому

    Great video 😊 thanks Tony

  • @1000left
    @1000left 2 роки тому

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

  • @arivonto
    @arivonto 2 роки тому

    Thanks for the tuto! Really helpful :)

  • @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!

  • @metamask0x
    @metamask0x 5 місяців тому

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

  • @worthmind
    @worthmind 2 роки тому

    Great tutorial

  • @jakubtomas9154
    @jakubtomas9154 Рік тому

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

  • @adrianelvis9931
    @adrianelvis9931 3 місяці тому +1

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

  • @AthelstanEngland
    @AthelstanEngland 9 місяців тому

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

  • @javadtaghavi8277
    @javadtaghavi8277 Рік тому +3

    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?

  • @slavyivanov4982
    @slavyivanov4982 4 місяці тому +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!

  • @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?

  • @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!

  • @tekunramirez
    @tekunramirez 5 місяців тому

    awesome

  • @jairosantos8269
    @jairosantos8269 2 роки тому

    Great!!

  • @rahul_manek
    @rahul_manek 2 роки тому +1

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

  • @tridentsafaristudio7014
    @tridentsafaristudio7014 Рік тому

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

  • @ricardorivera5365
    @ricardorivera5365 2 роки тому

    Great video. DKIM SPF, DMARC record are necessary?

  • @mytime2016
    @mytime2016 Рік тому

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

  • @expertsmedia2250
    @expertsmedia2250 2 роки тому

    Worked Now, Thanks. Maybe it was propagating or something

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

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

  • @raihanakbar7236
    @raihanakbar7236 9 місяців тому

    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

  • @mohamedmohamed-wn7yl
    @mohamedmohamed-wn7yl 2 роки тому

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

  • @sosscs
    @sosscs 2 місяці тому

    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?

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

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

  • @farhanzakyme
    @farhanzakyme 2 роки тому

    how to change default email
    avatar in this mail server ?

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

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

  • @usehemmanuel5500
    @usehemmanuel5500 Рік тому

    Hi Tony finding it difficult to point servers to domain

  • @alexandredavitaia7518
    @alexandredavitaia7518 25 днів тому

    it will be very usefull if you paste commands in description so we do not have to type again can copy paste

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

  • @EmperorStorky
    @EmperorStorky 2 роки тому +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.

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

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

  • @youruleyourlife
    @youruleyourlife 2 роки тому +1

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

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому +2

      CyberPanel is another option ua-cam.com/video/8G93NVWkXZk/v-deo.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

  • @moneyusa5286
    @moneyusa5286 2 роки тому

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

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

  • @TOBIADEGBOYE
    @TOBIADEGBOYE 2 роки тому

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

  • @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 ua-cam.com/video/qf7nm29svNg/v-deo.html

  • @io_inc
    @io_inc 2 місяці тому

    Digital ocean refused to open up port 25 for me

  • @augustomontoya4441
    @augustomontoya4441 5 місяців тому

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

  • @suvodipebala5272
    @suvodipebala5272 Рік тому

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

  • @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: ua-cam.com/video/CeBCPfD_l0k/v-deo.html

  • @iagosauer
    @iagosauer 20 днів тому

    Here:
    500 Internal Server Error
    Internal Server Error
    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

  • @snamas
    @snamas Рік тому

    Informative. wont this fit on ubuntu 20.04.

    • @SimenSooz
      @SimenSooz Рік тому

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

  • @niteshcbz
    @niteshcbz 2 роки тому

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

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

  •  2 роки тому

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

  • @CDS1815
    @CDS1815 2 роки тому

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

  • @worthmind
    @worthmind 2 роки тому

    Please make a tutorial about Postal SMTP Server

  • @emmanuelakogwu720
    @emmanuelakogwu720 2 роки тому

    What if I already have website files on the server?

    • @TonyTeachesTech
      @TonyTeachesTech  2 роки тому +1

      CyberPanel may be a better option ua-cam.com/video/8G93NVWkXZk/v-deo.html

  • @samuraitatin
    @samuraitatin 8 місяців тому

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

  • @ddrci88
    @ddrci88 2 роки тому

    how to add another domain? thanks

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

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

  • @mutalemulenga8708
    @mutalemulenga8708 2 роки тому

    First one to see this...

  • @vishnu_deepak_
    @vishnu_deepak_ 2 роки тому

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

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

  • @MAHDIATMANI
    @MAHDIATMANI Рік тому

    When i type this is unsafe it does not work

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