1 (edited by NarinNil 2011-05-24 10:42:28)

Topic: How to if my local domain & mail domain are diffirent? (AD)

How to if my local domain & mail domain are diffirent? (AD)

System = iRedMail-0.7.1 on Ubuntu 10.04 LTS
Local domain = mydomain.local (it's my Active Directory domain)
Mail domain = mydomain.co.th (it's real domain that i registered on internet)

Form this link i success with tutorial connect iRedMail + Active Directory

http://www.iredmail.org/forum/post9654.html#p9654

But only i can do when login to Ruondcube with user@mydomain.local sad
i want to know that how to config for mail domain but authen with user on AD
if i have 2 mail domain but have only 1 localdomain

user1@mydomain.co.th
user2@mymail.com

user1 and user2 are on same local domain (mydomain.local)
but diffirent in mail domain and diffirent on local domain

sorry in my poor english

Thanks and Cheers

2

Re: How to if my local domain & mail domain are diffirent? (AD)

You can try to replace domain name in LDAP query directly.

For example, in postfix /etc/postfix/ad_sender_login_maps.cf, original LDAP query filter is:

query_filter    = (&(userPrincipalName=%s)(objectClass=person)(!(userAccountControl=514)))

Try to change it to:

query_filter    = (&(userPrincipalName=%u@mydomain.co.th)(objectClass=person)(!(userAccountControl=514)))

You might want to change "result_attribute =" too.

3

Re: How to if my local domain & mail domain are diffirent? (AD)

Thanks ZhangHuangbin

I will try that your advice and then be update later

Thank