View Issue Details

IDProjectCategoryView StatusLast Update
0005654SOGoBackend Mailpublic2022-12-08 20:24
ReporterFlatduck Assigned Tosebastien  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.8.0 
Fixed in Version5.8.1 
Summary0005654: SOGo uses invalid EHLO with IPv6 address
Description

When running on a host with a IPv6 address and contacting to a IPv6 capable SMTP server, SOGo uses and invalid EHLO string.
In my case my mailserver runs exim4 4.94.2 and doesn't like SOGos EHLO at all, resulting in reject of the connection, see the following exim log excerpt:

SMTP<< EHLO 2001:9e8:33a2:1:809e:46ff:fe35:920c
SMTP>> 501 Syntactically invalid EHLO argument(s)
LOG: MAIN REJECT
rejected EHLO from [2001:9e8:33a2:1:809e:46ff:fe35:920c] I=[2a03:4000:29:68d:ff64:0:1:e10f]:465: syntactically invalid argument(s): 2001:9e8:33a2:1:809e:46ff:fe35:920c
SMTP<< QUIT

Indeed according to RFC 2821, chapter 4.1.3 the command has to be
EHLO [IPV6:2001:9e8:33a2:1:809e:46ff:fe35:920c]

Additionally SOGo also displays a missleading message to the user. It says
"cannot send message: (smtp) authentication failure"
which looks like wrong username/password. But code 501 means "Syntax error in parameters or arguments." So SOGo would do good to display a more exact message or even use what the server responds.

TagsSMTP

Activities

the_nic

the_nic

2022-12-05 13:47

reporter   ~0016458

I have opened a draft PR for this, its not tested yet: https://github.com/Alinto/sope/pull/62

sebastien

sebastien

2022-12-08 20:24

administrator   ~0016477

Thanks it has been merged

Issue History

Date Modified Username Field Change
2022-12-04 18:29 Flatduck New Issue
2022-12-04 18:29 Flatduck Tag Attached: SMTP
2022-12-05 13:47 the_nic Note Added: 0016458
2022-12-08 20:24 sebastien Note Added: 0016477
2022-12-08 20:24 sebastien Assigned To => sebastien
2022-12-08 20:24 sebastien Status new => resolved
2022-12-08 20:24 sebastien Resolution open => fixed
2022-12-08 20:24 sebastien Fixed in Version => 5.8.1