doveadm proxy list has strange entries
Hi!
I am using dovecot from the latest docker image: Version 2:2.3.20-3+debian11
When getting the proxy list I get the following entries.
# doveadm -f flow proxy list username=user@example.com proto=imap src ip=10.254.0.13 dest ip=172.23.6.194 port=143 username=username proto=service src ip=src-ip dest ip=dest-ip port=dest-port username=user2@example.com proto=imap src ip=10.254.0.13 dest ip=172.23.6.194 port=143 username=username proto=service src ip=src-ip dest ip=dest-ip port=dest-port username=user3@example.com proto=imap src ip=10.254.0.13 dest ip=172.23.6.194 port=143 username=username proto=service src ip=src-ip dest ip=dest-ip port=dest-port ...
These correspond to the http API's response:
# curl -H "Authorization: X-Dovecot-API $(echo -n MY_API_KEY|base64 -w0)" http://localhost:8080/doveadm/v1 -H "Content-Type: application/json" -d '[["proxyList",{},"tag1"]]' | jq
[ [ "doveadmResponse", [ { "username": "user@example.com", "service": "imap", "src-ip": "10.254.0.13", "dest-ip": "172.23.6.194", "dest-port": "143" }, { "username": "username", "service": "service", "src-ip": "src-ip", "dest-ip": "dest-ip", "dest-port": "dest-port" }, ... ], "tag1" ] ]
This does not look right.
Cheers, Tobias Florek
On 30. Dec 2022, at 23.40, Tobias Florek dovecot@ibotty.net wrote:
When getting the proxy list I get the following entries.
# doveadm -f flow proxy list username=user@example.com proto=imap src ip=10.254.0.13 dest ip=172.23.6.194 port=143 username=username proto=service src ip=src-ip dest ip=dest-ip port=dest-port username=user2@example.com proto=imap src ip=10.254.0.13 dest ip=172.23.6.194 port=143 username=username proto=service src ip=src-ip dest ip=dest-ip port=dest-port username=user3@example.com proto=imap src ip=10.254.0.13 dest ip=172.23.6.194 port=143 username=username proto=service src ip=src-ip dest ip=dest-ip port=dest-port
The proxy list shows the header line from multiple login processes, which ends up looking like that. This is an old bug. It's finally fixed in the upcoming v2.4 (because it works completely differently).
participants (3)
-
Timo Sirainen
-
Tobias Florek
-
Tobias Florek