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!
Related
I use CDO to send emails for years and since last month there is a strange behaviour when the recipient is yahoo. I get an error:
554 5.7.1 : Data command rejected: SMTP authentication is required for Yahoo mail delivery
However, if I enter TWO recipients separated by comma (even the same address twice), there is no problem and the mail goes ok!!!
Has anybody faced such a problem? It's crazy, isn't it?
Well it seems yahoo has introduced a new security check and do does not accept email from unauthenticated senders of any domain (my case).
So If I enter my email smtp password to send email, there is no problem at all.
Please note that I don't hav a yahoo account, my email is #otenet.gr (which permits unathenticated send mail).
PS
However, the security chek is easily bypassed by just having TWO recipients...
This one has me stumped... I currently have one MailGun route setup... its a catch_all() that forwards all mail on my domain to my GMail account. For some reason, if I email somebody who has an autoreply (i.e. an out-of-office responder), I do not receive the autoreply message. I checked the MailGun control panel logs, and the autoreply never even shows up... its as if messages sent via MailGun don't trigger other mail services to send an autoreply? I've confirmed that my sent messages are received in the Inbox of the person with the autoreply active. I've also confirmed the behavior when sending to outlook and GMail users.
Help please! Thanks.
Here's a response I got from mailgun support:
We by default drop all system messages, NDRs, OOOs and auto-replies (they'll all have a null <> Sender header which don't allow).
Short question:
Is there a way to reliably deliver emails using mailgun routes without getting this error message:
Failed: redacted#yahoo.com → redacted#gmail.com 'Re: Sample Subject Line' Server response: 550 550 5.7.1 Unauthenticated email from yahoo.com is not accepted due to domain's 5.7.1 DMARC policy. Please contact administrator of yahoo.com domain if 5.7.1 this was a legitimate mail. Please visit 5.7.1 http://support.google.com/mail/answer/2451690 to learn about DMARC 5.7.1 initiative. pw18si13572314vdb.85 - gsmtp
I like using mailgun routes because it meets my needs perfectly... but it seems that I can't reliably deliver mail to multiple recipients this way.
Long Story
I'm trying to find a service that will allow me to
create an email alias, mylist#mydomain.com
Send emails to mylist#mydomain.com and have that single email delivered to 10-20 people with me as the sender and mylist#mydomain.com in the to field (so "reply" goes to the sender and "reply-all" goes to everyone)
Mailgun routes fit this perfectly
I read their API docs and implemented a solution to read from our group database and make web calls to update my routes. Everything is great.
Everything worked great until I started getting the DMARC messages. Is there a way to avoid this? We're a small group (but dynamic) group and we'd like to make sending emails easy.
Thanks~!
Mailgun is now providing mailing list support, so you only need to create a new mailing list mylist#mydomain.com, add members to it, and then each members can discuss by sending an email to mylist#mydomain.com.
See https://documentation.mailgun.com/user_manual.html#mailing-lists
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
I use SwiftMailer for send mail to facebook user. Sometimes I get response from facebook mail server
said: 554 5.7.1 POL-P8 http://postmaster.facebook.com/response_codes?#pol-m Message refused (in reply to end of DATA command))
Please tell me what could be wrong?
I'm not sure, but this could be a result from a non-valid or non-existing SPF record for the domain name.
See more: http://en.wikipedia.org/wiki/Sender_Policy_Framework