Article View: borland.public.cppbuilder.internet.socket
Article #5658Indy relaying and CC, BCC fields
From: Stefano Bonifazi
Date: Thu, 01 Jul 2004 21:11
Date: Thu, 01 Jul 2004 21:11
22 lines
2188 bytes
2188 bytes
Hello Everybody!:) I'm working on a SMTP Client that send emails without the use of a local SMTP server This works by extracting the domain part form the recipient email address, then doing an MX lookup against a DNS server for that domain part, and finally connecting directly to the SMTP server that the MX record point to, to deliver the message.(Taken from the Indy Demo SMTPRelay of Allen O'Neill) All works fine but when I insert email addresses in the CC or BCC fields cause the program raises the following exception: " EIdProtocolReplyError with message <username@otherdomain> recipient address rejected." I used otherdomain cause I assumed I'm sending an email (in TO: field) with domain other than the ones in CC or BCC fields! Shouldn't the SMTP server (given to me by the DNS server) forward the emails in CC and BCC fields to the proper servers?? Of course I can take only an email address from the CC or BCC field at a time then do an MX lookup against a DNS server for that domain part, and finally connect directly to the SMTP server that the MX record point to, to deliver the message, but I need the email to arrive with the correct header, that is with the correct email addresses in the CC or BCC fields!! Any workaround?? Thank You very much in advance!! Stefano B.
Technical Details
Message-ID:
<40e47e0f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,48782d607b4fb37f,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Stefano Bonifazi" <stefboombastic@libero.it> From: "Stefano Bonifazi" <stefboombastic@libero.it> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Indy relaying and CC, BCC fields Date: Thu, 1 Jul 2004 23:11:45 +0200 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.141.199.240 Message-ID: <40e47e0f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088716303 212.141.199.240 (1 Jul 2004 14:11:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail