Re: Forcing imap authentication failure for certain IP addresses

2024-01-20 Thread Lars Schotte
Well, did you try to start up some isolated unconfigured instance of dovecot inside a docker container for example and then relay all connections from that specific address using iptables to that instance? That would of course generate an auth fail message each time, and also log it somewhere els

Re: It works! ... and one more question (Was: Forcing imap authentication failure for certain IP addresses)

2023-08-02 Thread Aki Tuomi via dovecot
ki.tuomi" <aki.tu...@open-xchange.com> Cc: dovecot@dovecot.org Subject: Re: Forcing imap authentication failure for certain IP addresses  

It works! ... and one more question (Was: Forcing imap authentication failure for certain IP addresses)

2023-08-02 Thread Hippo Man
>>> One way is to use >>> https://doc.dovecot.org/configuration_manual/authentication/auth_policy/ >>> >>> or you can use >>> >>> passdb { >>> driver = passwd-file >>> deny = yes >>> args = username_formar=%{rip} /et

Re: Forcing imap authentication failure for certain IP addresses

2023-08-01 Thread Hippo Man
> To: "aki.tuomi" > Cc: dovecot@dovecot.org > Subject: Re: Forcing imap authentication failure for certain IP addresses > > Thank you very much! > > In your example, what would be the contents of the > /etc/dovecot/deny.ip file? > > -- > hippo..

Re: Forcing imap authentication failure for certain IP addresses

2023-08-01 Thread aki.tuomi via dovecot
1.2.3.4: nopasswordI think. Didn't have a chance to test it.Aki Original message From: Hippo Man Date: 8/1/23 19:03 (GMT+02:00) To: "aki.tuomi" Cc: dovecot@dovecot.org Subject: Re: Forcing imap authentication failure for certain IP addresses Thank y

Re: Forcing imap authentication failure for certain IP addresses

2023-08-01 Thread Hippo Man
> From: Hippo Man > Date: 8/1/23 18:14 (GMT+02:00) > To: dovecot@dovecot.org > Subject: Forcing imap authentication failure for certain IP addresses > > I'm running dovecot 2.3.18 under Debian 11. > > I want to do something that's a bit unusual: when IMAP con

RE: Forcing imap authentication failure for certain IP addresses

2023-08-01 Thread aki.tuomi via dovecot
/lua_based_authentication/and write this in Lua.Aki Original message From: Hippo Man Date: 8/1/23 18:14 (GMT+02:00) To: dovecot@dovecot.org Subject: Forcing imap authentication failure for certain IP addresses I'm running dovecot 2.3.18 under Debian 11.I want to do something that's a b

Forcing imap authentication failure for certain IP addresses

2023-08-01 Thread Hippo Man
I'm running dovecot 2.3.18 under Debian 11. I want to do something that's a bit unusual: when IMAP connections are attempted from a few specific IP addresses, I want to force an IMAP authentication failure from those connections, no matter what user ID and password are specified. I know that I ca