Skip to main content

WHM/cpanel Server not sending emails "Received only"

Comments

10 comments

  • Unknown User

    I tried this method and still got the error

    If using cPanel with CentOS, as root user run the following:

    cd /var/spool/exim/db
    rm -f retry retry.lockfile
    rm -f wait-remote_smtp wait-remote_smtp.lockfile
    service exim restart

     

    Or, use the following commands:

     

    /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null
    /usr/sbin/exim_tidydb -t 1d /var/spool/exim reject > /dev/null
    /usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp > /dev/null
    /scripts/courierup -- force
    /scripts/eximup --force
    0
  • cPRex Jurassic Moderator

    Hey there!  It's possible your host doesn't allow email to be sent.  Are you able to successfully run this test and connect to the remote mailserver?

    yum install telnet
    telnet gmail-smtp-in.l.google.com 25

    If that second command doesn't let you connect, that is a sign your server can't send outbound messages.  More details on that can be found here: https://support.cpanel.net/hc/en-us/articles/360052412573-How-to-configure-a-third-party-smarthost-for-your-cPanel-server

    0
  • Unknown User

    i try your code and got this

    " root@server:~# telnet gmail-smtp-in.l.google.com 25
    Trying 64.233.184.27...
    Trying 2a00:1450:400c:c0b::1b...
    telnet: Unable to connect to remote host: Cannot assign requested address "

    0
  • cPRex Jurassic Moderator

    So there you go - that confirms you will not be able to send email from your server without the additional configuration I mentioned above.

    0
  • Unknown User

    why i need configure a third-party smarthost for your cPanel server if I want to host the email in my server not on third-party 

    0
  • cPRex Jurassic Moderator

    The issue is that your hosting provider is blocking the specific network connection that allows email to work, so you won't be able to send email from your cPanel server.

    0
  • Unknown User

    if I have full access to the VPS what can I do to fix this can I change the port or re-config

    all my clients can not send e-mails

    0
  • cPRex Jurassic Moderator

    There is nothing you can do to fix this on the server except setup a smarthost.  You may be able to speak with the hosting provider to see if they can open the port for you, but that is unlikely to happen.

    0
  • Unknown User

    i try { exinext command } 

    root@server:~# exinext mail@gmail.com
    Transport: gmail-smtp-in.l.google.com [64.233.184.26/NULL] error 111: Connection refused
      first failed: 17-Apr-2024 15:07:31
      last tried:   20-Apr-2024 07:38:46
      next try at:  20-Apr-2024 15:38:46
    Transport: alt2.gmail-smtp-in.l.google.com [142.251.9.27/NULL] error 111: Connection refused
      first failed: 17-Apr-2024 14:53:43
      last tried:   20-Apr-2024 06:38:47
      next try at:  20-Apr-2024 14:38:47
    Transport: alt4.gmail-smtp-in.l.google.com [74.125.200.27/NULL] error 111: Connection refused
      first failed: 17-Apr-2024 14:53:43
      last tried:   20-Apr-2024 06:23:44
      next try at:  20-Apr-2024 14:23:44
    Transport: alt3.gmail-smtp-in.l.google.com [142.250.150.26/NULL] error 111: Connection refused
      first failed: 17-Apr-2024 14:45:31
      last tried:   20-Apr-2024 06:23:44
      next try at:  20-Apr-2024 14:23:44
    Transport: alt1.gmail-smtp-in.l.google.com [142.250.153.26/NULL] error 111: Connection refused
      first failed: 17-Apr-2024 14:45:31
      last tried:   20-Apr-2024 06:23:45
      next try at:  20-Apr-2024 14:23:45

    0
  • cPRex Jurassic Moderator

    Yes, I would expect that to fail since you can't send email.

    0

Please sign in to leave a comment.