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!

SMTP from remote server

Discussion in 'E-mail Discussion' started by AMB, Nov 30, 2015.

  1. AMB

    AMB Registered

    Joined:
    Nov 30, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hi I currently use an account on my main VPS as a central CMS where clients ect login and manage their CMS. Part of this system allows them to send emails but these emails are coming through as spam. When I try to login using PHP mail SMTP nothing happens so the emails have to be sent from the local SMTP server and recently these are now turning up as spam. Why can I not remote SMTP login to an account on server A from server B. I get no error logs but no emails are sent. What settings to do I need to allow on server B for emails to be sent via SMTP on server A.

    As a bit of further info I am using the following:

    $smtp =Mail::factory('smtp', array(
    'host'=>'ssl://remotedomain',
    'port'=>'465',
    'auth'=>true,
    'username'=>'remoteemail@remotedomain',
    'password'=>'password'
    ));
     
    #1 AMB, Nov 30, 2015
    Last edited by a moderator: Nov 30, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Have you reviewed /var/log/exim_mainlog for any specific error messages? Do you have "SMTP Restrictions" enabled via "WHM Home » Security Center » SMTP Restrictions"?

    Thank 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