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!

Disable sending and receive emails

Discussion in 'E-mail Discussion' started by Lillike, May 29, 2018.

  1. Lillike

    Lillike Active Member

    Joined:
    May 29, 2018
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hungary
    cPanel Access Level:
    Root Administrator
    Hi,

    I can not send or receive emails.

    I receive the following message to send any:
    ERROR
    Message not sent.
    Connection refused
    Server replied: 111 Can't open SMTP stream.

    - or -


    SMTP Error (-1): Connection to server failed.



    From root:


    root@ip-192 [/]# service exim restart
    Shutting down exim: [FAILED]
    Shutting down spamd: [ OK ]
    Starting exim: 2018-05-29 06:11:33 Cannot open main log file "/var/log/exim_log": No such file or directory: euid=0 egid=0
    [FAILED]
    Starting spamd: [ OK ]

    root@ip-192 [/]# service exim status
    exim dead but subsys locked

    root@ip-192 [/]# mv eximdisable eximdisable.bak
    mv: cannot stat `eximdisable': No such file or directory


    /bin/ls: cannot access /etc/eximdisable: No such file or directory

    Please, advice.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Lillike

    Have you made modifications to Exim's configuration? It looks like exim is failing to start due to the following:

    Code:
    Starting exim: 2018-05-29 06:11:33 Cannot open main log file "/var/log/exim_log": No such file or directory: euid=0 egid=0
    
    Which doesn't exist by default in default cPanel installations. The exim log should be /var/log/exim_mainlog


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Lillike

    Lillike Active Member

    Joined:
    May 29, 2018
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hungary
    cPanel Access Level:
    Root Administrator
    Hi Lauren,

    The Exim configuration have not changed by me.

    First of all i have a problem with smtp relay usage.


    DATE USED LIMIT PERCENT
    2018-05-28 0 5000 0.0%
    2018-05-27 0 5000 0.0%
    2018-05-26 0 5000 0.0%
    2018-05-25 5000 5000 100.0%
    2018-05-24 5000 5000 100.0%
    2018-05-23 5000 5000 100.0%
    2018-05-22 5000 5000 100.0%
    2018-05-21 5000 5000 100.0%

    2018-05-20 0 5000 0.0%
    2018-05-19 2 5000 0.04%
    2018-05-18 2053 5000 41.06%
    2018-05-17 44 5000 0.88%
    2018-05-16 21 5000 0.42%
    2018-05-15 45 5000 0.9%
    2018-05-14 42 5000 0.84%
    2018-05-13 26 5000 0.52%
    2018-05-12 20 5000 0.4%
    2018-05-11 7 5000 0.14%
    2018-05-10 24 5000 0.48%
    2018-05-09 40 5000 0.8%
    2018-05-08 111 5000 2.22%
    2018-05-07 44 5000 0.88%
    2018-05-06 30 5000 0.6%
    2018-05-05 94 5000 1.88%
    2018-05-04 118 5000 2.36%
    2018-05-03 51 5000 1.02%
    2018-05-02 67 5000 1.34%
    2018-05-01 57 5000 1.14%
    2018-04-30 54 5000 1.08%
    2018-04-29 36 5000 0.72%
    2018-04-28 27 5000 0.54%
    2018-04-27 12 5000 0.24%
    2018-04-26 8 5000 0.16%
    2018-04-25 15 5000 0.3%
    2018-04-24 7 5000 0.14%
    2018-04-23 0 5000 0.0%
    2018-04-22 0 5000 0.0%
    2018-04-21 0 5000 0.0%
    2018-04-20 21 5000 0.42%
    2018-04-19 11 5000 0.22%
    2018-04-18 13 5000 0.26%
    2018-04-17 30 5000 0.6%
    2018-04-16 18 5000 0.36%
    2018-04-15 2 5000 0.04%
    2018-04-14 11 5000 0.22%
    2018-04-13 14 5000 0.28%
    2018-04-12 49 5000 0.98%
    2018-04-11 25 5000 0.5%
    2018-04-10 34 5000 0.68%
    2018-04-09 44 5000 0.88%
    2018-04-08 6 5000 0.12%
    2018-04-07 8 5000 0.16%
    2018-04-06 26 5000 0.52%
    2018-04-05 15 5000 0.3%
    2018-04-04 37 5000 0.74%
    2018-04-03 20 5000 0.4%
    2018-04-02 21 5000 0.42%
    2018-04-01 10 5000 0.2%


    I have not got any campaign etc. and the smtp relay usage was full from May 21 to 25. I do not know why.
    So on 25th the unlimited emails disabled and limited 250 per a day and 50 hourly. No other modification.
    From 26th the limitation is down now al services are as default.
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Lillike


    Can you reinstall exim using the following steps:

    Code:
    rpm -e --nodeps exim
    Code:
    /scripts/check_cpanel_rpms --fix
    and let me know if you're able to get exim started again?

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Lillike

    Lillike Active Member

    Joined:
    May 29, 2018
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hungary
    cPanel Access Level:
    Root Administrator
    Hi Lauren,

    Thanks for your answer.


    I tried to reinstall and here is the infos:

    root@ip-192 [~]# rmp -e --nodeps exim
    -bash: rmp: command not found
    root@ip-192 [~]# /scripts/check_cpanel_rmps --fix
    -bash: /scripts/check_cpanel_rmps: No such file or directory

    Please, advice.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Lillike


    That's my fault, I mistyped, I apologize. The script is:

    Code:
    /scripts/check_cpanel_rpms --fix 
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Lillike

    Lillike Active Member

    Joined:
    May 29, 2018
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hungary
    cPanel Access Level:
    Root Administrator
    root@ip-192 [/]# /script/check_cpanel_rpms --fix
    -bash: /script/check_cpanel_rpms: No such file or directory

    :(
     
  8. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,838
    Likes Received:
    276
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Lillike

    It looks like you're running /script/check_cpanel_rpms --fix but it should be /scripts/check_cpanel_rpms --fix

    This is my fault, I should have been more careful when I typed it originally.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Lillike

    Lillike Active Member

    Joined:
    May 29, 2018
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hungary
    cPanel Access Level:
    Root Administrator
    Lauren,

    It's my fault. So, now:


    root@ip-192 [/]# rpm -e --nodeps exim
    warning: /etc/localdomains saved as /etc/localdomains.rpmsave
    warning: /etc/eximrejects saved as /etc/eximrejects.rpmsave
    warning: /etc/exim.pl saved as /etc/exim.pl.rpmsave
    root@ip-192 [/]# /scripts/check_cpanel_rpms --fix
    [2018-05-30 07:34:59 -0700]
    [2018-05-30 07:34:59 -0700] Problems were detected with cPanel-provided files which are RPM controlled.




    [2018-05-30 07:35:45 -0700] Startup Log
    [2018-05-30 07:35:45 -0700] Starting exim: [ OK ]
    [2018-05-30 07:35:45 -0700] Starting spamd: [ OK ]
    [2018-05-30 07:35:45 -0700]
    [2018-05-30 07:35:45 -0700] Log Messages
    [2018-05-30 07:35:45 -0700] 2018-05-30 07:35:38 exim 4.91 daemon started: pid=11567, -q1h, listening for SMTP on port 25 (IPv4) port 587 (IPv4) and for SMTPS on port 465 (IPv4)


    [2018-05-30 07:35:45 -0700] exim restarted successfully.
    [2018-05-30 07:35:45 -0700] Install Complete
    [2018-05-30 07:35:45 -0700] Hooks system enabled.
    [2018-05-30 07:35:45 -0700] Checking for and running RPM::Versions 'post' hooks for any RPMs about to be installed
    [2018-05-30 07:35:45 -0700] All required 'post' hooks have been run
    [2018-05-30 07:35:45 -0700] Restoring service monitoring.


    So now I can send any emails but i can NOT receive because:
    Final-Recipient: rfc822; info@ .com
    Action: failed
    Status: 5.0.0
    Remote-MTA: dns; v.com. (192...., the server for
    the domain v .com.)
    Diagnostic-Code: smtp; 550-Please turn on SMTP Authentication in your mail client.
    550-mail-wm0-f46.google.com [74.125.82.46]:38858 is not permitted to relay
    550 through this server without authentication.
    Last-Attempt-Date: Wed, 30 May 2018 07:45:51 -0700 (PDT)

    Please, advice.
     
  10. Lillike

    Lillike Active Member

    Joined:
    May 29, 2018
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hungary
    cPanel Access Level:
    Root Administrator
    Lauren,

    Thanks for your help.

    I'm so sorry gmail is not CPANEL problem... :)
    I can send letters, but now i have not received anything...

    I tried to send and email from WHM to all users but emails are not received.

    Please, advice.
     
    #10 Lillike, May 30, 2018
    Last edited: May 30, 2018
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