How do i change the default root email address?

R1Lover

Verified User
Joined
Feb 24, 2007
Messages
439
Create a forwarder in the root directory or adjust the settings of csf/lfd to use a different e-mail.
 

R1Lover

Verified User
Joined
Feb 24, 2007
Messages
439
To create a forward file, make a file named .forward inside this file list the e-mail address you want these e-mails to be sent too. Save in it the /root directory and that's it.
 

nimafire

Verified User
Joined
Aug 10, 2008
Messages
246
For root emails, edit:
/etc/aliases

add something like:

root: some@email.com

and root emails will be forwarded there (can be a local email address)

Direct root emails are not permitted by exim, hence the forwarder/alias would be needed.
 

cbservers

Verified User
Joined
Oct 28, 2004
Messages
44
Location
Sydney, Australia
For root emails, edit:
/etc/aliases

add something like:

root: some@email.com

and root emails will be forwarded there (can be a local email address)

Direct root emails are not permitted by exim, hence the forwarder/alias would be needed.
Thank you nimafire.

Why this is not in the knowledge base, is beyond me.
It's something that should be set correctly for every server.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,395
Location
Maastricht
Why this is not in the knowledge base, is beyond me.
Because this is basic Linux knowledge.
You can't set that correctly for every server either because some do not want mail from or to root and everybody want's a different e-mail adres in there.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,161
Location
GMT +7.00
Try and change admin's email in its details in Directadmin (it edit user page for admin).
 
Top