Mandriva Directory Server On Debian Etch - Page 3
8 SASL ConfigurationPostfix will use SASL to authenticate users against the LDAP server. mkdir -p /var/spool/postfix/var/run/saslauthd/ Adjust the default settings. vi /etc/default/saslauthd It should look like this: START=yes MECHANISMS="ldap" MECH_OPTIONS="" THREADS=5 OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
vi /etc/saslauthd.conf It should look like this: ldap_servers: ldap://127.0.0.1 ldap_search_base: ou=Users,dc=example,dc=com ldap_filter: (&(objectClass=mailAccount)(mail=%u@%r)(mailenable=OK))
vi /etc/postfix/sasl/smtpd.conf It should look like this: pwcheck_method: saslauthd mech_list: plain login
Add Postfix to the SASL group ... adduser postfix sasl ... and restart SASL. /etc/init.d/saslauthd restart
9 Postfix Configuration9.1 Example ConfigurationFor this setup I chose the configuration without virtual domains - maybe I'll add the needed steps for a virtual domain setup in the near future. First copy the example configuration file into the postfix directory. It's the base for the following configuration. cp /usr/share/doc/python-mmc-base/contrib/postfix/no-virtual-domain/* /etc/postfix/
9.2 Main ConfigurationFirst adjust the main configuration file. vi /etc/postfix/main.cf Edit the file that it fits to your domain and additionally add some restrictions and the authentication settings - the content should look like this: # See /usr/share/postfix/main.cf.dist for a commented, more complete version smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no
9.3 LDAP Aliases ConfigurationNow you have to edit the aliases configuration. vi /etc/postfix/ldap-aliases.cf Edit the file that it fits to your domain - it should look like this: server_host = 127.0.0.1 search_base = ou=Users,dc=example,dc=com query_filter = (&(objectClass=mailAccount)(mailalias=%s)(mailenable=OK)) result_attribute = maildrop version = 3
9.4 Master ConfigurationThe master configuration is the last part of the postfix configuration. vi /etc/postfix/master.cf Add the following lines: # SMTPS # Dovecot # Mail to Amavis # Mail from Amavis Restart Postfix: /etc/init.d/postfix restart
10 DovecotDovecot will provide POP3- (SSL/TLS), IMAP- (SSL/TLS) and quota-support to the mailserver. 10.1 Main Configurationecho "" > /etc/dovecot/dovecot.conf The content should look like this: protocols = imap imaps pop3 pop3s listen = 0.0.0.0 login_greeting = example.com mailserver ready. mail_location = maildir:~/Maildir disable_plaintext_auth = no ssl_cert_file = /etc/ssl/certs/mail.pem ssl_key_file = /etc/ssl/private/mail.key log_path = /var/log/dovecot.log info_log_path = /var/log/dovecot.log
10.2 LDAP Configurationecho "" > /etc/dovecot/dovecot-ldap.conf The content should look like this: hosts = 127.0.0.1 auth_bind = yes ldap_version = 3 base = dc=example,dc=com scope = subtree user_attrs = homeDirectory=home,uidNumber=uid,mailbox=mail,mailuserquota=quota=maildir:storage user_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK)) pass_attrs = mail=user,userPassword=password pass_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK)) default_pass_scheme = CRYPT user_global_gid = mail
10.3 DeliverNext adjust the rights for the dovecot deliver - so dovecot will use the right uid and gid when it stores messages in the maildirs. dpkg-statoverride --update --add root dovecot 4755 /usr/lib/dovecot/deliver Afterwards restart Dovecot. /etc/init.d/dovecot restart
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
20 hours 35 min ago
22 hours 4 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago