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.

Disabling email notifications via SSH

Discussion in 'E-mail Discussions' started by palav0s, Mar 27, 2013.

  1. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I 'm trying to disable the email notifications via SSH in cPanel.

    Which service/config file is responsible for that?
     
  2. PenguinInternet

    PenguinInternet Well-Known Member
    PartnerNOC

    Joined:
    Jun 20, 2007
    Messages:
    149
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cardiff, UK
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Do you mean the notifications that someone has logged in via root? If so, that's found in cphulk within WHM. Better still, if you've got a static IP you can just whitelist your own address
     
  3. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    I mean all notifications regardless of what purpose.
     
  4. PenguinInternet

    PenguinInternet Well-Known Member
    PartnerNOC

    Joined:
    Jun 20, 2007
    Messages:
    149
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cardiff, UK
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Try 'Server Contacts' in WHM then. Personally, I'd not be looking to disable all notifications - they are there for a reason and you'll likely then miss something important
     
  5. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    As I mentioned I would like to change this via SSH.
    It's a dev system tha I would not like to receive any notifications at all.

    Thank you for the reply.
     
  6. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    So you mean you have a development server, you have SSH access but not WHM access?
    Why would you want to disable notifications in a development server?
    Sorry but I don't buy that...
     
  7. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Well, I have an expired license and it doesn't allow me to enter WHM.
    I would like to keep the cpanel server as is until I update the license.

    One way is to change stop all services but disable notifications would be easier.
     
  8. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    root forward is in /root/.forward and cPanel's is (I think) in /.forward
     
  9. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    I haven't found any .forward file.
     
  10. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    So it's not possible to do this via shell?
     
  11. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    root mails are forwarded in /root/.forward and cPanel email in /var/cpanel/userhomes/cpanel/.forward

    What I mean is that if you in WHM-> Server Contacts-> Edit System Mail Preferences
    set root's mail forward it is written in /root/.foward
    and if you set cPanel's mail forward is is written in /var/cpanel/userhomes/cpanel/.forward
     
  12. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Code:
    find / -name .forward
    I couldn't find any .forward file anywhere.
     
Loading...

Share This Page