Blocked emails with Google Apps Script - email

I have a script that sends out emails just fine with our gmail account but when I try to run it with our Google Workspace account, the emails get blocked. I've checked with the support at Google and they tell me our DKIM and SPF are setup correctly. Any idea why the emails are getting blocked? The same code should work in both a regular gmail account and a Workspace account, Right?

Related

How to route mails outside Mac Os X Server host

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.

using `Gmail SMTP` to send `mail` from my web application. But getting Authentication error

using Gmail SMTP to send mail from my web-application which is Deployed in heroku But getting Authentication error.
I'm receiving a mail from Google saying that:
Someone just used your password to try to sign in to your Google
Account **********#gmail.com, using an application such as an email
client or mobile device.
Details:
Thursday, April 20, 2017 5:35 AM (ET)
Ashburn, VA, USA*
Google stopped this sign-in attempt, but you should review your recently used devices:
I tried all these below:
1)I have reviewed the recent login and said that was me but still google is not allowing me to login.
2)Turning ON access for less secure apps.
Sending mail Code is working fine in my local system, But After deploy it is not working.
can anyone tell me that how I can make my web-application which is deployed in Heroku server which is running from location -Ashburn,VA, USA* to be approved to get login into my gmail.
Thank you in advance :-)
I had the same problem as you - I am also using a gmail account to send SMTP mail via a heroku account. Try logging in to your gmail account and then logging out, and then back in. You can also try this further authentication mechanism at : https://accounts.google.com/displayunlockcaptcha.
In my case, it took a little while (some anxious wait time?) after doing this before I was able to send SMTP mail.
You might also want to consider if you haven't already using one dedicated gmail account for SMTP mail.

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.

google apps for business cannot receive mail

I recently signed up for my client Google Apps for Business. Everything setup fine and verification all done.
The only problem is I cannot receive mail to the newly setup mail. I can send out mail no problem.
It seems like the SMTP server had changed but pop3 or IMAP server still using the old one.
How can I resolve that? Thanks!

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.