Edit Mail Preferences from ssh
Hello
I need to edit "Edit System Mail Preferences" but my request is a little different because I need to edit emails in this option from SSH side
I know I can do it from blow address
/var/cpanel/userhomes/cpanel/.forward (it's for cpanel user)
/root/.forward (it's for root user)
But I don't know where is ".forward" file or similar than for change nobody's email
Would you help me please ?
-
Hello, You can use the following WHM API 1 function to update the email destination: WHM API 1 Functions - set_user_email_forward_destination - Software Development Kit - cPanel Documentation For example, to modify the destination for the "nobody" user, use a command like this: whmapi1 set_user_email_forward_destination user=nobody forward_to=user@domain.tld
Thank you.0
Please sign in to leave a comment.
Comments
1 comment