0

Problem

Setup

  • There is a dedicated Ubuntu 18.04 VPS.
  • There is a domain "foo.com" bought via GoDaddy.
  • There is a Gmail account "some.name@gmail.com".

Goal

The goal is to send a receive emails using company domain via Gmail. For example "some.name@foo.com".

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?

0leg
  • 163
  • 1
  • 1
  • 6

1 Answers1

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

vidarlo
  • 6,654
  • 2
  • 18
  • 31