Changes

Dovecot and Postfix Hybrid Authentication Example

1,342 bytes added, 01:10, 14 February 2014
/* configure postfix */
The following lines were added (+) and removed (-):
== edit the postfix main.cf ==Here are (some) important lines you will need in your main.cf alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ virtual_alias_maps = hash:/etc/postfix/virtual virtual_mailbox_domains = hash:/etc/postfix/domains virtual_mailbox_base = /var/spool/vmail virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_minimum_uid = 4000 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000== edit the dovecot.conf ==Here is a sample of (minimum) lines from dovecot.conf protocols = imap pop3 lmtp listen = * login_greeting = Hello visitor! !include conf.d/*.conf== edit conf.d/10-auth.conf ==The 10-auth.conf is located in the conf.d/ folder.  Here is a sample of (minimum) lines from 10-auth.conf disable_plaintext_auth = no auth_failure_delay = 4 secs auth_mechanisms = plain login !include auth-system.conf.ext !include auth-checkpassword.conf.extMake sure that !include auth-checkpassword.conf.ext is uncommented.  == edit conf.d/auth-checkpassword.conf.ext ==The auth-checkpassword.conf.ext is in the conf.d/ filder.  Here are all the necessary lines. passdb {  driver = passwd-file  args = /etc/postfix/passwd/%d } userdb {  driver = prefetch } userdb {  driver = passwd-file  args = /etc/postfix/passwd/%d }
Bureaucrat, administrator
16,192
edits