passwd file for quota
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-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 17 Mar 2015, Cliff Hayes wrote:
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.
See http://wiki2.dovecot.org/Authentication
Dovecot utilizes separate password and user databases and you can have multiple of each. That means, too, that the auth-*.ext files are more samples than fixed configuration options.
You probably have included auth-system.conf.ext by enabling:
10-auth.conf:#!include auth-system.conf.ext ^ no # here
in auth-system.conf.ext you'll find the passdb { driver = pam ..}, which you'll keep unchanged, and a userdb {} section. Comment the current userdb section, which most probably has driver = /etc/passwd, and add the proper
userdb { driver = passwd-file .... }
You could create your own conf file, too.
On 3/17/2015 2:20 AM, Steffen Kaiser wrote:
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
iQEVAwUBVQkYenz1H7kL/d9rAQKD3AgAtbyqpF4ZpCeCbF4Uw+enznWX3XacxOVQ 5/bbXIynZwRykSzc4aLs9dfmgTPZ1l8pUalamObqz8Epqn1nEuVRzb/ivEd+AJk8 dT1U+b3fxdIz0IlT4lIu4BxG7pqvbxBemiP4D3VenEreQSqSRTb/yIJu0eM34QtF GF3qZOpuKOEwF0fve6vYXtgx9CUw6Ifp+dUHawDPV6xAWzc5+cxIUtqGinIX0Z8O wuzunpqC0Gcc2k4pMTYFwuKs9mkkG5KSZKmvNUoE7AiD1yO8I0QKQFVynrcc8dmM ZOPnFMi2JH567KuIiMIcHspclyhFp7znQYsLAcPxgYIAP5auWfRv6Q== =YV0d -----END PGP SIGNATURE-----
Thanks! That Worked :)
On 3/18/2015 1:17 AM, Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 17 Mar 2015, Cliff Hayes wrote:
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.
See http://wiki2.dovecot.org/Authentication
Dovecot utilizes separate password and user databases and you can have multiple of each. That means, too, that the auth-*.ext files are more samples than fixed configuration options.
You probably have included auth-system.conf.ext by enabling:
10-auth.conf:#!include auth-system.conf.ext ^ no # here
in auth-system.conf.ext you'll find the passdb { driver = pam ..}, which you'll keep unchanged, and a userdb {} section. Comment the current userdb section, which most probably has driver = /etc/passwd, and add the proper
userdb { driver = passwd-file .... }
You could create your own conf file, too.
On 3/17/2015 2:20 AM, Steffen Kaiser wrote:
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
iQEVAwUBVQkYenz1H7kL/d9rAQKD3AgAtbyqpF4ZpCeCbF4Uw+enznWX3XacxOVQ 5/bbXIynZwRykSzc4aLs9dfmgTPZ1l8pUalamObqz8Epqn1nEuVRzb/ivEd+AJk8 dT1U+b3fxdIz0IlT4lIu4BxG7pqvbxBemiP4D3VenEreQSqSRTb/yIJu0eM34QtF GF3qZOpuKOEwF0fve6vYXtgx9CUw6Ifp+dUHawDPV6xAWzc5+cxIUtqGinIX0Z8O wuzunpqC0Gcc2k4pMTYFwuKs9mkkG5KSZKmvNUoE7AiD1yO8I0QKQFVynrcc8dmM ZOPnFMi2JH567KuIiMIcHspclyhFp7znQYsLAcPxgYIAP5auWfRv6Q== =YV0d -----END PGP SIGNATURE-----
participants (2)
-
Cliff Hayes
-
Steffen Kaiser