How can I enable white list login ? #3847
-
|
I only want logins from a single IP address |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
This is probably something you can more easily control by using a reverse proxy like Traefik, or placing both systems within a VPN (perhaps Tailscale?). PostfixFor Postfix, you'll need to edit the Restricting client by IPThere should be a line like
For reference, these are what DMS has configured by default: Restrict by IP but also continue to require authenticationThis below variation appears to work without needing The rule was changed with a Compatibility with
|
Beta Was this translation helpful? Give feedback.
-
|
@polarathene there my compose.yaml and I did check it many times, so I shouldn't have overlooked anything, right? |
Beta Was this translation helpful? Give feedback.
This is probably something you can more easily control by using a reverse proxy like Traefik, or placing both systems within a VPN (perhaps Tailscale?).
Postfix
For Postfix, you'll need to edit the
/etc/postfix/master.cfconfig for thesubmission(port 587) andsubmissions(port 465) entries.Restricting client by IP
There should be a line like
-o smtpd_client_restrictions, you'll need to modify it to instead look like this:{ }wrapping around most of the line there permits spaces, which AFAIK is required forcheck_client_accessto provide the CIDR table.OK