[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 835
  • Last Modified:

Sending e-mail with Indy SMTP vs. spam mail

Hello Everybody,
I am writing my own e-mail program like outlook and i devised Indy for this task. I can send e-mails from servers that requires authentication, but the other servers treat my e-mail as a spam mail. I always get those errors :
'553 Sorry, that domain isn't in my list of allowed rcpthosts.' or
'553 sorry, relaying denied from your location [ipaddress] (#5.7.1)'.
But I do not have any problem when I send an e-mail using this SMTP servers with outlook. I did some research. My problem has some thing to do with a header called <X-Library>. It was removed after Indy 9.
What am I supposed to do? How can I send e-mails with my program.
0
sad_man
Asked:
sad_man
  • 2
  • 2
1 Solution
 
TheRealLokiSenior DeveloperCommented:
outlook is an smtp client, and it differs from an smtp server (with relay) in that it will send mail via your ISP (or open servers like hotmail etc. as an example).

Some servers will _never_ allow smtp from untrusted hosts, and you will never get on their list.
even popular linux smtp servers run into this problem.
For simplicity, you can just always send mail via your ISP instead of connecting directly to the mail recipient's smtp server. Your ISP tends to trust you since you're in their ip range.
If you're committed to conecting directly, and your server succeeds to 80% of sites, then perhaps you could implement a "fallback" to use your ISP in those cases.
I understand the X-Library issue.
The thing is, many spammers also used indy, so it got a bad name. I think you get a slightly different message than the 553 you mention above, but some servers just say the same "no, go away" no matter what the reason.
If you upgraded to Indy10, you wouldn't have the X-Library issue, and that would certainly help, but that wouldn't stop all sites from blocking you.
The Indy 10 SMTP server has very little in the way of demos too, Indy 9 is easy enough to work out though
Sorry I can't be of more help.
0
 
sad_manAuthor Commented:
But my program is also an smtp client. I use the TIdSMTP component. Let's say I have an e-mail account whose stmp server is smtp.anymail.com. It does not require authentication. I can send e-mails to another@another.com by outlook, but i can not use my own program for that. what could be the difference between outlook and my program??
0
 
TheRealLokiSenior DeveloperCommented:
when you send emails with outlook to another@another.com the email first goes to smtp.anymail.com.
This will then forward it on.
If you are using indy, and sending to smtp.anymail.com also, but you are getting an email back with the 553 rejection notice, then it is certainly the X-library header.
If however, you are sending directly to another.com, then you are not doing what outlook does, and this could be either the header, or simply a case of you being untrusted

Which version of indy are you actually using?
if it is Indy 9, then you can manually remove/change the header causing the problem
0
 
sad_manAuthor Commented:
Well yes it is Indy 9. I tried to add the x-library header. but it did not work. I also realized that  when I send an e-mail from an e-mail account which requires authentication to my yahoo mail, the x-library header was sent by Indy smtp. I do not know how and what to do.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now