How to Redirect emails using postfix, custom domain and ubuntu 18.04

September 29, 2018 1.3k views
Email Ubuntu 18.04

Hey all,
yeah, I know that this question appeared a lot of times here, but I followed all answers and a lot of tutorials trying to configure my Droplet with Postfix to redirect my emails to my gmail box

I need some help to configure the follow items:
My MX domain (mx.mydomain.com or mail.mydomain.com) - if is it really needed
My Postfix to redirect the mails received in the mail box contact@mydomain.com to my gmail (free account) myfreeaccount@gmail.com

If someont can help me, I’ll be very very very glad

2 comments
  • New information

    The mail is reaching the postfix service now, but I’m receiving the follow message:

    B45CC425A7: to=myfreeaccount@gmail.com, orig_to=contact@mydomain.com, relay=none, delay=201812, delays=201661/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1b]:25: Connection timed out)

  • DNS Configuration Working
    CNAME mx.mydomain.com is an alias of mydomain.com. 600
    MX mydomain.com mail handled by mydomain.com. 600

Be the first one to answer this question.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!