Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : TIsSMTPServer and using rNoForward on the OnRcptto event

www.cryer.info
Managed Newsgroup Archive

TIsSMTPServer and using rNoForward on the OnRcptto event

Subject:TIsSMTPServer and using rNoForward on the OnRcptto event
Posted by:"Ronald Hoek" (none)
Date:Wed, 17 Oct 2007 11:20:47

Hello,

I'm using Indy 10 (Delphi 2007) and want to use the TIdSMTPServer component.
I found a nice example and beginning to understand how this component works.

I'm trying to make a small "Relay" server, because for some reason, the
fallback server (LINUX) does not deliver mail to our Win2003/Exhange mail
server.

To do this I'd like to receive the mail using this program, do a fast check
on the recepientlist (see OnRcptTo event) and then foreward the message to
our internal server (or deny it - rRelayDenied).

But when I try to test this with Outlook Expresss, the message isn't
delivered to my mailserver, when one of the addresses is not al local
(relayable) address. So I tried the "rNoForward" option for this event, but
then an error occures,because in the Indy source-code there is a falty line.
(IdSMTPServer, line 605).

RSSMTPUserNotLocal requires two %s parameters, but only one is supplied!

--
Regards,

Ronald Hoek

Applicationdevelopper
ComponentAgro B.V.

Replies:

www.cryer.info
Managed Newsgroup Archive