-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Further consultation with users off the lists indicates that no patch
for this valid rfc822 address exists.

I've spent a few frustrating hours trying to figure out how to implement
this and could do with a few pointers.

I believe that the strategy to implement this should be to simply
replace the [x.x.x.x] with the fully qualified localhost domain, the
dot-quad having served it's purpose at this point given the MTA's
connected to our mail server.

I think the code I must change resides in rfc822/rfc822.c's tokenize
function, however, I don't fully understand the rfc822token struct (nor
the pointer arithmetic...).

If I truncate the address to only that on the lhs of the @ symbol using
the following condition in the case stmt at line 135:

                  if ( *p == '@' && p[1] == '[') {
                    return;
                    }

everything works as I'd expect in the courierlocal delivery mode,
however, in courieresmtp delivery mode, no domain is present, and there
is no subsequent logic to append the local domain :(

Also, within the rfc822.c translation unit, there's no moduledel struct
available from which to read the localhost, and I'm concerned I'll have
to read this from /usr/lib/courier/etc

Does anyone have any thoughts about elegantly implementing this?

Cheers, Alan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Comment:

iD8DBQE/vrsSCfroLk4EZpkRAlsqAJ4hGV2YhzxsF6PUxoYnu93e4+knrwCgsiU5
hCbnyyJaKugDNN/IfdhXG6g=
=2aV+
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to