See IP address of connected clients

I’m checking /var/log/mail.log

All incoming connections are logged with rip=127.0.0.1

Where can I see which external IP address each client connection is coming from?

Apologies if this has been answered elsewhere. I have not been able to find it.

Thanks

Do you mean all incoming connections to IMAP from clients? If so, I’m seeing the same on 0.48

A quick look at the Dovecot configuration script suggests it should be logging correctly
log_path=/var/log/mail.log

Not sure what is going on here and none of the other logs seem to contain the wanted information.

Maybe something can be deduced from the architecture diagram.

For your info, in /var/log/mail.log, I see lines like:
Oct 24 16:09:50 imap-login: Info: Login: user=<xx@xxx.xxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, ...
for connections made from the webmail processes (which is local on the box, so that makes sense).

And lines like:
Oct 24 16:10:05 imap-login: Info: Login: user=<xx@xxx.xxx>, method=PLAIN, rip=123.123.123.123, lip=234.234.234.234, ...
for connections from remote devices using IMAP.

Mail.log is the log of what the mailserver is doing. The webmail interface is completely separate - it logs in /var/log/roundcubemail.