Results 1 to 5 of 5

Thread: Email w/ Google Apps on GoDaddy

  1. #1
    pjhenry1216 is offline Junior Member
    Join Date
    Dec 2011
    Posts
    1

    Default Email w/ Google Apps on GoDaddy

    So, I setup Google Apps to handle the email for my shared linux hosting on GoDaddy. I can't seem to setup the email. I've even just created a separate gmail account (not part of google apps) and used the gmail option for outgoing email to no avail. I've put in the smtp information for both gmail AND google apps (i'd prefer google apps, but anything will do). I don't have any email setup within GoDaddy at all. It's all through Google nowadays. Any help would be appreciated.

    I'm using SugarCRM Community Edition 6.3.0. I'm not entirely sure which version of Apache GoDaddy uses, but I'm using PHP 5.2.

    Any and all help will be appreciated. I'm somewhat new at this, so try to keep it somewhat simple if possible, but honestly, even if I don't understand it, it at least gives me something to research.

    Update for clarification: When I say I can't setup the email, I mean I can't setup the email in SugarCRM CE 6.3. Google Apps email has been working fine outside of SugarCRM. I just don't know if somehow GoDaddy requires use of its own smtp servers on internal hosting or something.

    Update for new thoughts: Is it possible this isn't allowed on shared hosting and I need a dedicated virtual server (or more) to get this to work?
    Last edited by pjhenry1216; 2011-12-12 at 05:44 PM. Reason: clarification, new thoughts

  2. #2
    CrownHills is offline Junior Member
    Join Date
    Dec 2011
    Posts
    2

    Default Re: Email w/ Google Apps on GoDaddy

    Ok, I have worked intermittently for days on this, including till after midnight last night, and just figured it out. Nobody on the net seems to get it.


    Your shared web host (such as GoDaddy) has a firewall, which likely is going to block random outgoing e-mails so the host doesn't cause problems when some user starts trying to send spam from it. People got this, but they didn't get the solution. So here it is.


    The shared web host may support outgoing email, you just have to use the accounts and email infrastructure set up on the shared host itself. So for a sugar on a shared host, completely ignore any SMTP you may have set up elsewhere, or any e-mail accounts elsewhere. You're going to use the email accounts you have available with that shared host.

    B.t.w, this may not be necessary if you have more advanced modules installed in PHP, such as the IMAP modules. They may be able to bypass this with encrypted, authenticaed email. These modules are not installed in the base GoDaddy shared host package.

    Your shared host is likely configured to use a particular SMTP server and port number. With GoDaddy, and hopefully others, their admin has been kind enough to set this up in the PHP configuration. Unfortunately, sugar overrides this info with what you set, so you just have to find out if it was originally set by their admin, and what it was, and set that to what sugar uses when sugar overrides it.

    First of all, can you send e-mail from your host? The built in PHP function mail() can be used to test this. Keep this test simple - the built in mail() has all sorts of problems if you give it complicated parameters. Try creating a file phpmailtst.php containing just:
    <?php
    mail('youremail@youremailhost.com', 'Test Subject', 'Test message.');
    ?>
    where your email info goes in the first parameter. If you browse to this page, it should send you the test message via email. If it doesn't, sorry I have no clue what to do next.

    If it sends the email, then your host and your PHP can send email. So now you need to find out the SMTP parameters that PHP mail() used for this. Try creating a file phpinfoconfig.php containing just:
    <?php
    phpinfo(INFO_CONFIGURATION) ;
    ?>
    If you browse to this page, two of the output parameters should be SMTP and smtp_port. Use these as the sugar SMTP server and sugar SMTP port, tell sugar not to use SMTP authorization or SMTP encryption such as SSL or TLS because the stock PHP mail() does not support these, and use some sending e-mail account that the web hosting server knows such as an email account set up on that same hosting service, and you should be good to go!

    For me on GoDaddy, the SMTP server was relay-hosting.secureserver.net and port was 25.

    Again, it is possible that none of the above applies if PHP has more advanced email packages, such as the IMAP module, installed. In my installation of sugar 6.3.1 on a basic GoDaddy shared host account, I received an explicit warning that the IMAP module was not installed. If you do not see that warning, perhaps none of the above applies to you.

  3. #3
    gates2u is offline Sugar Community Member
    Join Date
    Feb 2010
    Location
    Greensboro MD
    Posts
    43

    Default Re: Email w/ Google Apps on GoDaddy

    CrownHills - thank you.
    What you've described (the problems with the firewall) also applies to Godaddy dedicated servers (virtual dedicated servers). I had been attempting to send outbound mail through as authenticated SMTP through a Godaddy email account on another Godaddy server. In fact it was a paid-for unlimited IMAP-configured email account.

    I experienced exactly what you described - seemingly random denials and errors. About every 3rd email on average was killed if sending at a spacing of 1-2 minutes apart. This rendered my new installation unusable.

    So, I looked at the PHP info, and set my email to UNAUTHENTICATED outgoing email on my local server (localhost, port 25) and all emails are going out just fine now.

    Seems odd to back into what would appear to be a more abusive setup, but I guess godaddy insists on this to determine who is spamming. If that' the case, then they should stop selling extra relays on their other email accounts!!!

    Thanks again CrownHills

  4. #4
    gregmaron is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default Re: Email w/ Google Apps on GoDaddy

    You are a genius man. You highlight and solve a problem that would otherwise be incredibly difficult to track down. I am using Bluehost btw, so the same concepts of shared hosting apply.

    This process really needs to highlighted in the KB.

  5. #5
    jagdecat is offline Junior Member
    Join Date
    Mar 2012
    Posts
    7

    Default Re: Email w/ Google Apps on GoDaddy

    Thank you for this. Please ask the admin to make your post sticky. It resolved a lot of issues today at our end and i'm sure the problems people are facing with email settings, it will resolve at least a hundred more.

    Thank you for being simply amazing and working out what our problems were.



    Quote Originally Posted by CrownHills View Post
    Ok, I have worked intermittently for days on this, including till after midnight last night, and just figured it out. Nobody on the net seems to get it.


    Your shared web host (such as GoDaddy) has a firewall, which likely is going to block random outgoing e-mails so the host doesn't cause problems when some user starts trying to send spam from it. People got this, but they didn't get the solution. So here it is.


    .....

    Again, it is possible that none of the above applies if PHP has more advanced email packages, such as the IMAP module, installed. In my installation of sugar 6.3.1 on a basic GoDaddy shared host account, I received an explicit warning that the IMAP module was not installed. If you do not see that warning, perhaps none of the above applies to you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with configartion in email setting with Google APPS
    By deepakvishwakarma in forum Developer Help
    Replies: 0
    Last Post: 2011-02-05, 10:48 AM
  2. Full Google Apps email sync
    By Antanas0001 in forum Help
    Replies: 3
    Last Post: 2010-09-09, 07:19 PM
  3. Replies: 2
    Last Post: 2010-07-30, 10:40 AM
  4. Replies: 0
    Last Post: 2009-02-13, 07:55 PM
  5. Email Setup using Google Apps
    By thisisyoyo in forum Help
    Replies: 0
    Last Post: 2008-10-13, 04:41 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •