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!

Hostname / php emails Setup

Discussion in 'E-mail Discussion' started by Rory2000, Sep 8, 2016.

  1. Rory2000

    Rory2000 Member

    Joined:
    Sep 8, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi

    On my server I have 3 vBulletin forums:

    forum-one.com
    forum-two.com
    forum-three.com

    I and currently using the default setting (internal PHP mail() function.) to send notification, signup and other forum generated emails.

    My problem is the hostname of the server is not setup to send / receive emails.

    Instead any email sent from one of my 3 forums is displayed as sent from:

    "mypersonal@address.com via "the-current-hostname"

    or
    "mypersonal@address.com" and gmail for example says it cannot confirm it was sent from by "@address.com" ... as it was not...

    The current Hostname of the server has no SPF or DKIM records etc to help ensure my emails get delivered to the in box and not the spam folder / blocked.

    How can i fix this ?

    Do i need to register a new domain, then assign it as the host name eg: "forums.new-domain.com" then add SPF and DKIM records to the "new-domain.com" domain name and have the sent email from my forums as something like rory@new-domain.com ?

    any suggestions would be a great help.

    Thanks - Rory
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,311
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Preferably, you should be using the SMTP settings in your vB options.
    SMTP Email - Yes
    SMTP Host - mail.yourdomain.com
    SMTP Port - 587
    SMTP Username - noreply @ yourdomain.com (for example)
    SMTP password -
    SMTP Secure Connection - TLS
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Rory2000

    Rory2000 Member

    Joined:
    Sep 8, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Thanks,

    The issue was the emails were not being sent as
    “Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)" was set to enable...

    Once i disabled this the setup you mention works.

    Is there any other way to secure this now that this tweak is disabled ?
     
    #3 Rory2000, Sep 15, 2016
    Last edited: Sep 15, 2016
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,311
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have CSF installed? If yes, find the SMTP Settings section there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Rory2000

    Rory2000 Member

    Joined:
    Sep 8, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    I currently don't have CSF installed... is it the best option ?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,311
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    CSF is a really good option if security matters to you.
     
    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