Forward cPanel default email?

sohlinux

Active Member
Sep 26, 2008
27
0
51
Hello,

how can I forward cpanel default email address [email protected] to another email address?

there doesnt appear to be an option to do it in cpanel but I do have ssh root access

thanks
 
Last edited:

sohlinux

Active Member
Sep 26, 2008
27
0
51
You can via the 'Default Address' in your cPanel but why would you want to do that?
there is not an option, my cpanel default email is [email protected] not [email protected]

and I want to do it because I dont want to login to 2 different email accounts, I would rather just have one

is there a way of just redirecting the email because I dont want to keep a copy on the server

just redirect cpanel default email address [email protected] to another email address?

thanks
 

Infopro

Well-Known Member
May 20, 2003
17,090
519
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
You shouldn't be getting any email at [email protected] under normal circumstances.

In your cPanel > Preferences section, Update Contact Info, you add an off server email address. Valid email to [email protected] should be sent to that off server email.

In the Default Address area I mentioned you set all unrouted email to be discarded.

The default email address will "catch" any mail that is sent to an invalid email address for your domain. To send all default mail to the main mail account, type the username of your cPanel account into the "Forward to email address" field.
 

sohlinux

Active Member
Sep 26, 2008
27
0
51
that doesnt work, in cPanel > Preferences section I have already added my Contact Info with an off server email address , I see no option to forward or relay the email anywhere in cpanel or whm

the default email is [email protected] so how can I change it to [email protected] and either forward or relay the email?

thanks
 

sohlinux

Active Member
Sep 26, 2008
27
0
51
Yes I have root access to whm or ssh and the default address manager is already enabled

in cpanel under Set Default Address it gives an option to Send all unrouted email for: domain.com but not [email protected]

am I missing something?

thanks
 

sohlinux

Active Member
Sep 26, 2008
27
0
51
if forwarding of the default email [email protected] is not possible with cpanel would it be possible to setup automatic forwarding using the access webmail link and using either @email, horde, roundcube or squirrelmail?

thanks
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,090
519
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Unrouted mail should be discarded. [email protected], [email protected] as examples.
cPanel Linux user system emails ([email protected]) are/should be sent (forwarded) to the Contact Email.

You can check in on that default system email from time to time to check for emails (for example if you have a mail script on your account that's not working properly, mail might go here to die) but under normal conditions there shouldn't be any reason mail goes there.

If mail is going there to the system users account (which is not a real email address), might you explain here a bit more about those emails? That might be useful in figuring out how to prevent this from happening.

For example, if your cPanel username is johnny, your server hostname is server.domain.com and you sent an email right now to [email protected] that email should be bounced back to you within seconds. It should not be accepted. You want that.

If you forwarded all system emails, no email scanning, IIRC, takes place. That means that every [email protected], [email protected] email is coming to you. You do not want that. And worse, if you're forwarding all that email to an outside email account, like yahoo, or hotmail or even google, these companies might think you're sending spam from your server and blacklist your IP.

You should certainly never want that to happen on a shared IP environment or you might get lots of complaints when other accounts emails are bouncing due to the IP it came from being blacklisted.

I am no email expert. I do what works. If this post is not helpful enough I'll have to defer further assistance to you by someone else reading this thread with more experience and details to help you achieve what you want here.

HTH!
 

sohlinux

Active Member
Sep 26, 2008
27
0
51
thanks for the info :)

I am using an oscommerce website and when I send out a mailing list all the bounced email goes back to [email protected] but oscommerce is configured with an email address off the server.

I simply want to forward all email to another email address off the server, it works fine with [email protected] but appears impossible to forward email from [email protected]

someone suggested on another thread to make a .forward file with the forwarding email address inside and put it inside the /home/user directory but it doesnt work.

I guess I will just have to keep logging into the user account in via the cpanel webmail link to check for the bounced emails unless someone come up with a fix.
 
Last edited:

sparek-3

Well-Known Member
Aug 10, 2002
2,042
230
368
cPanel Access Level
Root Administrator
The .forward file is what you want to use.

But a better solution would be to configure your script to use an envelope-sender email address that you wan these bounce messages to go back to.

It sounds like your script is not setting an envelope-sender, so it's defaulting to just your cPanel account's username, which won't get picked up by the /etc/valiases/domain.com default address. The .forward file will, but it's not an ideal solution.
 

sohlinux

Active Member
Sep 26, 2008
27
0
51
The .forward file is what you want to use.

But a better solution would be to configure your script to use an envelope-sender email address that you wan these bounce messages to go back to.

It sounds like your script is not setting an envelope-sender, so it's defaulting to just your cPanel account's username, which won't get picked up by the /etc/valiases/domain.com default address. The .forward file will, but it's not an ideal solution.

I finally got it to work using the .forward file, it appears that I had some incorrect user permissions the first time I tried it, now its just fine after a little chown, it will suffice until I figure out why oscommerce is using the default email rather than my actual email address.

:)