hi there, I have a LDAP dir with an attribute set to 0 or 1 and in my old setup (a courier server) I used this attribute to map it to an authoption called disableimap. This prevent users to access the mailbox with imap protocol. So the question is what should I set in dovecot to get the same behaviour? I looked at the docs but the part with the pass_ilter and service doesn't really fit. Some advice would be appreciated regards -- Markus Rosjat fon: +49 351 8107223 mail: rosjat at ghweb.de G+H Webservice GbR Gorzolla, Herrmann K?nigsbr?cker Str. 70, 01099 Dresden http://www.ghweb.de fon: +49 351 8107220 fax: +49 351 8107227 Bitte pr?fen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you print it, think about your responsibility and commitment to the ENVIRONMENT
On 08.09.2017 17:11, Markus Rosjat wrote:> I have a LDAP dir with an attribute set to 0 or 1 and in my old setup > (a courier server) I used this attribute to map it to an authoption > called disableimap. This prevent users to access the mailbox with imap > protocol. > > So the question is what should I set in dovecot to get the same > behaviour?You can configure 'pass_filter' to discount entries with your disable- flag. Affected users won't be able to authenticate with Dovecot, which I assume is what you are trying to achieve. -Ralph
no this is not the intented behaviour for thsi attribute. In general every user can use pop3 but only a few can use imap so what I want is: - permit pop3 by default - check if the attribute is 0 or 1 - depending on the result a user can login with imap protocol regards Markus Am 08.09.2017 um 17:59 schrieb Ralph Seichter:> On 08.09.2017 17:11, Markus Rosjat wrote: > >> I have a LDAP dir with an attribute set to 0 or 1 and in my old setup >> (a courier server) I used this attribute to map it to an authoption >> called disableimap. This prevent users to access the mailbox with imap >> protocol. >> >> So the question is what should I set in dovecot to get the same >> behaviour? > > You can configure 'pass_filter' to discount entries with your disable- > flag. Affected users won't be able to authenticate with Dovecot, which > I assume is what you are trying to achieve. > > -Ralph >-- Markus Rosjat fon: +49 351 8107223 mail: rosjat at ghweb.de G+H Webservice GbR Gorzolla, Herrmann K?nigsbr?cker Str. 70, 01099 Dresden http://www.ghweb.de fon: +49 351 8107220 fax: +49 351 8107227 Bitte pr?fen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you print it, think about your responsibility and commitment to the ENVIRONMENT