MailFrom with authentication problem (451 @ outside address)

Giganews Newsgroups
Subject: MailFrom with authentication problem (451 @ outside address)
Posted by:  Tim Parker-Nance (tim_…@hotmail.com)
Date: Mon, 4 Dec 2006

We are using the latest snapshot from Indy 10 on Delphi 2005. We have had to
enable authentication, even though we just pass everyone through, because of
an anomoly with Pocket Outlook on iMates. However servers that send through
authentication info on the the mail from: cause Indy to fall over with an
451 @ outside address error. Here is a trace:

196.15.176.129:52722 Stat Connected.
196.15.176.129:52722 Sent 2006/12/04 09:35:19 AM: 220 mailtest1.isat.co.za
Dakota ESMTP 1.00 Mon, 4 Dec 2006 09:35:19 +0200 SAT<EOL>
196.15.176.129:52722 Recv 2006/12/04 09:35:19 AM: EHLO mail.isoft.co.za<EOL>
196.15.176.129:52722 Sent 2006/12/04 09:35:19 AM: 250-Hello
mail.isoft.co.za<EOL>250-AUTH LOGIN<EOL>250-ENHANCEDSTATUSCODES<EOL>250
SIZE<EOL>
196.15.176.129:52722 Recv 2006/12/04 09:35:19 AM: MAIL
From:<mari…@gmint.co.za> SIZE=4770 AUTH=mari…@gmint.co.za<EOL>
196.15.176.129:52722 Sent 2006/12/04 09:35:19 AM: 451 @ Outside address<EOL>
196.15.176.129:52722 Recv 2006/12/04 09:35:19 AM: QUIT<EOL>
196.15.176.129:52722 Sent 2006/12/04 09:35:19 AM: 221 Signing Off<EOL>
196.15.176.129:52722 Stat Disconnected.
0.0.0.0:0 Stat Disconnected.

The line that causes the problem in TidSMTPServer is in CommandMail:
        EMailAddress.Text := Sys.Trim(Copy(ASender.UnparsedParams, 6,
MaxInt));

Is there any way to get Indy to ignore the parameters? Or is there any way
around this problem?

Thanks

Tim

Replies