Hi,
I have a mailcow setup that works perfectly with a personal domain (domain1.it).
I want to use my mailcow server to relay my Gmail email address so that the mails get pulled into a local mailbox (gmail@domain1.it) and I can reply as my-personal-gmail@gmail.com.
I’m trying to get this configuration because of the gmail storage limits that are not sufficient, in this way I can store all the emails in my server and get a good price per GB.
I’ve created my gmail@domain1.it without problems, and I’ve also configured an IMAPSync that automatically pulls the emails from the GMAIL servers. The receive part is working like a charm 🙂
Now the difficoult part. To be able to send emails as @gmail.com I need to go through the gmail SMTP servers, otherwise they will get rejected. But I’m having difficoulties acheiving the correct configuration.
This is what I’ve tried so far:
- I’ve added the @gmail.com domain to my mailcow, with the flags to relay all mailbox except local ones.
- I’ve created a local mailbox “my-personal-gmail@gmail.com” with a Sender-dependent transport that use the Gmail SMTP and some credentials I’ve created (an app password).
- I’ve configured my account (gmail@domain1.it) to be able to send emails as my-personal-gmail@gmail.com
With this configuration I’m able to send emails as long as the recipient address is not a @gmail.com mailbox. In that case, the “domain relay” flag takes advantage and tries to send the email directly to Gmail servers (not using the SMTP configured in the Sender-dependent transport) and the email bounces back because gmail refuse to deliver it.
Is there any way to get this configuration working? There is another complete different configuration that works?
I’ve also tried to create an alias, but in that case I was unable to configure mailcow so that the outgoing emails pass through an SMTP server (the Sender-dependent transport).
Thank you for any help you would provide <3