• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem sending mails when from-email-address is different from from-smtp-server  RSS feed

 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use JavaMail, to send mails from a server. I connect to a single SMTP Host ( My company SMTP HOst ).

The From Address depends on the user logging in and can be any address ( any domain ).

In our problem scenario, we send a mail with from email-address name@diffhost.com, using SMTPSERVER

myhost.com, and send it to name1@diffhost.com.

So myhost.com sends a mail with a from email-address of name@diffhost.com and diffhost rejects it with the

message
"SMTP, 556 Cannot accept message from this email address"

Has anyone faced such a scenario and provided solutions for it or any insights from anyone.

Mahesh
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are quite a few mail servers that only accept From adresses at the same host; it's an anti-spam precaution. It it less important now that just about all mail servers require authentication (i.e., logging in). There should be a server setting to allow all From addresses if you're logged in; ask your mail admin.
 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message does NOT come from our SMTP , rather comes from the destination SMTP Server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!