Doesn't send fully qualified host name with EHLO
I keep receiving this error when sending email from Evolution:
The reported error was "RCPT TO <debarshi.ray@mbox.im> failed: <kolache>: Helo command rejected: need fully-qualified hostname"
I tried setting up the email account both directly in Evolution and in GNOME Online Accounts, and the results were the same. The mail server needs authentication for both SMTP and IMAP, and uses TLS for both on dedicated ports.
I have Evolution 3.34.4 (evolution-3.34.4-1.fc31.x86_64
to be exact) on a stock Fedora 31 Silverblue system.
Running CAMEL_DEBUG=smtp evolution
gives me:
[SMTP] Connecting to server mail.lostca.se:465 from account a0618d6f49a57ea9608172c06e091596e8546ff9
[SMTP] received: 220 aloka.lostca.se ESMTP Postfix
[SMTP] sending: EHLO kolache
[SMTP] received: 250-aloka.lostca.se
[SMTP] received: 250-PIPELINING
[SMTP] received: 250-SIZE 26214400
[SMTP] received: 250-VRFY
[SMTP] received: 250-ETRN
[SMTP] received: 250-AUTH PLAIN
[SMTP] received: 250-ENHANCEDSTATUSCODES
[SMTP] received: 250-8BITMIME
[SMTP] received: 250-DSN
[SMTP] received: 250 CHUNKING
[SMTP] sending: AUTH PLAIN xxxxxxxx
[SMTP] received: 235 2.7.0 Authentication successful
[SMTP] Sending with server mail.lostca.se:465 from account a0618d6f49a57ea9608172c06e091596e8546ff9
[SMTP] sending: RSET
[SMTP] received: 250 2.0.0 Ok
[SMTP] sending: MAIL FROM:<rishi.is@lostca.se>
[SMTP] received: 250 2.1.0 Ok
[SMTP] sending: RCPT TO:<debarshi.ray@mbox.im>
[SMTP] received: 504 5.5.2 <kolache>: Helo command rejected: need fully-qualified hostname
If I manually edit my /etc/hostname
to append a dummy domain name to my host name, then things start to work.
$ cat /etc/hostname
kolache.rishi
Evolution then includes the fake domain name in the EHLO command:
[SMTP] Connecting to server mail.lostca.se:465 from account a0618d6f49a57ea9608172c06e091596e8546ff9
[SMTP] received: 220 aloka.lostca.se ESMTP Postfix
[SMTP] sending: EHLO kolache.rishi
[SMTP] received: 250-aloka.lostca.se
[SMTP] received: 250-PIPELINING
[SMTP] received: 250-SIZE 26214400
[SMTP] received: 250-VRFY
[SMTP] received: 250-ETRN
[SMTP] received: 250-AUTH PLAIN
[SMTP] received: 250-ENHANCEDSTATUSCODES
[SMTP] received: 250-8BITMIME
[SMTP] received: 250-DSN
[SMTP] received: 250 CHUNKING
[SMTP] sending: AUTH PLAIN xxxxxxxx
[SMTP] received: 235 2.7.0 Authentication successful
[SMTP] Sending with server mail.lostca.se:465 from account a0618d6f49a57ea9608172c06e091596e8546ff9
[SMTP] sending: MAIL FROM:<rishi.is@lostca.se>
[SMTP] received: 250 2.1.0 Ok
[SMTP] sending: RCPT TO:<debarshi.ray@mbox.im>
[SMTP] received: 250 2.1.5 Ok
[SMTP] sending: DATA
[SMTP] received: 354 End data with <CR><LF>.<CR><LF>
...
I understand that this is partly caused by my mail server insisting on a fully qualified host name with EHLO. However, I am able to use this account for sending email from my iPhone running iOS 13.5.1.