Getting emails from cpanel@hostname and root@localhost

schatzman

Member
Apr 9, 2017
23
2
3
europe
cPanel Access Level
Website Owner
hello

im getting emails to spm folder because they are sent from cpanel@hotsname and root@localhost (-> that convert to root@hostname).

how can i change the setting for those emails alert? usually getting those emails form cpanel backup an rkhunter..

thanks
Matan
 

rpvw

Well-Known Member
Jul 18, 2013
1,100
477
113
UK
cPanel Access Level
Root Administrator
I just created a feature request asking for the ability to change the envelope FROM as well as the existing To addresses (Waiting for moderation at the moment).............. look for "Extended Edit System Mail Preferences" if it gets approved. :-D
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

I encourage anyone seeking this functionality to vote and add feedback to the following feature request:

Send cPanel Notifications via Authenticated SMTP Connection

One potential workaround for now is to setup an email account under an existing domain name through cPanel, and set the forwarding address for notifications to that new email account in "WHM >> Edit System Mail Preferences". Then, setup a forwarder or filter for the newly created email account to direct the notifications to the preferred remote email address (e.g. Gmail).

Thank you.
 
  • Like
Reactions: rpvw

linux4me2

Well-Known Member
Aug 21, 2015
259
80
78
USA
cPanel Access Level
Root Administrator
Could you just set up a separate DNS zone for your hostname, then add SPF and DKIM records to it? Your emails would then pass both SPF and DKIM checks and shouldn't end up in the spam folder.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Could you just set up a separate DNS zone for your hostname, then add SPF and DKIM records to it? Your emails would then pass both SPF and DKIM checks and shouldn't end up in the spam folder.
That may work in some cases (depending on the remote mail server's policies), but it also involves unsupported workarounds:

DKIM for main server hostname

Thank you.
 
  • Like
Reactions: linux4me2

linux4me2

Well-Known Member
Aug 21, 2015
259
80
78
USA
cPanel Access Level
Root Administrator
That may work in some cases (depending on the remote mail server's policies), but it also involves unsupported workarounds:

DKIM for main server hostname

Thank you.
The workaround suddenly stopped working for me with Gmail today, even though I still have a DNS record for my host with accurate SPF and DKIM records, so I don't suggest this anymore... Both SPF and DKIM tests show they failed in the message source at Gmail, and the email went to the spam folder.