Author r_walter
Recipients r_walter
Date 2019-11-25.14:51:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I tried to send an email with jython 2.7.1 and jython 2.7.2b2 with the attached The attached image is 85 KiB in size.
The OS is openSUSE Leap 15.1. The java version is 1.8.0_222.

The program fails with:

Traceback (most recent call last):
  File "", line 40, in <module>
    s.sendmail(sender, receiver, msg.as_string())
  File "/usr/local/jython2.7.1/Lib/", line 745, in sendmail
  File "/usr/local/jython2.7.1/Lib/", line 469, in rset
    return self.docmd("rset")
  File "/usr/local/jython2.7.1/Lib/", line 393, in docmd
    self.putcmd(cmd, args)
  File "/usr/local/jython2.7.1/Lib/", line 341, in putcmd
  File "/usr/local/jython2.7.1/Lib/", line 331, in send
    raise SMTPServerDisconnected('Server not connected')
smtplib.SMTPServerDisconnected: Server not connected

The log of the postfix mailserver shows:

2019-11-25T15:15:58.762073+01:00 dios postfix/smtpd[14421]: connect from localhost[]
2019-11-25T15:15:59.066917+01:00 dios postfix/smtpd[14421]: 104A2A08C1: client=localhost[]
2019-11-25T15:15:59.126283+01:00 dios postfix/cleanup[14434]: 104A2A08C1: message-id=<>
2019-11-25T15:20:59.227259+01:00 dios postfix/smtpd[14421]: timeout after DATA (65507 bytes) from localhost[]
2019-11-25T15:20:59.227865+01:00 dios postfix/smtpd[14421]: disconnect from localhost[] ehlo=1 mail=1 rcpt=1 data=0/1 commands=3/4

But the same program works with python.
Date User Action Args
2019-11-25 14:51:35r_waltersetrecipients: + r_walter
2019-11-25 14:51:35r_waltersetmessageid: <>
2019-11-25 14:51:35r_walterlinkissue2840 messages
2019-11-25 14:51:35r_waltercreate