I need to implement quota. I read as much as I could including http://wiki2.dovecot.org/HowTo/SimpleVirtualInstall But my current /etc/passwd file does not have the password in it as shown in dovecot docs ... there is an x where the password should be. I created a program that creates a passwd file in the proper format with the proper extra quota fields for all users (except it has an x where the password should be). I plan to store it in /etc/dovecot How do I get dovecot to stop looking at /etc/passwd and start looking at /etc/dovecot/passwd? And hopefully that will not affect how it gets the password (pam) because when users change their password from webmail of course dovecot will need to be looking in the same place. # dovecot -n output # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-431.29.2.el6.x86_64 x86_64 Scientific Linux release 6.5 (Carbon) auth_failure_delay = 5 secs auth_username_format = %Ln auth_verbose_passwords = plain first_valid_uid = 9 mail_access_groups = mail mail_location = maildir:~/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_after = /dovecotSieveAfter/ sieve_dir = ~/sieve } protocols = imap lmtp sieve service managesieve-login { inet_listener sieve { port = 4190 } } ssl_ca = </etc/pki/dovecot/certs/intermediate20150202.crt ssl_cert = </etc/pki/dovecot/certs/avalon20150202.crt ssl_key = </etc/pki/dovecot/private/avalon20150129.key ssl_verify_client_cert = yes userdb { driver = passwd } protocol lmtp { log_path = /var/log/dovecot-lmtp.log mail_plugins = " sieve" } protocol lda { log_path = /var/log/dovecot-lda.log mail_plugins = " sieve" }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 16 Mar 2015, Cliff Hayes wrote:> password should be). I plan to store it in /etc/dovecot > How do I get dovecot to stop looking at /etc/passwd and start looking at > /etc/dovecot/passwd?Do you mean: http://wiki2.dovecot.org/AuthDatabase/PasswdFile - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVQfVznz1H7kL/d9rAQJfawf9FgQwwMDCAtbKzMG9vCD5hzSJPUB941h2 F+xLzeja3SyShrxstw15lwOeb+fJWQYzpjJlPVdu+UpO9wKascsli5aLBO1tBfHD tMM1wsJMbB8RCesjCrHcJ+/kVv3Rou1nGHo5L4FoAXmA13G9hWj3auiWBgrR0lzZ Z2YY1jYTcHfXivZ9lj4zWdmvvSBKIVguHXBwQdngfHQzvr4WCmZpk+LkHNOWbXr9 klXFEoEZ6cntKT/G7R8vcgb+mIOT8hu9EDHD0aoTk9exdVeB8ic8u+kaGkW3TBlR bLXsUxgpTBcHo27RjJOQGpY1S+/DbP8nmfIdt5VVEXcp+13+6CR2gQ==Wi+d -----END PGP SIGNATURE-----
Yes and No. It's confusing to me which is why I ask. Per my initial email my password source is PAM. It's the userdb I'm concerned about ... which dovecot is using /etc/passwd. So dovecot is getting user information from passwd file; password information from PAM. I need to add extra fields for qouta but can't add them to /etc/passwd so I have to create a passwd with the extra fields for dovecot to use. How do I get dovecot to look at the new file for user info? I looked at your link and then did a grep on passdb which appears in ... auth-checkpassword.conf.ext auth-deny.conf.ext auth-ldap.conf.ext auth-master.conf.ext auth-passwdfile.conf.ext auth-sql.conf.ext:passdb auth-static.conf.ext auth-system.conf.ext auth-vpopmail.conf.ext: I'm guessing I need to look in auth-system.conf.ext since I use system users. In there it says ... passdb { driver = pam ... so I don't think I should change that. On 3/17/2015 2:20 AM, Steffen Kaiser wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, 16 Mar 2015, Cliff Hayes wrote: > >> password should be). I plan to store it in /etc/dovecot >> How do I get dovecot to stop looking at /etc/passwd and start looking >> at /etc/dovecot/passwd? > > Do you mean: http://wiki2.dovecot.org/AuthDatabase/PasswdFile > > - -- Steffen Kaiser > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQEVAwUBVQfVznz1H7kL/d9rAQJfawf9FgQwwMDCAtbKzMG9vCD5hzSJPUB941h2 > F+xLzeja3SyShrxstw15lwOeb+fJWQYzpjJlPVdu+UpO9wKascsli5aLBO1tBfHD > tMM1wsJMbB8RCesjCrHcJ+/kVv3Rou1nGHo5L4FoAXmA13G9hWj3auiWBgrR0lzZ > Z2YY1jYTcHfXivZ9lj4zWdmvvSBKIVguHXBwQdngfHQzvr4WCmZpk+LkHNOWbXr9 > klXFEoEZ6cntKT/G7R8vcgb+mIOT8hu9EDHD0aoTk9exdVeB8ic8u+kaGkW3TBlR > bLXsUxgpTBcHo27RjJOQGpY1S+/DbP8nmfIdt5VVEXcp+13+6CR2gQ=> =Wi+d > -----END PGP SIGNATURE----- >