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!

Forward to gmail without authentication

Discussion in 'E-mail Discussion' started by bardnom, May 9, 2018.

  1. bardnom

    bardnom Member

    Joined:
    Sep 11, 2017
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    NY
    cPanel Access Level:
    Reseller Owner
    I am trying to forward email from domain.com to gmail.
    First I simply used forwarder and that works but I need to use option reply as something@domain.com from gmail.

    As I understand I need to have email account something@domain.com created?

    Would it be possible to do forward and use option Reply-as without authentication?

    If account needs to be created that's ok too, but how can I delete email after it was forwarded?

    Also does forwarder need to be created if you connect through SMTP server?

    Does IMAP need to be enabled at all since it's only used so you can see email through cpanel (roundcube, horde...) ?
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,772
    Likes Received:
    119
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    There's no correlation whatsoever between sending out mail from an email address and SMTP authentication.

    These are two completely different processes.

    SMTP Authentication (i.e. the username and password you are entering alongside the SMTP or outgoing mail server) is simply used to determine whether or not if you have permission to send out mail through the server. cPanel does this through email (POP/IMAP) accounts, but in the grand scheme of things it doesn't really have to be.

    What I typically do with something like this, I create a new email account - something-sender@domain.com.

    Then in Gmail, when it asks for the SMTP Authentication (username and password) to authenticate with I simply use this username - something-sender@domain.com and something-sender@domain.com's corresponding password from when I create the email account.

    Leave the send mail as set to something@domain.com.

    Now Gmail will log into your server, authenticate with something-sender@domain.com and send mail from something@domain.com.

    Generally, as long as you never advertise something-sender@domain.com as an email address, it will never receive mail, so it can be used for authentication purposes only. If you're really concerned, you can obfuscate the email address even more - make it more random, since it will only be necessary to use it for authenticating access into the SMTP server.
     
    cPanelLauren likes this.
  3. bardnom

    bardnom Member

    Joined:
    Sep 11, 2017
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    NY
    cPanel Access Level:
    Reseller Owner
    Not sure I follow or might have explained bad before.

    I have something@gmail.com
    Now I have domain something.com

    I want to forward mail from thing@something.com to something@gmail.com

    But I want to login to gmail and reply from gmail as thing@something.com and not have reply shown as it is from something@gmail.com

    And I don't want email that are coming or going from thing@something.com to stay on my server and I want to disable webmail login (something.com:2096)

    So in short I don't want gmail.com to be shown but want to use gmail and I don't want for any email to stay on server but only pass through it.
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,772
    Likes Received:
    119
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    Log into your cPanel for something.com - http://something.com/cpanel

    Click Email Accounts

    Create a random email account - it doesn't matter what, you're not going to check this email account for messages.

    Write down this full email address - i.e. something-sender@something.com - and the password you use.

    Log into your Gmail account.

    Go to Settings in your Gmail account.

    Click on Accounts and Import

    In the section labled Send mail as - click Add another email address.

    Fill out the Name and Email address as you want - the email address you want to send mail out from, which I gather to be thing@something.com

    Click Next Step

    Now you are the stage where you are configuring your SMTP server information.

    Enter your appropriate mail server name - the hostname associated with your something.com account.

    For the username and password - you're going to use the information of the random email account you created at the beginning of all of this - i.e. something-sender@something.com

    Then click Add Account.

    I'm not sure what step is next, that's as far as I can remember. But that should be the bulk of it.

    Finish the process by following whatever instructions are provided.

    Now when you attempt to send out mail from thing@something.com in your Gmail account, Gmail is going to log into the SMTP server that you provided, authenticate with the username and password you provided, and then send out mail from thing@something.com.


    There is no correlation between sending out an email from thing@something.com and what username and password credentials you have to authenticate with.
     
    cPanelLauren likes this.
  5. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,451
    Likes Received:
    246
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @bardnom

    Please let us know if you have any further issues with this but @sparek-3 explained it exactly how it should be set up.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. bardnom

    bardnom Member

    Joined:
    Sep 11, 2017
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    NY
    cPanel Access Level:
    Reseller Owner
    Sorry for late reply but I wanted to try some other things too before replying.

    Unfortunately I am unable to get my wanted behavior of emails. I did exactly what @sparek-3 said.

    I can send email from something@gmail.com as a thing@something.com,
    but when someone sends email to thing@something.com that email is not forwarded to something@gmail.com
    Do I need forwarder for that?

    Now this is the first thing I want to get working. To get emails sent to thing@something.com forwarded to something@gmail.com

    Next thing is I want to delete those forwarded emails so no emails are on my server. I want this to be 0 all the time for everything
    upload_2018-5-15_21-41-54.png
     
  7. bardnom

    bardnom Member

    Joined:
    Sep 11, 2017
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    NY
    cPanel Access Level:
    Reseller Owner
    By searching some more and checking:

    Forwarded mail stays on server! How to delete.
    Auto delete new mail from cPanel

    I figured I need to use Add mail account option like this:
    doteasy.com/domain-email-and-website-hosting-articles/importing-your-domain-email-account-into-your-gmail-account

    However when I try to add a mail account no matter how I fill it all I get is "Server returned error: "Connection refused""

    Is this right? Or have I gone in wrong direction?
     
    #7 bardnom, May 15, 2018
    Last edited by a moderator: May 15, 2018
  8. bardnom

    bardnom Member

    Joined:
    Sep 11, 2017
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    NY
    cPanel Access Level:
    Reseller Owner
    This is exactly what I wanted. I need to use the option Add mail account which pulls the emails from the servers and deletes them afterwards. No forwarder needed but the part sparek wrote is need to have reply as option.

    Connection refused error was due to POP3 being disabled on all accounts.
     
    #8 bardnom, May 15, 2018
    Last edited by a moderator: May 15, 2018
  9. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,451
    Likes Received:
    246
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @bardnom

    I'm happy to see you identified the source of the issue, please let us know if you have any further concerns.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Danae

    Danae Registered

    Joined:
    Aug 9, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United kingdom
    cPanel Access Level:
    Website Owner
    Nope. I still can't do this despite following all steps. Keep getting the error that I need to set up SMTP authentication server side. Is there no link to where this is done? No step-by-step that doesn't involve creating hacky faux accounts? This is a ridiculous issue.
     
  11. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,772
    Likes Received:
    119
    Trophy Points:
    343
    cPanel Access Level:
    Root Administrator
    I would definitely be against cPanel creating some type of "SMTP Authentication Only" account. Because that's just going to confuse users even further. cPanel has enough ambiguous functions as it is.

    The steps I detailed earlier this year above would seem to work. But I guess people don't understand that. I'll let some body else explain it, since my explanation obviously isn't working.
     
  12. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,451
    Likes Received:
    246
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I would suggest using Gmail's own knowledge base for further help - this isn't something that's specific to cPanel and if you're unable to achieve this by using @sparek-3 's instructions you may have better luck with
    google's: Check emails from other accounts - Computer - Gmail Help

    If you're unsure how to do this with their instructions you may have better luck contacting their support: Google Groups

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice