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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SMTP Error (-1)

Discussion in 'E-mail Discussions' started by cravend, Apr 4, 2017.

  1. cravend

    cravend Member

    Joined:
    Apr 4, 2017
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Hi! Whenever I try to send mail from an account, I get SMTP Error (-1). Does anyone know why? I've attached a screenshot below. -Removed -
     
    #1 cravend, Apr 4, 2017
    Last edited by a moderator: Apr 5, 2017
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    568
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    This error is typically seen due to a setting in the CSF firewall . It might be caused by having the following set:

    SMTP_BLOCK = 1
    SMTP_ALLOWLOCAL = 0

    You would need to change SMTP_ALLOWLOCAL to 1 to enable webmail to function.

    If sill facing issue then try disabling the firewall to see the results.
     
  3. vinoth sundararajan

    Joined:
    Mar 1, 2017
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    chennai
    cPanel Access Level:
    Root Administrator
    Twitter:
    Does, your server hits 100% usage .?
    may be the SMTP got stopped.

    can also disable the firewall and check once,

    i hope No worries to start the iptables again the cpanel will do automatically
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you attach the image directly to the thread, or let us know us know what method you are using to send email? Also, do you notice any output to /var/log/exim_mainlog when this happens?

    Thank you.
     
  5. cravend

    cravend Member

    Joined:
    Apr 4, 2017
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Sure! I didn't realize we weren't supposed to just paste in images--I attached it to this message. I'm not yet able to check the var/log files, I don't have root SSH access yet.
     

    Attached Files:

  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You may want to report the issue to your web hosting provider if you do not have root access to the system to take a closer look.

    Thank you.
     
  7. cravend

    cravend Member

    Joined:
    Apr 4, 2017
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    I have root access to the system, I just can't get my SSH connection to work (relevant thread: SSH Connection Denied).
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know of any output to that log file once the SSH issue is addressed?

    Thank you.
     
  9. cravend

    cravend Member

    Joined:
    Apr 4, 2017
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Hi, I just checked my firewall and it says that SMTP_BLOCK = 0 and SMTP_ALLOWLOCAL = 0. Also, there's a warning at the top that my firewall is "Enabled but stopped." Would that affect it?
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    This shows the firewall isn't running. You may want to restart the CSF firewall and see if that helps.

    Thank you.
     
  11. cravend

    cravend Member

    Joined:
    Apr 4, 2017
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    I restarted CSF and LFD, but it's still saying error -1.

    In the WHM >> Security Advisor page, there's a green checkmark that says "Outbound SMTP connections are restricted." That would cause this, correct? How do I disable it?
     
    #11 cravend, Apr 7, 2017
    Last edited by a moderator: Apr 11, 2017
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    That's referring to this option:

    "WHM >> SMTP Restrictions"

    This should not prevent Roundcube (or any webmail application) from sending email via SMTP. Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look to see what's happening.

    Thank you.
     
  13. cravend

    cravend Member

    Joined:
    Apr 4, 2017
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Hi. I got this when I tried to send something from admin@example.org.

    Code:
    2017-04-07 22:25:23 cwd=/etc/csf 4 args: /usr/sbin/sendmail -f root -t
    2017-04-07 22:25:23 1cwg43-0003Bp-Bo <= root@gauntlet.example.org U=root P=local S=684 T="lfd on gauntlet.example.org: SSH login alert for user root from 98.28.142.56 (US/United States/c" for root
    2017-04-07 22:25:23 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1cwg43-0003Bp-Bo
    2017-04-07 22:25:23 1cwg43-0003Bp-Bo User 0 set for local_delivery transport is on the never_users list
    2017-04-07 22:25:23 1cwg43-0003Bp-Bo == root@gauntlet.example.org R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
    2017-04-07 22:25:23 1cwg43-0003Bp-Bo ** root@gauntlet.example.org: retry timeout exceeded
    2017-04-07 22:25:23 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1cwg43-0003Bp-Bo
    2017-04-07 22:25:23 1cwg43-0003Bu-EV <= <> R=1cwg43-0003Bp-Bo U=mailnull P=local S=1987 T="Mail delivery failed: returning message to sender" for root@gauntlet.example.org
    2017-04-07 22:25:23 1cwg43-0003Bp-Bo Completed
    2017-04-07 22:25:23 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1cwg43-0003Bu-EV
    2017-04-07 22:25:23 1cwg43-0003Bu-EV User 0 set for local_delivery transport is on the never_users list
    2017-04-07 22:25:23 1cwg43-0003Bu-EV == root@gauntlet.example.org R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
    2017-04-07 22:25:23 1cwg43-0003Bu-EV ** root@gauntlet.example.org: retry timeout exceeded
    2017-04-07 22:25:23 1cwg43-0003Bu-EV root@gauntlet.example.org: error ignored
    2017-04-07 22:25:23 1cwg43-0003Bu-EV Completed
    
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page