As the title suggests, I am trying to ban the actual ip, when I log into my webmail
the logs show the ip of cloudflare and banning cloudflares ips would be really bad
so instead it would make more sense to use the real ip from the http header [cf-connecting-ip].
This would only work for the webmail because of the http header, but how would I implement this…?

I think (bit I am unsure), it is also important to mention, that I am using roundcube

  • pkernstock

    • Forum Staff
    • volunteer
    Moolevel 56

Are you also using SMTP/IMAP behind Cloudflare, or is this some kind of custom setup?

But you could modify the nginx configuration accordingly and set set_real_ip_from config parameters.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

SMTP and IMAP cannot be routed through cloudflare proxy, because it is only available with the
Pro Plan (?, but not the free one).

But no, this isn’t a custom setup, I have installed mailcow the standard way

  • pkernstock

    • Forum Staff
    • volunteer
    Moolevel 56

But if you see Cloudflare’s IPs in the logs, you have Cloudflare and its proxy enabled in front of mailcow? I’m confused.

No one is typing