[Bug 405733] [NEW] sendEmail fails when using SMTP PLAIN Authentication
Dave
dave at fsinfo.cs.uni-dortmund.de
Tue Jul 28 10:38:55 UTC 2009
Public bug reported:
Binary package hint: sendemail
Expected: sendEmail sends the mail out using the specified server and
credentials for SMTP AUTH
Reality: The server responds with a syntax error when PLAIN
authentication is used -- which is the default if the server supports
it. If the server response shows that the server does not support PLAIN
but LOGIN, everything works fine.
Speculation: sendEmail does not generate the AUTH PLAIN string correctly
before sending it to the server (line 1917 in /usr/bin/sendEmail). Or
the 1&1 mail server is buggy.
Workaround: Make LOGIN the default (in /usr/bin/sendEmail: exchange
lines 1914-1919 with lines 1921-1928, but preserve "if" and "elsif")
Note: TLS isn't used in this example (no SSL::Leay installed), but a test showed no difference with or without TLS.
Note: The AUTH PLAIN string has been altered (well, it contains username&password as base64), so I replaced it with a random string, but preserved the equal signs at the end. Also, all credentials and mail adresses have been altered.
Ubuntu release:
dave at truhe:~$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04
Package Version:
dave at truhe:~$ apt-cache policy sendemail
sendemail:
Installiert: 1.55-2
Kandidat: 1.55-2
Versions-Tabelle:
*** 1.55-2 0
500 http://de.archive.ubuntu.com jaunty/universe Packages
100 /var/lib/dpkg/status
Command output:
dave at truhe:~$ sendEmail -v -v -f from at address.com -t to at address.com -u "Test Mail" -o username="*********" -o password="*******" -s "smtp.1und1.de" -o message-file=any_text.file
Jul 28 12:12:39 truhe sendEmail[14848]: DEBUG => Connecting to smtp.1und1.de:25
Jul 28 12:12:39 truhe sendEmail[14848]: DEBUG => My IP address is: 192.168.1.2
Jul 28 12:12:39 truhe sendEmail[14848]: DEBUG => evalSMTPresponse() - Found SMTP success code: 220
Jul 28 12:12:39 truhe sendEmail[14848]: SUCCESS => Received: 220 smtp.1und1.de (mreu1) Welcome to Nemesis ESMTP server
Jul 28 12:12:39 truhe sendEmail[14848]: INFO => Sending: EHLO truhe
Jul 28 12:12:40 truhe sendEmail[14848]: DEBUG => evalSMTPresponse() - Found SMTP success code: 250
Jul 28 12:12:40 truhe sendEmail[14848]: SUCCESS => Received: 250-smtp.1und1.de, 250-STARTTLS, 250-AUTH LOGIN PLAIN, 250-AUTH=LOGIN PLAIN, 250-PIPELINING, 250-SIZE 100000000, 250 HELP
Jul 28 12:12:40 truhe sendEmail[14848]: DEBUG => The remote SMTP server supports TLS :)
Jul 28 12:12:40 truhe sendEmail[14848]: DEBUG => SMTP-AUTH: Using PLAIN authentication method
Jul 28 12:12:40 truhe sendEmail[14848]: INFO => Sending: AUTH PLAIN HcJsiJkGdHjZhMJJjJIUGfHjFhvNmJnGtHfaaHuIlMjKgE3DD==
Jul 28 12:12:40 truhe sendEmail[14848]: DEBUG => evalSMTPresponse() - Found SMTP error code: 500
Jul 28 12:12:40 truhe sendEmail[14848]: ERROR => Received: 500 Syntax error - invalid character
** Affects: sendemail (Ubuntu)
Importance: Undecided
Status: New
--
sendEmail fails when using SMTP PLAIN Authentication
https://bugs.launchpad.net/bugs/405733
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list