Message Delivery Failure - email

I got this bounce back. What does it mean and How do I solve it? Thanks.
MailEnable: Message Delivery Failure.
Reason: ME-E0193: [B7C2FA717C634859B59BCACF7D8C38A8.MAI] Message Delivery Failure.
Your message addressed to the target domain could not be delivered because
the mail server responsible for this domain returned a permanent error.
The server returned: 554 5.7.1 Delivery not authorized

It probably means that a spam filter blocked the mail.
Try to send the same mail from a email webservice and see if you encounter the same error.

Related

Mail delivery failed :returning message to sender

I got this bounce back email whenever try to send to a specific sender..
Any help would be appreciate..Thanks :D
mail content:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
example#example.com.mm
No Such User Here
Reporting-MTA: dns; mail.example.net
Action: failed
Final-Recipient: rfc822;example#example.com.mm
Status: 5.0.0
Unless there is something odd going on, the bounce back message is clearly telling you that the email address "example#example.com.mm" doe not exist. Perhaps "No Such User Here" is not the best wording, but it means that the email address is non-existant.
Is the .mm at the end of the email address part of the problem? Are you actually sending email to Myanmar?
I have never seen this bounceback message when the email address actually existed. Since this is unusual, I would send the email headers to the ISP of the intended recipient, since it is highly likely that is where the problem exists, and ask them to investigate. Also, I do think that you can get the same message if the users Inbox is full. Ask the intended recipient about that.
the problem has to do with your websites DKIM and SPF keys (Email deliverability in CPanel), if they are not added to the server it cannot verify the authenticity of your email.
The best solution is to contact your server support or CPanel support to fix the issue. There is almost nothing you can do via programming.
I had this issue and I spoke to my server's support team and it was fixed
At this point my email deliverability has not been marked as VALID, so the email
Mail delivery failed :returning message to sender kept persisting.
so I spoke to the server support team as the tooltip in the image suggested and it was finally fixed
if you noticed the VALID mark there

Send mail from username.noreply#domail.com without actual mailbox

I need a javax setup where I will receive mails at username#domain.com and acknowledge/reply users from username.noreply#domain.com.
Can I achieve this using username.noreply#domain.com not being an actual mailbox, but just like an alias address to avoid spam.
I tried lot options but not really working.
message.setFrom(new InternetAddress("username.noreply#domain.com",senderName)); giving error com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender
message.setSender(new InternetAddress("username.noreply#domain.com")); giving error com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender
message.setReplyTo(new Address[]{new InternetAddress("username.noreply#domain.com")}); Using this users can still see sender as username#domain.com and automated replies are directed to the original sender.
Thanks!

antispam and RFC status codes

I am running a proxy antispam in my mailserver (ASSP 2.4).
If a remote spammer email is blocked, the antispam permits to configure a reply with a
554 5.7.1 Message blocked due to spam content in the message
or
by sending a "false" '250 OK' instead of SMTP error code '554 5.7.1'.
Two questions please ;
a) If I use the '250 OK' solution , am I breaking some some rule in the
Simple Mail Transfer Protocol (RFC 821 and RFC 5321) ?
b) Which is better and recommended and why ; "554 5.7.1" or "250 OK" ?
Thank you, Graziano
According to section 3.3 of RFC 5321 once you, the receiver, send a 250 OK to the sender it means the reciever has successful stored the message. Further according to section 4.2.4 of RFC 532 responding to <CRLF>.<CRLF> with a positive code (2yx) you accept responsibility for delivery of the message. You can also find that a response of 5yz to the DATA verb is accepted (with a 354) is appropriate when "[...]the server determines that the message should be rejected for policy or other reasons."
So to follow RFC you should likely issue a 5yz response if you determine a message to be spam. But no one polices this. If you configure your mail server to go against RFC you will still receive emails (especailly since you are waiting until the DATA phase to break the protocol, the sender cannot unsend the message).
However if you are willing to classify a message as spam you have then identified someone abusing the SMTP protocol so who cares what you do they are a dirty spammer? What if it is a false positive and the sender thinks you got their email when you in fact did not because you discarded it for being spam? Spam filters are often wrong.
No one is going to come to you and report you for not following SMTP protocol, this is because the RFC's are written to be interpreted. However you should configure your mail server to be some what friendly to a sender who is legitimate but is falsely identified as having sent you spam, so they can communicate the issue to you.

Using Meteor's account methods that send emails how can I be notified of success or failure?

For any of the following core meteor account methods I would like to know if the attempt to send the email was a success or failure, so I can appropriately notify the client if there is an issue and no email is sent.
Accounts.verifyEmail
Accounts.sendResetPasswordEmail
Accounts.sendEnrollmentEmail
Accounts.sendVerificationEmail
Is this possible?
Set Accounts.emailTemplates.from = "myemail#domain.com"
Then your mail server should send any failed receipts back to you..
Additionally, Email.send Throws an Error on failure to contact mail server or if mail server returns an error.

Undelivered Mail Returned to Sender

Just wondering if there is any way to change the mail subject "Undelivered Mail Returned to Sender" to something else, if the error code is 550.
If no then is there is any way to detect a correct email.I am not saying about the email validation.That part is ok.But sometimes if there is no mail box then we get 550 error code.
Thanks,
SMTP reply code 550 means:
The requested command failed because the user's mailbox was
unavailable (for example because it was not found, or because the
command was rejected for policy reasons).
Double check your email settings.
On the other hand, the default error reporting email subject is fixed and you cannot be changed, as it is set in remote email server.
Reference: List of SMTP Server Response Codes