You can follow below steps to upload custom logo in webmail:
Log in to WHM.
Go to Home » cPanel » Customization
Now click on Customize Brand tab.
Here you can upload your desired logo with “Browse” option.
NOTE: Your file type must be .svg or .png
At last click on Save button.