Gsuite - Gmail Email Hosting - Domain On My Server

UPDATE: So it IS sending emails but they are all ending up in my Gmail spam folder....so I'm kinda back at square one with that and need to figure out how to keep that from happening, the obvious solution is using smtp rather than php which is what I'm doing now.

-----

Ok... so Google says they will kill access to/from less secure apps (email clients, other software, etc) this year. Keep that in mind... everything will have to be oAuth.

Now... as I stand today.

I have my own server, used to own American Web Host so I can usually figure out whatever. Today though, it's a real pain to keep an email server playing nice with the big boys, yahoo/hotmail/gmail, etc no matter what txt/spf/etc records or reputation...emails are constantly going to customer spam folders. And it just gets worse every year.

So... I've been migrating a few of our business domains email to Gsuite which has worked out well. I have an off road parts company and just did this for it but can't get emails sent from cs-cart. Obviously the web site (usoffroad.us) is hosted on my server and has DirectAdmin on it which makes things easy...setting up domain email elsewhere, fixing internal DNS etc etc.

But I'm not having any luck getting email from the usoffroad domain/cs-cart store to arrive at my gsuite/gmail inbox.

When I dig the MX for usoffroad.us it returns the correct records:

; <> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.3 <> usoffroad.us mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42663
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 5, ADDITIONAL: 0

;; QUESTION SECTION:
;usoffroad.us. IN MX

;; ANSWER SECTION:
usoffroad.us. 1800 IN MX 1 aspmx.l.google.com.
usoffroad.us. 1800 IN MX 10 alt3.aspmx.l.google.com.
usoffroad.us. 1800 IN MX 5 alt2.aspmx.l.google.com.
usoffroad.us. 1800 IN MX 10 alt4.aspmx.l.google.com.
usoffroad.us. 1800 IN MX 5 alt1.aspmx.l.google.com.

;; AUTHORITY SECTION:
usoffroad.us. 86400 IN NS ns0.dnsmadeeasy.com.
usoffroad.us. 86400 IN NS ns2.dnsmadeeasy.com.
usoffroad.us. 86400 IN NS ns3.dnsmadeeasy.com.
usoffroad.us. 86400 IN NS ns1.dnsmadeeasy.com.
usoffroad.us. 86400 IN NS ns4.dnsmadeeasy.com.

;; Query time: 3 msec
;; SERVER: 208.115.254.242#53(208.115.254.242)
;; WHEN: Wed Jan 29 11:23:11 2020
;; MSG SIZE rcvd: 250

So the server isn't trying to send it to itself.

But.. if I want to try the whole gmail smtp debacle in CSC Settings... then that's a problem too.

What is the solution if I'm hosting my own domain with csc and sending out email through gsutie/gmail where my email for the same domain is hosted?


Did you get this sorted? Im having big issues connecting to gsuite... I also run my own server, recently changed from another email provider (mistake one) and now I am getting no emails sent out from the server using gsuite as a relay.

No and this is still a problem as lots of my email originating from the server are getting flagged as spam.

Got it working, finally.

Made sure port 465 TCP Out was open.. it was not.

Then had to go to my Gsuite/Google account and turn OFF less secure apps. It was on and wouldn't let CSC connect.

SMTP host:
smtp.gmail.com:465
SMTP username:
Your full email address
SMTP password:
Gmail password
Use Encrypted Connection: SSL
Use SMTP authentication: Check this box.

All tests originating from the server seem to work well now.