#342 webmail smtp with sasl connection

current_version
open
nobody
Webmail (62)
5
2007-08-16
2007-08-16
LiquidObsidian
No

my local smtp server requires sasl md5 digest auth and i found nowhere in webmail2 where to enable it ...
then i dug into the sources , changed the embedded pear packages into sendmail_post.php (btw why embed them into webmail ? ) to my system ones (btw2 solved a connection problem this way in wich the editing frame of WbMl2 stayed mustard yellow and empty...) and now :

Erreur durant l'envoi. authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.0 Error: authentication failed: another step is needed in authentication)] ... tadam ... SASL

then i added :

require_once("/usr/share/php/Auth/SASL.php");
require_once("/usr/share/php/Auth/SASL/DigestMD5.php");
require_once("/usr/share/php/Net/SMTP.php");

top of the sendmail_post.php (
between
include(INCLUDEPATH . "container.inc.php")
and my changed
require_once("/usr/share/php/Mail.php");
)

but i can't find a way to activate SASL here...

thnks a lot guys

Discussion