Email account for sending through Gmail, but does not accept incoming mail

GoWilkes

Well-Known Member
Sep 26, 2006
613
25
168
cPanel Access Level
Root Administrator
I have a hosting client that used to use an email account on the server, but switched to Gmail years ago. Let's call it [email protected].

In Gmail they have their outgoing email set to use the username [email protected] and SMTP Server of mail.example.com, and incoming emails to [email protected] are both forwarded to the Gmail account AND delivered to its inbox on the server.

Which means that I have about 23G of email stored on the server that's never seen, because they see it on Gmail.

Can I safely change the Restrictions on [email protected] to "Receiving Incoming Mail: Suspend", and then emails sent to [email protected] still be forwarded to Gmail? And it would still be usable for Gmail's outgoing emails?
 
Last edited by a moderator:

ZenHostingTravis

Well-Known Member
PartnerNOC
May 22, 2020
275
95
28
Australia
cPanel Access Level
Root Administrator
Hi @GoWilkes,

I believe suspending the email account will stop the emails being forwarded.

Perhaps set up the email account as POP3 rather than IMAP or did you have a requirement for the emails to be stored on both the server, as well as Gmail?
 

c0i0t3

Well-Known Member
Sep 30, 2005
65
2
158
Hospedagem de Site
If emails have been forwarded, they’re in Gmail.
That way, if you don't need messages to be on the server, you should delete them.

It is important for the customer to make sure the emails are in Gmail to avoid having a big problem after removing everything.
 

GoWilkes

Well-Known Member
Sep 26, 2006
613
25
168
cPanel Access Level
Root Administrator
Hey hey! If there's no reason to store the emails on the webserver, you could just delete the account entirely and only create the forwarder. That way there physically is not a local mailbox for the messages to be stored.
What I mean, though... they use the account on my server as their "Send mail as" in Gmail. So the outgoing emails go through me.

I can't just delete the account or this wouldn't work. So I need to set the account to stop storing incoming mail locally (just forward it), but still allow emails to be sent through it.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,418
999
313
cPanel Access Level
Root Administrator
I'm not sure there's a good way around that - if you want them to authenticate through your server you'll need to have the account in place, and as long as that exists there will be directories where the mail can accumulate.

Is there a reason you don't want to just have the mail sent directly to Gmail with the MX records? Set up MX records for Google Workspace email - Google Workspace Admin Help