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.

Can't send emails from my server but can receive

Discussion in 'E-mail Discussions' started by Alex1122331122, Sep 12, 2017.

  1. Alex1122331122

    Alex1122331122 Registered

    Joined:
    Sep 12, 2017
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    I really need your help here. I've been stuck on a problem with my dedicated server since the last week. I am able to receive emails, but I am not able to send anything.

    Here's a little bit more information on my server configuration and logs:

    • My server is on CentOS 7.3 and cPanel/WHM 66.0.18 is installed.

    • My firewall is not active for testing purpose.

    • My ISP does not block the port 25. I've been checking with them 3 times since the last week and each time they told me that nothing was blocked.

    • Port 25 seems to work correctly when I test it with telnet:

      [root@main /]# telnet mail.domain.com 25
      Trying xx.xx.xx.xx...
      Connected to mail.domain.com.
      Escape character is '^]'.
      220-main.domain.com ESMTP Exim 4.89 #1 Mon, 11 Sep 2017 15:23:33 -0400
      220-We do not authorize the use of this system to transport unsolicited,
      220 and/or bulk e-mail.

    • When I try to do a traceroute, it got stuck at the second hop:

      [root@main /]# traceroute -n -T -p 25 gmail-smtp-in.l.google.com
      traceroute to gmail-smtp-in.l.google.com (173.194.68.26), 30 hops max, 60 byte packets
      1 192.99.39.252 73.805 ms 44.689 ms 73.996 ms
      2 198.27.73.93 0.244 ms 198.27.73.95 0.240 ms 0.273 ms
      3 * * *
      4 * * *
      5 * * *
      6 * * *
      ...
      30 * * *

    • My SPF and R-DNS are setup correctly.

    • I'm using the command mail to try to send an email:

      mail -s "Test" user@domain.com
      Hello
      EOT

    • Here's the log of maillog:

      Sep 11 15:37:14 stock spamd[26934]: zoom: able to use 1032/1033 'body_0' compiled rules (99.903%)
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_VOICEMAIL has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_WARRANTY3 has dependency 'CBJ_GiveMeABreak' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_FORGED_ATTACHED has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_BBB has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_BADPDF2 has dependency 'KAM_RPTR_SUSPECT' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_PHISHY_DOLLARS has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_AMAZON has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_REALLY_FAKE_DELIVER has dependency 'KAM_RPTR_PASSED' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_EVICTION has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_INSURE has dependency 'CBJ_GiveMeABreak' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_INSURE2 has dependency 'CBJ_GiveMeABreak' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_AUTO has dependency 'CBJ_GiveMeABreak' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_NOTIFY2 has dependency 'KAM_IFRAME' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_JURY has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_VERY_MALWARE has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test JMQ_CONGRAT has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_CARD has dependency 'KAM_RPTR_SUSPECT' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_WARRANTY has dependency 'CBJ_GiveMeABreak' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_FAKE_DELIVER has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: rules: meta test KAM_PAYPAL2 has dependency 'KAM_RAPTOR' with a zero score
      Sep 11 15:37:15 stock spamd[26934]: spamd: server started on IO::Socket::INET6 [_]:783, IO::Socket::INET [^?_]:783 (running version 3.4.1)
      Sep 11 15:37:15 stock spamd[26934]: spamd: server pid: 26934
      Sep 11 15:37:15 stock spamd[26934]: spamd: server successfully spawned child process, pid 20766
      Sep 11 15:37:15 stock spamd[26934]: spamd: server successfully spawned child process, pid 20767
      Sep 11 15:37:15 stock spamd[26934]: prefork: child states: BI
      Sep 11 15:37:15 stock spamd[20766]: spamd: connection from localhost [::1]:46361 to port 783, fd 5
      Sep 11 15:37:15 stock spamd[26934]: prefork: child states: II
      Sep 11 15:37:15 stock dovecot: lmtp(20813): Connect from local
      Sep 11 15:37:15 stock dovecot: lmtp(20813): Disconnect from local: Successful quit

    • Here's the exim_mainlog:

      2017-09-11 15:37:15 SMTP connection from [127.0.0.1]:38568 (TCP/IP connection count = 2)
      2017-09-11 15:37:15 SMTP connection from (localhost) [127.0.0.1]:38568 closed by QUIT
    Emails seem not to be able to quit the server itself. I've beend trying many thing to try to fix this, but I'm out of ideas. Any idea what would cause this?

    Thank you in advance for your time.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Do you notice any specific output to /var/log/exim_mainlog or /var/log/exim_paniclog when attempting to send a message? Also, is the issue only with specific remote hosts (e.g. Google), or is it happening when sending to any remote mail server?

    Thank you.
     
  3. Alex1122331122

    Alex1122331122 Registered

    Joined:
    Sep 12, 2017
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for your answer.
    The problem is happening with any remote host, not only Google.

    But I was tired of this problem and I thought it has something to do with the server itself, so I contacted my provider and ask them to remove this server and give me a new one. Everything is working fine with the new one.

    Thank you.
     
    cPanelMichael likes this.
Loading...

Share This Page