/etc/cfengine/debian-edu/cf.imap is in debian-edu-config 1.702.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | editfiles:
debian.server.installation::
{ /etc/dovecot/dovecot.conf
BeginGroupIfNoSuchLine 'protocols = imap imaps'
LocateLineMatching 'protocols = none'
ReplaceLineWith 'protocols = imap imaps'
EndGroup
BeginGroupIfNoSuchLine 'disable_plaintext_auth = yes'
LocateLineMatching '#disable_plaintext_auth = yes'
InsertLine 'disable_plaintext_auth = yes'
EndGroup
BeginGroupIfNoSuchLine 'mail_location = maildir:/var/mail/%u'
LocateLineMatching '#mail_location =[[:space:]]*'
InsertLine 'mail_location = maildir:/var/mail/%u'
EndGroup
BeginGroupIfNoSuchLine 'auth_krb5_keytab = /etc/krb5.keytab.imap'
LocateLineMatching '#auth_krb5_keytab =[[:space:]]*'
InsertLine 'auth_krb5_keytab = /etc/krb5.keytab.imap'
EndGroup
BeginGroupIfNoSuchLine ' mechanisms = gssapi'
LocateLineMatching ' mechanisms = plain[[:space:]]*'
ReplaceLineWith ' mechanisms = gssapi'
EndGroup
BeginGroupIfNoSuchLine ' userdb ldap {'
LocateLineMatching ' #userdb ldap \{'
IncrementPointer "3"
InsertLine ' userdb ldap {'
InsertLine ' args = /etc/dovecot/dovecot-ldap.conf'
InsertLine ' }'
EndGroup
}
{ /etc/dovecot/dovecot-ldap.conf
BeginGroupIfNoSuchLine 'hosts = ldap'
LocateLineMatching '#hosts =.*'
InsertLine 'hosts = ldap'
EndGroup
BeginGroupIfNoSuchLine 'base = dc=skole,dc=skolelinux,dc=no'
LocateLineMatching 'base =.*'
ReplaceLineWith 'base = dc=skole,dc=skolelinux,dc=no'
EndGroup
BeginGroupIfNoSuchLine 'user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid'
LocateLineMatching '#user_attrs =.*'
InsertLine 'user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid'
EndGroup
BeginGroupIfNoSuchLine 'user_filter = (&(objectClass=posixAccount)(uid=%u))'
LocateLineMatching '#user_filter =.*'
InsertLine 'user_filter = (&(objectClass=posixAccount)(uid=%u))'
EndGroup
}
shellcommands:
debian.server.installation::
# pretend an IMAP authentication success in order to suppress dovecot's initial
# warning message: ,,This message goes away after the first successful login.''
"/usr/bin/touch /var/lib/dovecot/auth-success"
|