Article delegate-en/2154 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] problems with smtp-auth
06 Mar 2003 11:29:51 GMT Martin Vetter <pnieabdyi-cpuahtnt46vr.ml@ml.delegate.org>


hi,

i try to make delegated 8.3.4 work as a proxy,
adding smtp-authorization between an already running
sendmail 8.9.3 as client, which does not know about smtp-auth, and a
sendmail 8.12.6 as server, requiring smtp-authorization
for access to relay services.

i thought something like this should do the trick:

   delegated -f -vv -Pport \
             SERVER=smtp://server.domain.com/ \
             MYAUTH=login:password

when i "telnet localhost port", i can see
delegated immediately tries to authenticate via
"AUTH PLAIN ..." (good), but with no success (bad).

it seems to me that delegated sends (base64 encoded)
'\0login\0password\0' instead of '\0login\0password',
which i would think would be more correct ...

sadly, the target sendmail 8.12.6 mailserver seems to choke
on the trailing '\0', answering "535 5.7.0 authentication failed" ...

am i mistaken?
or am i missing something?
or can i force delegated to use
"AUTH LOGIN ..." instead of "AUTH PLAIN ..."?

any hint would be greatly appreciated ;^)
regards,

martin vetter



ps:

in delegate8.3.4/src/smtp.c, shouldn't this:

   if( isinList(val,"login") )
     SMTP_doauth |= A_PLAIN;
   if( isinList(val,"plain") )
     SMTP_doauth |= A_LOGIN;

perhaps more look like this:

   if( isinList(val,"login") )
     SMTP_doauth |= A_LOGIN;
   if( isinList(val,"plain") )
     SMTP_doauth |= A_PLAIN;


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V