I'm having issue with https://graph.microsoft.com/v1.0/users/<userId>/sendMail.
I get 202 Accepted as response, however when I browsed to the user's mailbox above, I'm receiving delivery failure notification as below:
Delivery has failed to these recipients or groups:
<username>#outlook.com
Your message wasn't delivered because the recipient's email provider rejected it.
Remote Server returned '550 5.7.708 Service unavailable. Access denied, traffic not accepted from this IP. For more information please go to http://go.microsoft.com/fwlink/?LinkId=526653 AS(7171) [SYBPR01MB4428.ausprd01.prod.outlook.com]'
When I logon to Outlook and send email to <username>#outlook.com from <userId>'s Outlook, the email was sent successfully.
Anyone know what's happening here?
I've tried to add a SMTP connector, but doesn't fixed the problem. When SMTP connector send an email to test Outbound Email, it works fine as I can receive at <_username_>#outlook.com.
If you follow the link provided, it explains what is happening
5.7.708 Access denied, traffic not accepted from this IP
The majority of traffic from this tenant has been detected as suspicious and has resulted in a ban on sending ability for the tenant.
Ensure that any compromises or open relays have been resolved, and then contact support through your regular channel.
For more information, see Fix email delivery issues for error codes 5.7.700 through 5.7.750 in Exchange Online.
Related
I am working on a production server that sends roughly 1000 emails a day with almost no issues. There is a single email that always fails and I have been unable to send an email to this user through our system. The site is built with Elixir and uses the Bamboo Mailer, specifically the smtp_adapter but I believe this may be an issue with SES rather than our code or the Elixir libraries we are using.
The particular user always throws this error:
{{:nocatch, {:permanent_failure, "501 Invalid RCPT TO address provided\r\n"}},
From what I can tell the email address is valid and the customer has verified it as such and stated that emails have been sent and received to the user outside of our system.
I'm looking for some context on how SES determines what a valid RCPT TO address is and more generally how SES works to send emails. I haven't been able to find much on this issue from the SES docs.
I'm trying to send emails in my Symfony 4.4 app, I tryed both Mailer and SwiftMailer.
The app is running inside a Docker container, with shared ports 80 and 3306.
If I try the console command with SwiftMailer I get this:
bin/console swiftmailer:email:send --from=ex#example.com --to=ex#example.com --subject=hi --body=hi
[OK] 1 emails were successfully sent.
And after a while I get:
ERROR [app] Exception occurred while flushing email queue: Expected response code 250 but got code "554", with message "554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. [Hostname=XXXX.eurprd04.prod.outlook.com]
This happens with other email providers also, and both, in Mailer and SwiftMailer.
The fact that I get an (error) response from the service provider (Outlook in this case) makes me think that is not a port problem, as the email did actually reach the provider.
Any ideas? I'm quite stuck on this.
Thank you.
This is an outlook365 issue, your authentication account is different to the From address, this is forbidden unless you explicitly grant permission to do so.
You can easily solve this by using the same From address as the account you are using to authenticate. Otherwise, you'll need to grant SendAs permission or SendOnBehalf.
Given your example, you need to set the permission on the ex#example.com mailbox, and grant it to the authuser#example.com user as configured in your env.
You need to do this for as many mailboxes as you want the authuser to be able to send mail as.
To check the configuration, you can access Office 365 as the authuser and try changing the From address when composing a new email. You should see all addresses that have granted permission to that user.
I have verified my domain as mentioned in the Apple Docs but I am still unable to send emails to apple relay addresses.
I have also added the sender email id from the Mailgun logs (postmaster#mail.mydomain.com) to the verified addresses.
But no luck.
SendGrid (https://sendgrid.com/docs/ui/account-and-settings/configuring-sign-in-with-apple/) gives you one email address to be added to Apple Dashboard but I don't see a similar solution for MailGun.
If anyone has faced a similar scenario, please share how you overcame the issue.
make sure your mailgun subdomain is verified. If your server is at example.com and your mailgun sending domain is sender.example.com you need to add the file you download from https://developer.apple.com/account/resources/services/configure to your host on https://sender.example.com/.well-known/apple-developer-domain-association.txt after this verification is successful you will see a green tick and mailgun emails to *#privaterelay.appleid.com which are registered against your developer account should be delivered.
I'm facing following issue:
I send emails from rails using Mailer, it goes fine to all recipients except users with xxx.yahoo.com account.
I tried sending it using SMPT of
Gmail
SendGrid
In none of the case it is delivered.
It gives me following error message
554 Message not allowed - [PH01] Email not accepted for policy
reasons. Please visit
https://help.yahoo.com/kb/postmaster/SLN5067.html [120]
And when I open their provided link, I see following:
You'll receive an SMTP error or failed delivery message that includes
"554 Message not allowed" when the content of a message you're trying
to send violates Yahoo Mail policies. Content that violates policies
includes; objectionable links, malicious attachments, or bad header
information.
They mentioned about content, so I tried sending simple email (note same email when sent from Mail(mac) client, goes fine)
Hello Mr. Suraj,How are you? Not heard from you for long
time.See you soon.
So, this doesn't looks related to content, so bad header information ?
If its so then, doesn't it a Rails/Mailers issue?
I don't understand how to fix this, any one came across this?
Thank you in advance.
I have configured smtp settings in web.config and I was able to successfully send email when working on my local machine. But when I uploaded the code on the server, its giving me following exception
Mailbox unavailable. The server response was: 5.7.3 Requested action aborted
Meanwhile, I also received an email from Microsoft telling me that an attempt to login to my account from a new location was blocked. I clearly understand the problem that server is in a different part of the world than where I usually login to a Windows Live account. That's why it is blocking the account to login. But I want it to login and send email using my credentials on from remote server. There must be some settings in Windows Live account but I failed to find one.
Contacting Hotmail Support Center first to find out if its really possible what you are intending to do might be helpful. I think if hotmail web administration has put a security check, it must be for a purpose of stopping such remote login activities.