With this way, you can use multiple support departments despite Gmail rewriting the from address. I suggest reading the entire thing over first, then follow each step.
This was last tested with WHMCS 4.5.2
Step 1 – Sign up for Google Apps
A. Visit http://www.google.com/apps/intl/en/business/ and sign-up. For those of you in need of a free edition, use this link:http://www.google.com/apps/intl/en/b…/editions.html
B. Verify your domain by uploading the .html file or adding the cname record
C. Follow the instructions for configuring Google Apps and configuring your DNS. You will need to change and add MX records, add cname records, etc. You should be able to find help at Google if you need it. Note: this will make your old setup no longer work. I am listing this in Step 1 so it gives time to propagate.
Step 2 – Create Email Accounts
A. From within your new Google Apps dashboard, create your email addresses according to your departments (ie. email@example.com, firstname.lastname@example.org, etc). The passwords can all be the same if the password is strong enough. However, you may want to consider having them all be different.
C. Log in to each of the new email accounts to activate them. Enable POP and IMAP while you are logged in.
Step 3 – Support Departments in WHMCS
A. From within WHMCS, create or edit your support departments. Use the following information:
Be sure that you have Imap-SSL/Pop3-SSL enabled on your server. Check to see if your server/firewall permits the connection: telnet gmail-pop.l.google.com 995
B. Create the cron job: “*/5 * * * * php -q /home/username/public_html/whmcs/pipe/pop.php” Note: you may want to alter the minutes so that the emails are imported faster than 5 minutes.
Step 4 – SMTP in WHMCS
Go to Configuration > Mail
Mail Type – SMTP
SMTP Port – 587 (make sure this isn’t blocked on your server/firewall)
SMTP Host – tls://smtp.gmail.com
SMTP Username: enter in that ‘main’ email address you made. (ie. email@example.com, firstname.lastname@example.org)
SMTP Password: your_strong_password
Step 5 – The Trick
A. This is the part I figured out that makes this possible. It is the key to making this work with multiple departments. Log into your ‘main’ email account (email@example.com, firstname.lastname@example.org). Click the “Settings” link in the top right corner. Click the “Accounts” tab. In the “Send mail as:” section, click the “Add another email address you own” link. Enter in the name of the department (ie. Company Support or Company Sales) and enter in the respective email address. Click the “Next” button.
Send the verification. Wait until you get a new support ticket in WHMCS. In the new ticket, find the verification code and paste it into the pop box that is open from your Google Apps accounts.
B. Repeat Step 5 A for as many departments as you have
Note: Step 4 will enable you to have multiple support departments and will prevent your email from being marked as spam. Some providers such as Hotmail will show your emails as “From Company <email@example.com> on Behalf of Company Support <firstname.lastname@example.org>” .
If you want to fix that, choose the second options when adding the emails (step 5A) that says “Send through lobohost.com SMTP servers (recommended for professional domains)”
smtp.gmail.com port 587
pass: your password
Secured connection TLS