Disabling email notifications via SSH

palav0s

Well-Known Member
Jul 15, 2011
55
0
56
Hello,

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

Which service/config file is responsible for that?
 

palav0s

Well-Known Member
Jul 15, 2011
55
0
56
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.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
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.
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...
 

palav0s

Well-Known Member
Jul 15, 2011
55
0
56
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?
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.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
root forward is in /root/.forward and cPanel's is (I think) in /.forward
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
So it's not possible to do this via shell?
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
 

palav0s

Well-Known Member
Jul 15, 2011
55
0
56
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
Code:
find / -name .forward
I couldn't find any .forward file anywhere.