Create account without email. Email on external server

Wonderm00n

Member
May 4, 2006
9
0
151
Hi there,

Is there a way to create/modify an account so it doesn't have the email service?

The email server of this account is on external server so I need the emails to go there...

I've changed MX records for this domain and now all emails coming from the internet are correctly delivered on the external email server but all emails generated INSIDE the hosting machine are delivered internaly...

Examples:
- Emails automaticaly generated from PHP scripts
- Emails sent by people who use my server as SMTP server (all my clients...)

I've been searching this forum but found no way to pt this to work correctly so far.

I'm quite desesperate. Any ideas?

Thanks in advance,
Marco Almeida aka Wonderm00n
 

Man0warr

Well-Known Member
Jun 5, 2006
59
0
156
Dallas, TX
I'm having the EXACT same problem.

We have a client that we host the website for, but they do their mail externally. We have their MX records setup correctly, they receive all their e-mail from outside. But if we try to send them an e-mail from ourselves (hosting machine) it get's sent to the default box in cPanel.

It's like it can't figure out how to route it.

At one point it was working correctly, a long time ago, so I know there is a way around it.

Can anyone help us?
 

Wonderm00n

Member
May 4, 2006
9
0
151
I've used HSPHERE in the past and this was a trivial thing to do...

It's hard to believe a player like CPANEL on the hosting control panel business doesn't have a easy way / feature to do this...

Really I think it would be enough to manually remove the domain from the mail server and then the server would use the MX records to forward the email... But I really wouldn't like to be messing around with this manualy as anytime, in some restore from a backup the domain could be added again to the mail server. Also it could break CPANEL somehow (?).

HELP!!!!! :D
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
It's documented many many times in the forums:

1. Remove the domain from /etc/localdomains

2. Add the domain to /etc/remotedomains - create the file if it doesn't exist

That's it :)
 

Wonderm00n

Member
May 4, 2006
9
0
151
And regarding my concerns...

- CPANEL will not "break" in any way?
- If any restore is made, will not the domain come back to the localdomains?