• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

qmail Cannot auth with smtp

S

skrieg2

Guest
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("[email protected]\[email protected]\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][email protected][/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.
 
Hi,

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

Note the "\@".

solved
my mistake.
thanks
 
Back
Top