9 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Invalid RCPT TO r...
FromSent OnAttachments
Martin Schuster (IFKL IT OS DSM CD)Jan 16, 2008 4:30 am 
Marcus IlgnerJan 16, 2008 7:19 am 
Martin Schuster (IFKL IT OS DSM CD)Jan 16, 2008 7:29 am 
Jeff JansenJan 16, 2008 1:06 pm 
Martin Schuster (IFKL IT OS DSM CD)Jan 16, 2008 11:10 pm 
Bernd WurstJan 16, 2008 11:22 pm 
Martin Schuster (IFKL IT OS DSM CD)Jan 17, 2008 1:44 am 
Jeff JansenJan 17, 2008 7:54 pm 
Martin Schuster (IFKL IT OS DSM CD)Jan 23, 2008 3:49 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Invalid RCPT TO results in 513 Syntax errorActions...
From:Martin Schuster (IFKL IT OS DSM CD) (Mart@infineon.com)
Date:Jan 17, 2008 1:44:44 am
List:net.sourceforge.lists.courier-users

Jeff Jansen wrote:

"Martin Schuster (IFKL IT OS DSM CD)" <Mart@infineon.com> wrote on 2008-Jan-16:

So: Any hints how to do this? I wasn't able to find any config-option for this, and I don't exactly feel like hacking around in the source...

This check is hard coded into the source code. So for SMTP, you must edit the code and recompile.

This is harder than I initially hoped. I've decided to do my rewriting at the very beginning of rwrecip in courier/module.esmtp/esmtp.c, right before the first rfc822check hits.

Now I'm stuck though, partly because my C isn't that great anymore, partly because I don't know how I'm supposed to do things like alloc memory in courier.

Currently my additional code looks like this

for (p=0, s=info->ptr; s; s=s->next) if (s->token == '@') p=s; if (p==0) { // no @ in address, we need to rewrite // let's find the last token for (s=info->ptr; s->next; s=s->next);

and now I need to alloc a new rfc822token, alloc a string with my defaultdomain, and fill the rfc822token with the right info. I guess. :)

Any helpful hints? ("ask on courier-devel" is a valid hint :)

tia,

------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________ courier-users mailing list cour@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- Martin Schuster Infineon Technologies IT-Services GmbH Tel: +43 5 1777 3517 <Mart@infineon.com>

Lakeside B05 9020 Klagenfurt, Austria

FB: LG Klagenfurt, FN 246787y

VISIT US AT http://www.infineon.com/austria