Just a small command to grab a Dovecot configuration :
perl -ne '/^\s*#/ || print' /etc/dovecot/dovecot.conf | egrep '([:alphanum:]|})'
which results in the display of something like :
protocols = imap imaps
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
ssl_cert_file = /etc/ssl/certs/imap.pem
ssl_key_file = /etc/ssl/private/imap.key
mail_location = maildir:%h/Maildir:INDEX=%h/indexes
mail_privileged_group = mail
mmap_disable = yes
dotlock_use_excl = no
fsync_disable = no
mail_nfs_storage = yes
mail_nfs_index = yes
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth default {
mechanisms = plain
passdb pam {
args = dovecot
}
userdb passwd {
}
user = root
}
}
plugin {
}
Note that the output can’t be used directly because of a trailing ‘}’ (right above
plugin). Except for that, it’s a fully functionnal config.