I have CentOS 7 on my Linode server and I'm trying to forward incoming emails to one of my domains on this server (email@example.com) to my gmail address (firstname.lastname@example.org), have done this before, but I'm stumped on why it's not working now as I'm trying to set it up.
And others like it: - https://www.andreagrandi.it/2014/08/31/getting-started-with-digital-ocean-vps-configuring-dns-and-postfix-for-email-forwarding/ - http://willjackson.org/blog/configure-postfix-forward-e-mail-external-address
Added this to /etc/postfix/main.cf:
virtual_alias_domains = example.com virtual_alias_maps = hash:/etc/postfix/virtual
And in /etc/postfix/virtual:
Did "postmap /etc/postfix/virtual" and then reloaded and restarted Postfix. But sending emails to email@example.com still isn't getting redirected to my gmail address...
What could I be missing here, does anything else need to be updated in main.cf for email forwarding?
Update - For some reason, not seeing anything show up in my logs (/var/log/maillog) when sending an email to firstname.lastname@example.org: