OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: SMTP AUTH SASL2 Not replacing %u as expected

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Mon Aug 13 2007 - 13:14:53 CDT


On Monday 13 August 2007 14:38, Patrick Ben Koetter wrote:

> > And for good measure the line of the auth.log for the command "AUTH
> > PLAIN dGVzdC5jb20AdGVzdC5jb20AcGFzc3dk" (thats
> > "testexample.com\0testexample.com \0passwd")

If you are not sure about building those Hashes manually, please don't do it.
Use a real MUA to test.

You are using perl for building this hash. has a special meaning in
perl. "testexample.com" is replaced with the content of the
Variable "example" which is empty and results in: "test.com"

Decode the Hash:

$ echo "dGVzdC5jb20AdGVzdC5jb20AcGFzc3dk"|mimencode -u|hexdump -C
00000000 74 65 73 74 2e 63 6f 6d 00 74 65 73 74 2e 63 6f |test.com.test.co|
00000010 6d 00 70 61 73 73 77 64 |m.passwd|
00000018

Use a MUA.

--
        Andreas