LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-06-2010, 09:38 PM   #1
moekad
Member
 
Registered: Feb 2009
Posts: 64

Rep: Reputation: 15
Postfix/Dovecot AD Integrated


heys!! i'm trying to do "Integration with AD"
now my postfix work i can send mail thru the "AD Accounts" but i can't have mailbox !! please help .... i try this configuration:
https://help.ubuntu.com/community/DovecotLDAP
didn't have luck
my Postfix configuration:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-aliases.cf
append_dot_mydomain = no
biff = no
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
default_transport = smtp
header_checks = regexp:/etc/postfix/header_check
home_mailbox = Maildir/
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 0
message_size_limit = 1000000
mydestination = $myhostname, $mydomain, localhost.localdomain, , localhost
mydomain = mail-kad.redirectme.net
myhostname = mail.$mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = $mydomain
readme_directory = no
recipient_delimiter = +
relay_transport = smtp
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_event_limit_exceptions =
smtpd_recipient_restrictions = permit_mynetworks,permit_tls_clientcerts , permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes

my ldap-aliases.cf:
server_host = 172.16.1.250
search_base = ou=employee,dc=mail-kad,dc=redirectme,dc=net
version = 3
bind_dn = cn=postfix,ou=employee,dc=mail-kad,dc=redirectme,dc=net
bind_pw = postfix
query_filter = (&(objectclass=person)(proxyAddresses=smtp:%s))
leaf_result_attribute = proxyAddresses


My Dovecot Configuration:
# 1.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-21-generic i686 Ubuntu 10.04 LTS
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 100
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
auth default:
username_format: %Lu
passdb:
driver: pam
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: passwd
userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf

my dovecot-ldap.conf:
hosts = 172.16.1.250:389


dn = cn=postfix,ou=employee,dc=mail-kad,dc=redirectme,dc=net

dnpass = postfix




debug_level = 0

auth_bind = yes


auth_bind_userdn = cn=%u,ou=emplyee,dc=mail-kad,dc=redirectme,dc=net

ldap_version = 3

base = ou=employee,dc=mail-kad,dc=redirectme,dc=net


scope = subtree

user_attrs = homeDirectory=home,uidNumber=uid,gidNumber=gid

user_filter = (&(objectClass=posixAccount)(uid=%u))


pass_attrs = uid=user,userPassword=password



pass_filter = (&(objectClass=posixAccount)(uid=%u))


Thx in advance
 
Old 09-07-2010, 09:05 AM   #2
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Just to make sure I understand.

Quote:
now my postfix work i can send mail thru the "AD Accounts" but i can't have mailbox

Can you see the mail in the mailboxes on the Linux machine?
 
Old 09-07-2010, 12:00 PM   #3
moekad
Member
 
Registered: Feb 2009
Posts: 64

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jamrock View Post
Just to make sure I understand.




Can you see the mail in the mailboxes on the Linux machine?
hey Thx for the "Reply"
now i can't see mail for any Account in the AD on the linux, my dovecot have: mail_location =Maildir , my "Local" Linux Accounts, each one have it's mailbox under the "/home/<user>/Maildir while the "AD accounts" where's the location for their "Maildir"? i don't know if my configuration at the above has a missing configuration?

Thanks for your help =)
 
Old 09-07-2010, 02:38 PM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
I have never set up this configuration but I would think that each AD user needs to have a maildir under the home folder as well. Ususally with Samba at least the home directory for an AD user would be created under /home/ADDomain/ADUser then their maildir would be under their user home folder.
 
Old 09-13-2010, 05:49 AM   #5
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Here are the tutorials I used to start. They should give you enough information to get a basic system working.

http://www.linuxmail.info/postfix-do...ldap-centos-5/

http://redflo.de/tiki-index.php?page...y+with+postfix

http://www.zarafa.com/wiki/index.php...ups_in_Postfix

http://www.linuxmail.info/postfix-ac...-lookup-howto/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dovecot/Postfix migration pa.martin Linux - Server 4 02-26-2010 05:08 PM
Postfix/Dovecot issue LWillmann Linux - Networking 2 09-18-2006 07:34 AM
Postfix Dovecot Help BigAppleFan Linux - Newbie 7 08-15-2005 05:08 PM
Postfix and Dovecot umbraeOtheisles Linux - Software 3 11-23-2004 07:36 AM
postfix with dovecot on fc2 rnj Fedora 1 10-09-2004 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration