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!

Can't send emails from any website

Discussion in 'E-mail Discussion' started by Marcela, Jun 29, 2018.

  1. Marcela

    Marcela Registered

    Joined:
    Jun 29, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colombia
    cPanel Access Level:
    Root Administrator
    Hi! i have a CentOS 7 server and i have multiple websites hosted in there but for some reason from any of the websites i cant send emails throught the forms, i thought it was the mail() function but is apparently ok, what can i do?

    The websites are built on html, wordpress and joomla and i already tested it all.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,142
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Marcela,

    Do you encounter any specific error messages when attempting to send the emails? Is WHM >> SMTP Restrictions enabled on this system, and/or are you using CSF Firewall?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    117
    Likes Received:
    10
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Check these settings as well and the output of the command,

    telnet 127.0.0.1 25 (from the server's shell itself). It should show output instead of connection timeout.

    And if it has CSF installed, check for the setting named SMTP_BLOCK and make sure it is not enabled (set to 1)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  4. Marcela

    Marcela Registered

    Joined:
    Jun 29, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colombia
    cPanel Access Level:
    Root Administrator
    Hi, i tried to look if i had a firewall and apparently i don't.
    When i tried to put "CSF" on the Terminal it said "Command not found" and what i looked to WHM >> SMTP it doesn't seems to have any problem/Restriction with it.

    Any idea? and thanks your fast answer.
     
  5. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    117
    Likes Received:
    10
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello @Marcela

    Can you please let me know what appears in the /var/log/exim_mainlog when you send email from the contact form pages of the sites which uses the mail() function. Also I sincerely hope mail() function is not disabled either in the php's disable_functions. Only a remote possibility is there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Marcela

    Marcela Registered

    Joined:
    Jun 29, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Colombia
    cPanel Access Level:
    Root Administrator
    Hi! thank you for reply to my questions.
    Where can i find /var/log/exim_mainlog? should i search it through ssh or just from cpanel?

    Thanks again.
     
  7. 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 @Marcela

    You'd need to log in to the server via SSH and then when you send mail run something like:

    For the last 100 lines:
    Code:
    tail -100 /var/log/exim_mainlog
    To follow the log (if the server isn't really busy and you can do this right before you send mail)
    Code:
    tail -f /var/log/exim_mainlog
     
    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