<div dir="ltr">Dear dovecot-list,<br><br>I have questions regarding setting up quota with postfix(Maildir format)+ dovect. My main point of the question is to know how the user password is used in quota in this case. Please see the below configuration info and my questions are in the bottom.  <br><br>Here are what have been done:<br><br><Postfix side configuration><br><br>/etc/postfix/<a href="http://main.cf">main.cf</a>:<br><br>-----<br>myhostname = <a href="http://mail.example.com">mail.example.com</a><br>mydomain = <a href="http://example.com">example.com</a><br>myorigin = $mydomain<br>inet_interfaces = all<br>mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain<br>home_mailbox = Maildir/<br><br>mailbox_command = /usr/libexec/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT" -d "$USER"   <--Add<br>-----<br><br><Dovecot side configuration><br>1.<br>/etc/dovecot/conf.d/10-auth.conf:<br><br>#!include auth-system.conf.ext<br>#!include auth-sql.conf.ext<br>#!include auth-ldap.conf.ext<br>!include auth-passwdfile.conf.ext       <---Only enabled<br>#!include auth-checkpassword.conf.ext<br>#!include auth-vpopmail.conf.ext<br>#!include auth-static.conf.ext<br><br>2.<br>/etc/dovecot/conf.d/10-master.conf<br><br>service auth {<br>snip/<br>unix_listener auth-userdb {<br>mode = 0666                              <---The permission for userdb 666 <br>#user = <br>#group =<br>snip/<br><br>3.<br>/etc/dovecot/conf.d/10-mail.conf:<br><br>mail_location = maildir:~/Maildir<br>snip/<br>mail_plugins = $mail_plugins quota      <---set the plugin<br>snip/<br><br>4.<br>/etc/dovecot/conf.d/15-lda.conf:<br><br>snip/<br>postmaster_address = <a href="mailto:root@example.com">root@example.com</a>   <---Add postmaster<br>snip/<br>protocol lda {<br>    mail_plugins = $mail_plugins        <--set the plugin<br>}<br><br>5.<br>/etc/dovecot/conf.d/20-imap.conf:<br><br>protocol imap {<br>    mail_plugins = $mail_plugins imap_quota   <--set the plugin<br>snip/<br><br>6.<br>/etc/dovecot/conf.d/20-pop3.conf:<br><br>snip/<br>protocol pop3 {<br>    mail_plugins = $mail_plugins quota   <--set the plugin<br>snip/<br><br>7.<br>/etc/dovecot/conf.d/90-quota.conf:<br><br>plugin {                                <--set global quota<br>    quota = maildir:<User quota><br>    quota_rule = *:storage=100M<br>    quota_rule2 = Trash:storage=+100M<br>}<br><br>8.<br>/etc/dovecot/conf.d/auth-passwdfile.conf.ext:<br><br>snip/<br>passdb {<br>    driver = passwd-file<br>    args = scheme=CRYPT username_format=%u /etc/dovecot/users    <--Path for passwdfile<br>}<br><br>userdb {<br>    driver = passwd-file<br>    args = username_format=%u /etc/dovecot/users<br>}<br>snip/<br><br>9.<br>/etc/dovecot/users:<br><br>test004:{SSHA256}hFxB8tbyZrCCcwZKDaQEiUfojbRovOq8ECU0syPHQTCY0233:18222:18222::/home/test004::userdb_quota_rule=*:storage=1M<br>test005:{SSHA256}hFxB8tbyZrCCcwZKDaQEiUfojbRovOq8ECU0syPHQTCY0233:18223:18223::/home/test005::userdb_quota_rule=*:storage=1M<br>test006:{SSHA256}hFxB8tbyZrCCcwZKDaQEiUfojbRovOq8ECU0syPHQTCY0233:18224:18224::/home/test006::userdb_quota_rule=*:storage=1M<br><br>Note:The hashed password is created running the blow command:<br><br># doveadm pw -s ssha256 <br><br>10.<br>/etc/dovecot/dovecot.conf:<br><br>snip/<br>protocols = imap pop3     <--Available protocols<br>snip/<br><br>11. <br># service postfix restart<br># service dovcot restart<br><br><br>Question:<br>1./etc/dovecot/users is supposed to be seen instead of /etc/passwd for authentification of imap and pops in receiving emails, isn't it?<br>2.If the answer for above question 1 is 'YES', then doesn't it require to get all password in /etc/passwd hashed for each user and place all of them into /etc/dovecot/users?<br>3.If the answer for above question 1 is 'NO', then what the hashed-password in /etc/dovcot/users such as {SSHA256}hFX... used for? <br><br>Excuse me if those are silly questions, but I am not a dovecot person and would very much appreciate it if anyone would kindly give me a hand on this.<br><br>Regards,<br>Masaharu Kawada<br clear="all"><br></div>