Thanks it works great now.
It did however have 4 characters at the end which was not the same as James
SHA-1, thus i cut it out and now authentication works through the mail
server.
substr(base64_encode(sha1($password, true)),0,-4)
Regards,
Jaco
--
View this message in context:
http://www.na
IIRC James Server does a base64 encoding of the *binary* hash returned
from the SHA1 algorythm described by the RFC you linked.
php sha1() function does instead an HEX encoding of the hash.
So, either you have php 5 and you use the raw_output parameter in your
sha1 call, or you hex decode the str