# Forward email to gmail instead of POP3

**URL:** <https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882>\
**Category:** General Discussion\
**Created:** [March 24, 2026, 12:22am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882 "2026-03-24T00:22:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![eng3](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@eng3](https://forum.virtualmin.com/u/eng3)\
**Post date:** [March 24, 2026, 12:22am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/1 "2026-03-24T00:22:22Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | CentOS 9 |
| Webmin version | 2.62 |

I have several email accounts. To make things easier, I have had Gmail use POP3 to retrieve the emails so that I can benefit from its spam filters and organize more easily.  
Gmail is removing this feature and I’m wondering what is a good alternative.

They suggest I forward emails to my gmail. If I recall, this is an issue because everything including spam will get forwarded and eventually my domain will be considered a spam domain by google.  
I also recall there was some issue with DKIM DMARC SPF.

I’m guess I’m not the only one that does this. I wonder what others are doing to workaround googles newly created headache for everyone.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [March 24, 2026, 5:45am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/2 "2026-03-24T05:45:29Z")

</div>

Maybe check this service

> **[MailPorter - Import emails to Gmail from any mail server](https://mailporter.io/)**
>
> MailPorter lets you import emails from any POP3 or IMAP server directly into your Gmail inbox. It's the replacement for Gmail's discontinued mail fetcher feature.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [March 24, 2026, 8:41am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/3 "2026-03-24T08:41:11Z")

</div>

> [@eng3](#):
>
> They suggest I forward emails to my gmail. If I recall, this is an issue because everything including spam will get forwarded and eventually my domain will be considered a spam domain by google.

This is because virtualmin does not have `SRS` which rewrites the emails `headers/envelope` to compensate that it is now virtualmin effectively sending this email to Gmail, but keeping all of the original emails details.

I beleiev `ARC` also helped with this, but it has been a moment since I looked at this and I am not sure how widesprrad the adoption of this technology is.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [March 24, 2026, 9:02am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/4 "2026-03-24T09:02:21Z")

</div>

that is a pity, seems like they are a bit new (i await their feedback)

 ![unsafe mailporter](https://cdn.forum.virtualmin.com/uploads/default/original/3X/d/c/dc592b1063e6df33cedb3a3907b06f4c1a040111.png)

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [March 24, 2026, 9:22am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/5 "2026-03-24T09:22:39Z")

</div>

I emailed them, got this response.

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/7/6/76b190f94dc1d6a7b633aa3a7cef42a26f2eafe2.png)

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [March 24, 2026, 10:03am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/6 "2026-03-24T10:03:12Z")

</div>

that was faster than my ask - am still waiting a response.

it is not really very helpful - just suggesting “ignore security”

it still suggests too me “we are new, not yet approved, wait until we are”

I think I will wait until someone with less security concerns takes the plunge

---

<div class="post-metadata">

**Author:** ![eng3](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@eng3](https://forum.virtualmin.com/u/eng3)\
**Post date:** [March 24, 2026, 2:10pm UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/7 "2026-03-24T14:10:42Z")

</div>

So if I understand, they use pop3/imap to get your emails. Then I guess Gmail has an API that allows you to insert emails. Interesting. I wonder if there are any open projects out there that let me just do this on my on VPS directly. Technically it could just access my email directly without pop3 since I’m running it on the server.

That sounds like it could be a better solution than an external service or forwarding and messing with the headers.

I did some AI searches for projects  
This looks like a direct replacement for the pop3 fetching and easiest to setup

> **[GitHub - threehappypenguins/fetch2gmail](https://github.com/threehappypenguins/fetch2gmail)**
>
> Contribute to threehappypenguins/fetch2gmail development by creating an account on GitHub.

This looks a little better because I don’t think it polls, so no delay.

> **[GitHub - YoRyan/turbogmailify: Fast, realtime IMAP import of external mail for...](https://github.com/YoRyan/turbogmailify)**
>
> Fast, realtime IMAP import of external mail for Gmail accounts.

This seems the most elegant as I think it interfaces with postfix/exim directly but probably the most complicated to setup

> **[GitHub - ScottESanDiego/gmail-api-client](https://github.com/ScottESanDiego/gmail-api-client)**
>
> Contribute to ScottESanDiego/gmail-api-client development by creating an account on GitHub.

I’m going to start looking into these, looks promising

Doing it on your own google cloud instances avoids the security review too

---

<div class="post-metadata">

**Author:** ![eng3](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@eng3](https://forum.virtualmin.com/u/eng3)\
**Post date:** [March 25, 2026, 11:09pm UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/8 "2026-03-25T23:09:43Z")

</div>

Reporting back, I tried gmail-api-client and it worked.  
One nice thing is that its tied into the transport so arriving emails are instantly sent to gmail vs waiting for gmail pop3

Setting up the software was really quick. It sets up a temp web server to make the inital setup easier and is hardcoded to port 8080 so I had to change it since its in use.

The hard part was getting it to work with postfix as I’m not familiar. That took hours of trial and error. Initially, I tried running the binary through a standard postfix alias, but it failed because those commands run as `nobody`. This prevented the binary from accessing config files. I defined the bridge in master.cf using a dedicated Unix user. I moved the domains to virtual\_mailbox\_domains set virtual\_mailbox\_base = /var/spool/postfix to prevent local delivery and bogus mailbox errors.

I used virtual\_alias\_map to redirect all aliases to the primary account  
transport\_map as an exit point to catch the primary email address and explicitly route it to the custom filter which I defined in master.cf  
I set mydestination = localhost, $myhostname and removed local domains to bypass local agent  
I set my domains in virtual\_mailbox\_domains

The only issue I see is that this probably will break if I try to use virtualmin to manage anything.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [March 26, 2026, 12:10am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/9 "2026-03-26T00:10:31Z")

</div>

> [@eng3](#):
>
> I set mydestination = localhost, $myhostname and removed local domains to bypass local agent

Carefull playing with this setting especially if your hosting alot of domains as this is a global setting. Verify everything is working fine.

---

<div class="post-metadata">

**Author:** ![eng3](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@eng3](https://forum.virtualmin.com/u/eng3)\
**Post date:** [March 26, 2026, 12:30am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/10 "2026-03-26T00:30:08Z")

</div>

ok thanks for letting me know. I only have 3 domains. and they are all personal domains that dont have that much activity.

If anyone has recommendations for how to properly install this with virtualmin, I’d appreciate it. My immediate goal was to get something working before google decided to cut off pop3 and I didnt know how to get around the errors

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [March 26, 2026, 2:07am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/11 "2026-03-26T02:07:56Z")

</div>

I mean it may not effect anything but I have seen issue in the past with people changing settings in`mydestination =`

---

<div class="post-metadata">

**Author:** ![eng3](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@eng3](https://forum.virtualmin.com/u/eng3)\
**Post date:** [March 26, 2026, 12:10pm UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/12 "2026-03-26T12:10:13Z")

</div>

It seems to be working ok. I think the negative effect is that I don’t think it is compatible with virtualmin so I can no longer use virtualmin to manage my email or aliases. I haven’t tested it though.

The very first thing I had tried was using using the “execute command” option when creating an alias to pipe it over but it gets run as “nobody” and thus doesnt have permissions to read the config files. At that point I wasnt sure what to try and asked AI for help and that’s what it came up with. When I get more time, I’ll look more closely at host postfix and virtualmin works to see if I can come up with a better way.

For now, this solution is working

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [March 27, 2026, 1:30am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/13 "2026-03-27T01:30:49Z")

</div>

Have you thought about dealing with the spam at your end?

---

<div class="post-metadata">

**Author:** ![eng3](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@eng3](https://forum.virtualmin.com/u/eng3)\
**Post date:** [March 28, 2026, 4:13pm UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/14 "2026-03-28T16:13:14Z")

</div>

I’m not sure how this is related but Yes. It has never worked as well as google. I don’t know what google’s threshold is before marking a domain as a spam domain but I didn’t want to take that chance.  
The solution I found here seems to be ideal (with the exception that it breaks virtualmin’s integration but I would assume there is a way to get it setup such that it can work with virtualmin, I just am not sure how)

---

<div class="post-metadata">

**Author:** ![wheeler](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/wheeler/32/1589_2.png) [@wheeler](https://forum.virtualmin.com/u/wheeler)\
**Post date:** [March 30, 2026, 11:10am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/15 "2026-03-30T11:10:37Z")

</div>

I used to do this so I could use the free version of Gmail with my own domains.

A few years ago I moved everything over to Google Workspace and haven’t looked back. It’s a much more reliable way to manage emails.

I think, running emails through multiple services with POP3, periodic fetching syncing, third party add-ons is a recipe for disaster. You are introducing additional delays, points of failure and potential DKIM/DMARC/SPF/ARC/SRS issues.

The cost of Google Workspace is well worth it, for me at least.

I suspect their removal of the POP3 fetch feature is to encourage people across to their paid services. It would be nice if they offered a lower cost ‘premium’ feature for normal Gmail users to bring their own domain.

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [April 16, 2026, 9:01am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/17 "2026-04-16T09:01:13Z")

</div>

If it’s any help to anybody using EL10, I just compiled an EL9 postsrsd src rpm on an EL10 server, installed it to a VMin server, simple edits to Postfix config and Gmail now accepts forwarded mail.

Gmail - Original Message option:

|Subject:|Forward test|  
|SPF:|PASS with IP 123.123.123.123  
|DMARC:|‘FAIL’ Learn more|

---

<div class="post-metadata">

**Author:** ![bevhost](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/bevhost/32/23875_2.png) [@bevhost](https://forum.virtualmin.com/u/bevhost)\
**Post date:** [June 9, 2026, 10:04pm UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/18 "2026-06-09T22:04:02Z")

</div>

I am working to have the new version 2.0.11 of postsrsd available on EL10 and Fedora.  
see [2486036 – Package Review: postsrsd - Postfix Sender Rewriting Scheme daemon - for unretirement](https://bugzilla.redhat.com/show_bug.cgi?id=2486036)  
Package reviews can take a little bit of time so do be patient.

---

<div class="post-metadata">

**Author:** ![Randomz](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@Randomz](https://forum.virtualmin.com/u/Randomz)\
**Post date:** [June 10, 2026, 4:07am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/19 "2026-06-10T04:07:30Z")

</div>

Looking forward to having a play. As mentioned above, I had it working on EL10, but trade-offs were a problem so uninstalled it.

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [June 10, 2026, 5:07am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/20 "2026-06-10T05:07:05Z")

</div>

I’m stil on rocky 9, do I need to edit anything after running `dnf install postsrsd` or does it work out of the box?

---

<div class="post-metadata">

**Author:** ![bevhost](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/bevhost/32/23875_2.png) [@bevhost](https://forum.virtualmin.com/u/bevhost)\
**Post date:** [June 10, 2026, 6:05am UTC](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882/21 "2026-06-10T06:05:50Z")

</div>

Yes, you need to add some configuration to postfix.  
and it’s different between 1.x and 2.x of postsrsd.  
check the documentation for the version you have installed.  
e.g. [Google Search](https://www.google.com/search?q=how+to+configure+postfix+for+postsrsd+2.x)

[Next page](https://forum.virtualmin.com/t/forward-email-to-gmail-instead-of-pop3/136882.md?page=2)
