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