wheelerc
02-17-2010, 09:26 PM
Hi,
I use gmail for my emails and have my domain hosted on my server running WHM/cPanel. For gmail to send emails nice and transparently they use the SMTP on my server, which requires a 'real' email account to exist on the server.
All incoming emails need to be forwarded to gmail, and not delivered locally on the server. If i use standard forwarding I get all my emails queueing up on the server, so I've implemented account level filtering to redirect emails.
At the moment i've setup a rule so that if 'Any Header' contains 'chris@' it will be redirected to my gmail address.
This works well, however there are occasions where emails do not have chris@ in the headers, for example there was an email the other day which was BCC'd to an old email account which had then been forwarded to me...
Is there an easier way to forward all messages and not have them locally delievered, while keeping a mail account so gmail can authenticate with SMTP? Or am I approaching this from the wrong direction?
Thanks,
- Chris
Mark Muyskens
02-17-2010, 11:11 PM
ever thought about google apps?
wheelerc
02-17-2010, 11:33 PM
I have previously used google apps with the domain name for email, however I now use Gmail for all email accounts (personal and business) so have multiple domains which I would like to setup as described with one Gmail account. I also found that the google apps/domains version of Gmail seems to be behind the normal version in terms of features, and the Gmail notifier would not work with it when I last tried (around a year ago, i'm sure this has been fixed now!)
cPanelDavidG
02-18-2010, 03:50 PM
...
All incoming emails need to be forwarded to gmail, and not delivered locally on the server. If i use standard forwarding I get all my emails queueing up on the server, ...
Can you elaborated what you mean by "queueing up on the server?"
wheelerc
02-18-2010, 07:10 PM
I believe with the standard forwarders if there is also a matching mail account the messages will be delievered locally as wel as being forwarded. I won't be checking the local moailbox as I will be reading and responding to all emails via Gmail... So for example if I have:
Gmail account: chris@gmail.com
Mail account on WHM: chris@mydomain.com
Forwarder: chris@mydomain.com -> chris@gmail.com
In the above scenario the messages are delievered locally as well as being forwarded to Gmail wasting resources on the server.
So the best solutions I have come up with is:
Gmail account: chris@gmail.com
Mail account on WHM: chris@mydomain.com
User Account Level Filter - Any Header Contains 'chris@' redirects to chris@gmail.com
Which works, but a few emails slip through - I'm just after the best way to redirect or forward all emails without them being delivered locally as well. I need to keep the mail acount so that gmail can authenticate with SMTP to send mails via the server (Otherwise my emails come up in some mail clients as 'Sent from chris@gmail.com on behalf of chris@mydomain.com' which doesnt look too professional.
(To answer your question, 'Queing up on the server' is the wrong phrase, I mean being stored in a mailbox on the server...)
Thanks,
- Chris
cPanelDavidG
02-19-2010, 11:05 AM
A much easier solution would be to remove the email account chris@example.com and only have the email forwarder for chris@example.com. This will prevent mail from being stored on the server after it has been forwarded.
wheelerc
02-19-2010, 11:57 AM
Hi David,
If I do this gmail won't be able to send mail via the SMTP server on mail.mydomain.com I don't think?
cPanelDavidG
02-19-2010, 12:09 PM
Hi David,
If I do this gmail won't be able to send mail via the SMTP server on mail.mydomain.com I don't think?
I am not familiar with the option to use GMail to use a remote mail server for sending mail rather than GMail's own servers. I recommend contacting the folks at Google for more information about that.
wheelerc
02-19-2010, 12:25 PM
Hi,
It basically allows you to use your own SMTP server for sending mail rather than googles own SMTP, so that mails appear to have come from your own domain rather than via Gmail.
The issue is that to be able to authenticate and send emails from my account (chris@mydomain.com) requires a mail account to be setup for chris@mydomain on the server - which makes sense, however what I would like to do is keep the mail account on the server, but forward all incoming emails to another address so that they never actually reach the mail account on the server.
A checkbox on the forwarders configuraton page saying 'do not delivery locally' would be perfect :) but if there is a better workaround that the one using Account Level Filtering I've already descibed I would be happy to hear about it.
Thanks,
- Chris