Mobile app version of vmapp.org
Login or Join
Nimeshi995

: How do I send copies of e-mails to a handler script if my e-mail is hosted with Google Apps? I'm trying to figure out if there is a way that an email can be sent to two mail servers.

@Nimeshi995

Posted in: #Cpanel #Email #GoogleApps

I'm trying to figure out if there is a way that an email can be sent to two mail servers. One being a local server configured in CPanel and the other is Google Apps.

I've already configured the server to allow for email to be sent to Gmail's servers with the MX record. But now I want it to also keep a copy of the email on the actual Cpanel server. That way any mail that is sent to an email address is viewed in Google Apps AND left on the server for Cpanel Horde/etc to receive.

I'm attempting this because of the fact that my webhost doesn't allow connections for some reason to Google Apps via a PHP script (like setting it up would cause errors).

Can anyone help?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

Google Apps includes a variety of ways to divert mail to multiple inboxes, however, there is not (to the best of my knowledge) any reliable way to send and receive e-mail through Google Apps while sending and receiving e-mail through a cPanel server under the same domain. The following solution allows you to make full use of Google Apps' excellent spam filtering and overall uptime while maintaining an accountability trail for incoming messages intended for OSTicket.


Use Google Apps to host mail under your primary domain; use cPanel to host mail under a subdomain (i.e. support.domain.com) and create an e-mail user osticket@support.domain.com on that subdomain
Create a Google Apps user account for the alias you will use (support@domain.com) to forward mail Create a Google Apps user account (no-reply@domain.com) to act as a catch-all for your domain - the advantage of using no-reply@domain.com over support@domain.com will become apparent when you find a need to add other aliases
In the account, create a filter to forward (and mark as read) messages addressed To: support@domain.com to the osticket@support.domain.com address
Configure your application (i.e. OSTicket) to route outgoing mail with the Google Apps SMTP settings to send messages as support@domain.com

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme