Score:0

Setup VPS mail server and import to Gmail

tr flag

Problem

Setup

  • There is a dedicated Ubuntu 18.04 VPS.
  • There is a domain "foo.com" bought via GoDaddy.
  • There is a Gmail account "[email protected]".

Goal

The goal is to send a receive emails using company domain via Gmail. For example "[email protected]".

Gmail allows importing and using IMAP profiles:

Import IMAP profile

I would like to do the same thing as described in https://www.youtube.com/watch?v=MEheS8gM4Xs

Except for using my own VPN instead of some 3rd party tool.

Solution

I would assume one would need to:

  • Install Postfix
  • Install Dovecot
  • Tweak GoDaddy DNS MX records
  • Setup Postfix to communicate with Gmail (smtp.gmail.com)

Any ideas or clues how to achieve the goal set?

Score:2
ar flag
  1. Install, configure and ensure that you have a working SMTP server.
  2. Install, configure and ensure you have a working IMAP server.
  3. Add the e-mail account as a account in your gmail setup.

There's no need to configure postfix to communicate with gmail. You simply configure gmail to fetch mail via IMAP from your mailserver.

Given your understanding of e-mail I'd be hesitant of hosting my own. It's a service where it's trivial do do non-obvious blunders that affect delivery and reputation.

Google workspace costs 6USD/month. Your setup will be a Rube Goldberg-contraption that will probably cost comparable amounts of money, and take a lot of time to configure and maintain. It's better to simply let Google handle it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.