Topic: diferents mail domain and local domain
==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu Server 10.04
- Related log if you're reporting an issue:
====
Hi everybody, first sorry my english.
I need your help to finish my full installation of iRedmail, I have a LAN with a DNS sufix "domain.local" serve by a Windows Server 2003 SP2 with DNS, DHCP and AD running on it. This server has IP:192.168.2.4 and the mail server has IP:192.168.2.5 and his fully name is mail.domain.local
You have to know that I sucefull finish this job using the same domain on the local domain and the mail domain, eg: "mydomain.com"
I need to install iRedMail so that the mail domain its "@cpe.com" . . . I install iRedMail with LDAP backend.
Cause I need a diferent domain that I use in my LAN y put "dc=cpe,dc=com" in the LDAP suffix (root dn) during the installation, next in the First Virtual Domain Name i use "cpe.com", Am I rigth??
Once I finish I can login roundcube with test user under de "cpe.com" mail domain. Its ok so far . . .
The next step is integrated AD with the mail server, I use the integration guide on the official web but here I have some doubts, here:
postconf -e smtpd_sasl_local_domain='example.com'
postconf -e virtual_mailbox_domains='example.com'
I must put the mail domain (cpe.com) or the local domain (domain.local) ??
When I created the /etc/postfix/transport file I use "cpe.com" or "domain.local" ??
Now it is time to created the 3 files .cf to query AD, according to http://www.iredmail.org/forum/topic3165 … omain.html it is necessary to make some changes in the query_filter line but I tried several times and never work for me, eg:
--------------------------------------------------------------------------------------
# File: ad_sender_login_maps.cf
server_host = ad.domain.local
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = vmail
bind_pw = password_of_vmail
search_base = cn=users,dc=domain,dc=local
scope = sub
query_filter = (&(userPrincipalName=%s)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
# According to the link above I need to sustitute "%s" by "%u@cpe.com" but when I use the postmap line tool
# no result is show
#However if I put viceversa "%u@domain.local" and i ask for user@cpe.com seems to work
result_attribute= userPrincipalName // here we got user@domain.local
debuglevel = 0
--------------------------------------------------------------------------------------
# File: ad_virtual_mailbox_maps.cf
server_host = ad.domain.local
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = vmail
bind_pw = passwd_of_vmail
search_base = cn=users,dc=domain,dc=local
scope = sub
query_filter = (&(objectclass=person)(userPrincipalName=%s)) // here happens the same
result_attribute= userPrincipalName
result_format = %d/%u/Maildir/
debuglevel = 0
--------------------------------------------------------------------------------------
Now the great doubt, when I edit "/etc/dovecot/dovecot-ldap.conf" in the line
user_filter = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
what I suposed to do, If I leave like this I can login in roundcubemail but the user appears under "@domain.local" but I cant send mails to users under "cpe.com" mail domain, error SMTP 550 it show. However if I change for example "%u" by "%n@cpe.com" the users never logued in, what I suposed to do?!?!?
Please I need all possible help to finish the full installation, if I make mistakes during the installation or config please tell me where to fix it, thanks . . .
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.