Send emails on behalf of a domain name and forward all notifications to ema

evilopinions

Member
Jan 31, 2012
6
0
51
cPanel Access Level
Root Administrator
We host our domain name through server A using an A record pointing to the IP adress.
We use an email adress [email protected] to send out notifications for all people filling out a form and same notice goes to the admin - [email protected]

Our emails are hosted by another server and if I send a notification using a PHP script from CPANEL it just returns my email back to cpanel in the catch-all email adress.

How do I force the system to read the correct MX record and send out all notiifcations to the correct email address hosted on the different server ? I want to achieve this in simple temrs without using complex relays and stuff.
 

Eric

Well-Known Member
Nov 25, 2007
754
14
143
Texas
cPanel Access Level
Root Administrator
Twitter
Re: Send emails on behalf of a domain name and forward all notifications to

Howdy,

There are a few ways to make this work. You can configure your mail program to send the mail to the MX not to the local mail queue. Or you could configure exim that this domain is an accepted domain but has a smart host upstream.

It would be really easy to change the host for the program to point at the MX record of the domain.

Thanks!