Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remote Email Server with Gmail

Discussion in 'E-mail Discussions' started by Fred90, Aug 29, 2017.

  1. Fred90

    Fred90 Member

    Joined:
    Aug 24, 2017
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I have a question about sending emails. I have no use for incoming emails, just sending out an email. By default Local Mail Exchanger was setup -- except with new email accounts the server was not successfully shipping out emails.

    I changed this to Remote Mail Exchanger based on its description. My emails are now officially getting sent to Gmail. Except I notice a lag, a small lag but noticeable.

    Is this normal? Or is there another way I should set this up to issue emails without email accounts?
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    208
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    did you see any thing in /var/exim/main_log ... any error message ?
     
  3. Fred90

    Fred90 Member

    Joined:
    Aug 24, 2017
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I found the main_log, different location. If I am reading this right, there is a remote host lookup before email is sent and that is most likely the lag. My question remains, is this correct at how you setup emails using Gmail? Or should I be using Local Mail Exchanger with a setting to all outbound emails without setting up an email account.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,372
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi Fred,

    Could you provide some more details about how you'd like to configure email? For instance, is email handled by a remote name server (e.g. Gmail), or are you simply forwarding emails sent to your domain names to a Gmail address? Have you configured the MX records for the domain names to point to the remote mail server? Is your goal to have all email handled by Gmail, or simply to ensure any emails sent by users through the cPanel server are routed through Gmail?

    Thank you.
     
  5. Fred90

    Fred90 Member

    Joined:
    Aug 24, 2017
    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Ontario, Canada
    cPanel Access Level:
    Root Administrator
    When forms on the web site that can be filled out, and it uses PHP Mail to send those requests to our Gmail Email address. That is all we using it for. We do not have incoming emails at all. I have the MX Records for Google and I have it setup as Local Mail Exchanger.

    When an email is sent it gets froze in Mail Queue -- "No Such User Here" message. If I switch to Remote Mail Exchanger, emails are sent; but there is a delay. Is this normal? And is there away around this?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,372
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    This is the correct method of ensuring the message is delivery to the remote mail server. How long is the delay? You may want to review your resolvers in the /etc/resolv.conf file to see if they match the ones provided by your data center if the host lookup step is taking longer than expected.

    Thank you.
     
Loading...

Share This Page