Webmin proxying, how to get Client IP Address in e-mail alerts

Hi there,

Thanks for great software!

I’ve followed the documentation to close the local ports to the Internet and proxy the webmin GUI at a custom domain.

All working great, except e-mail alerts show 127.0.0.1 as the client’s IP address in alerts.

Is there option to fix this?

e.g.

This email was sent by Webmin in response to a user action.

Webmin module: virtual-server
Module title: Virtualmin Virtual Servers
Action performed at: <span data-filesize-bytes='1791208512'>10/06/2026 12:55 AM</span>
Performed on system: XXXXXXXX
Performed by user: YYYYYY
Client address: 127.0.0.1
Webmin script: backup_sched.cgi

Modified scheduled backup for all domains

… same on the Dashboard under Recent Logins: