How to route mails outside Mac Os X Server host - email

I have a mac osx server at my office. I have only one email address configured on it because it's an email address outside my GSuite account. That email address was created for sending mails from a php script (I don't want to pay to Google for that email address because I don't need all of the Google Services on it). I configured PHP Mailer for sending mails using that email account.
It's connecting perfectly fine, authentication is correct, etc., but there is one problem: if I send mails to #mydomain.com it says that account doesn't exist, but it does exist, only that it is hosted on GSuite. If I send mails outside mydomain, it works fine.
Question is: how do I route those mails to look up for the correct MX récords? I mean, how to make those #mydomain.com emails reach the GSuite host?

You can have multiple MX records per domain. It is possible. They will use priorities. You can even have multiple email servers checking emails from each other.
However, you case with hosted emails this won't work. Google is not going to let you do this.
You will have to pay.

Related

Can I use mix of GSuite and my own server to send emails?

I am hosting my email address, for example, arvind#mydomain.com on Gsuite.
How do I add more addresses in my server such as abc#mydomain.com and use my own server, such as my website to send emails to this user. I created abc#mydomain.com using WHM/cpanel for the domain. I am able to send email from this address but they end in spam folder. Also I am not able to send emails to this address.
I have added Google's server to MX entries and my own server such as mail.mydomain.com. However if I try to send email to abc#mydomain.com it fails with "Address not found".
How can I fix it? I am able to edit DNS entries if required to.

Sending email CPanel

the problem is this:
I need to send an email to a Google Apps account with the same domain that I have delegated to our server from CPanel.
The problem is that when I send an email from no-reply#mydomain.ie (email server) to support#mydomain.ie (gapps email) [same domain, different servers] not from the server, but it tries to find "support" on the local server and can not find (No Such User Here).
Is there any way from CPanel, so that if the user does not find email (support), send it the same? Considering that to send email no-reply#mydomain.ie have the account and use local data.
Thanks!
Alejandro.
I believe you are using Google Apps for email service. It seems that your mail exchanger is set to local in your cPanel.
Go to WHM -> Edit MX and edit this domain. Here you will get an option to set remote mail exchanger for your domain.

How to transfer old email message from PLESK to cPanel

I have redirected a domain from PLESK to another server (cPanel) and also I have transferred the code from PLESK TO cPanel. Now my website is running well. I have created my email on cPanel and i am using webmail to access my email account.
But want to transfer old email messages from PLESK to cPanel. I have searched and found that email messages are stored on PLESK on this location:
# /var/qmail/
Is there any way to transfer email email messages from PLESK to cPanel?
Thanks in advance for any replies.
You can fetch mail from your PLESK server and have it imported into cPanel.
Simply login to your cPanel
Access your webmail and access Horde
Once logged in, on the left hand side, click OPTIONS then Mail
On the center of the screen under “Message Options” click “Fetch Mail”
Create a new account, enter your details from your email account located on your PLESK server (for the incoming/outgoing servers, use your PLESK server hostname)
Email will then begin to be downloaded into your cPanel inbox.
That should do the trick :)
Horde doesn't have the Fetch Mail option anymore.
So, the easiest solution is manual transfer using Outlook or Thunderbird.
How to move email from any server into cPanel use an IMAP client like Microsoft Outlook or Thunderbird?
First, configure each new email account on cPanel (including any sub-folders). Next, configure your IMAP client (Outlook or Thunderbird) with each email account on each server.
One account for the old account (if it is not already there) and one account for the new account created with cPanel.
You may find it easier to use the actual IP addresses of each respective server to avoid name resolution issues.
Replace example.com with IP address (use ping example.com on your CMD console to find out the IP of the old server)
After that, you just need to drag-and-drop the old messages from the old account into the new account on Outlook or Thunderbird and delete the old account.
When finishing with all accounts, change your domain DNS to the new cPanel hosting server and you're done.
It will be downtime?
Depends on the number of email boxes you have to transfer and on other websites or applications you have to move from the old domain name. Normally it should work fast enough to not have any problems but I suggest doing this after working hours.

Server (example.com) refuses to send mail to name#example.com

I'll start out with my configuration:
example.com mailserver - Google Apps.
example.com - has regular mailings based on queries, sent out daily and weekly. Build in Zend framework, with extJS.
subdomain.example.com - to process the bulk mailings.
Background: I enjoy using google apps features (CRM, calendar, mail, etc), but due to my mail volume I can't send all of my outbound alerts through Google Apps. To work around this, I set up a subdomain on my server and am running my email off of that account.
Problem: I have mail that is generated from example.com, and sent to me#example.com. My server refuses to send this mail and it lands in the root email account. All other emails are delivered without an issue (yahoo, hotmail, yoursite.com, gmail, ...)
I've worked on this all day and can't seem to come up with a solution (aside from sending emails to an outside account).
Has anyone experienced this before? How can it be fixed?
Got it. I had to log into WHM and select that my mail not deliver mail locally.
Main >> DNS Functions >> Edit MX Entry
REMOTE MAIL EXCHANGER: This server will NOT serve as a mail exchanger for containerauction.com's mail.: This configuration has been manually selected.

Wordpress - Contact Form 7 Not Sending to Certain Email

I am using Contact Form 7 with Wordpress, but I am experiencing an email compatibility issue.
I have the form setup to email to email#domain.ca, domain.ca being the domain of the website hosting the site. The email address exists and works great, however the Contact Form keeps failing on send.
If I change the email address to any of my Gmail or other accounts, it works fine.
I am looking for ideas or suggestions as to how I might debug this. Is it because the site is hosted on a shared hosting server but the mail server is in-house at the physical location?
Any ideas would be great.
Ended up being an MX Entry problem with the shared host.
I had to set the MX Entry to send mail to an external host instead of the internal mail servers (it didn't realize the mail server was external).
Problem solved and all is well.
EDIT: We have run into this issue multiple times now with the hosting.
Essentially, cPanel gives you an option to say that mail servers are external, but it often fails to deliver on actually making the change. We have to remove the mail servers and hardcode the external one in order to make it work properly and consistently.
Might be php or smtp mail restrictions at your hosting service. Try http://wordpress.org/extend/plugins/wp-mail-smtp/