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.

Hostname / php emails Setup

Discussion in 'E-mail Discussions' 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:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    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
     
  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:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you have CSF installed? If yes, find the SMTP Settings section there.
     
  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:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    CSF is a really good option if security matters to you.
     
Loading...

Share This Page