VMware Images:
|
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
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
1 day 37 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 11 hours ago
1 day 15 hours ago
1 day 16 hours ago
2 days 2 hours ago
2 days 5 hours ago
2 days 10 hours ago
2 days 13 hours ago