View Issue Details

IDProjectCategoryView StatusLast Update
0002979SOGoBackend Mailpublic2021-04-05 16:48
Reporterandrew Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Versionnightly v2 
Summary0002979: IMAP ID x-originating-ip does not work
Description

In issue http://sogo.nu/bugs/view.php?id=2366, webmail pass the x-originating-ip using the IMAP ID extension?

But it does not work. Because dovecot must recieve the parameter before login command.

TagsNo tags attached.

Activities

arodier74

arodier74

2019-04-14 04:33

reporter   ~0013546

Same for me, it does not seem to work

arodier74

arodier74

2019-04-14 06:38

reporter   ~0013547

Last edited: 2021-04-05 16:48

I used ssldump to check the differences in the IMAP connection between SOGo and RoundCube, and I found the error.

I copy here the log details as citation to keep the layout.

The SSL dump with roundcube:

> root@portal andre/mails/security# ssldump -i lo -d -k /etc/letsencrypt/live/imap.homebox.space/privkey.pem port 143
> New TCP connection 0000001: localhost(54208) <-> localhost(143)
> 0.0086 (0.0086)  S>C
> ---------------------------------------------------------------
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> ---------------------------------------------------------------
> 
> 0.0087 (0.0000)  C>S
> ---------------------------------------------------------------
> QP0001 ID ("x-originating-ip" "185.220.101.30")
> ---------------------------------------------------------------

And here, with SOGo:

> root@portal andre/mails/security# ssldump -i lo -d -k /etc/letsencrypt/live/imap.homebox.space/privkey.pem port 143
> ===========================================================
> New TCP connection 0000001: localhost(54340) <-> localhost(143)
> 0.0119 (0.0119)  S>C
> ---------------------------------------------------------------
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> ---------------------------------------------------------------
> 
> 0.0120 (0.0001)  C>S
> ---------------------------------------------------------------
> A0001 LOGIN "andre" "**********"
> ---------------------------------------------------------------
> 
> 0.1155 (0.1034)  S>C
> ---------------------------------------------------------------
> A0001 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SEARCH=FUZZY NOTIFY SPECIAL-USE QUOTA] Logged in
> ---------------------------------------------------------------
> 
> 0.1160 (0.0005)  C>S
> ---------------------------------------------------------------
> 3 capability
> ---------------------------------------------------------------
> 
> 0.1167 (0.0006)  S>C
> ---------------------------------------------------------------
> * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SEARCH=FUZZY NOTIFY SPECIAL-USE QUOTA
> 3 OK Capability completed (0.000 + 0.000 secs).
> ---------------------------------------------------------------
> 
> 0.1599 (0.0431)  C>S
> ---------------------------------------------------------------
> 4 ID ("x-originating-ip" "185.220.101.30")
> ---------------------------------------------------------------
arodier74

arodier74

2019-04-14 07:01

reporter   ~0013548

The error is in the file SoObjects/Mailer/SOGoMailBaseObject.m

Issue History

Date Modified Username Field Change
2014-11-06 08:38 andrew New Issue
2019-04-14 04:33 arodier74 Note Added: 0013546
2019-04-14 06:38 arodier74 Note Added: 0013547
2019-04-14 07:01 arodier74 Note Added: 0013548
2021-04-05 16:48 francis Note Edited: 0013547