1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

qmail Cannot auth with smtp

Discussion in 'Plesk for Linux - 8.x and Older' started by skrieg2, Mar 19, 2007.

  1. skrieg2

    skrieg2 Guest

    0
     
    Hello,

    I'm trying to auth with telnet on the smtp service but I can't. E-mail clients work just fine.

    Creating the base64 auth string:
    Code:
    $ perl -MMIME::Base64 -e 'print encode_base64("user@domain.com\0user@domain.com\0mypass");'
    ZmgvcmlhbmUuxx3JnAtZvbGxleQ==
    
    Telneting :
    Code:
    $ telnet myserver.com 25
    Trying my.ip.ad.dre.s....
    Connected to myserver.com
    Escape character is '^]'.
    220 hostname ESMTP
    ehlo mydomain
    250-hostname
    250-AUTH=LOGIN CRAM-MD5 PLAIN
    250-AUTH LOGIN CRAM-MD5 PLAIN
    250-STARTTLS
    250-PIPELINING
    250 8BITMIME
    auth plain ZmgvcmlhbmUuxx3JnAtZvbGxleQ==
    535 auth failure
    
    Server log says:
    Code:
    
    smtp_auth: smtp_auth: FAILED: mypass - no such user from [email]unknown@1-2-3-4.myadslip.com[/email]
    
    
    Some facts :
    * The same login/password works when poping with telnet and with any mail client (pop and smtp)
    * The server is a 8.1 Plesk installed on Debian Sarge.
    * The only modification made is the "-Rt0" in /etc/xinetd.d/smtp_psa

    Note that "mypass" is in the logs where there is usually a login... maybe my auth creation is wrong ? It's weird because the Plesk's knowledge base says to do so.

    many thanks for some help
    skrieg.
     
  2. dirty@

    dirty@ Guest

    0
     
    > encode_base64("user@domain.com\0user@domain.com\0mypass");

    why do you type login twice there? the correct view is

    encode_base64("\0mailname\0passwd")
     
  3. skrieg2

    skrieg2 Guest

    0
     
    Hi,

    I had to write
    encode_base64("\0user\@domain.tlc\0pass");

    Note the "\@".

    solved
    my mistake.
    thanks
     
Loading...