Thanks guys. I really don't know what happen. I retake the steps in a fresh install server and it just works.
Re: Installed iRedMail on Fresh 14.04 Ubuntu LTS, Cannot connect
IP Rotation with iRedMail
==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Related log if you're reporting an issue:
====
Hello again. I'm quite new to SMTP setups, and we want to send email invites to a lot of persons and if we are sending more than 100's at a time, we are afraid of blacklisting. So I google and one of the soluions is IP Rotation, how would we do that in iRedMail? I tried googling but there isn't too much stuff available, or it doesn't make sense to me. I have 5 public ip's available for rotation. Currently I already set it up on my interfaces config. What's next after it?
Re: Trusted hosts email marked as spam
Hi
Thank for getting back to me.
I added the trusted_networks in local.cf, that is why i do not understand why it is still marking as spam, while some spams get 0.x or 1.x scores. In the header the scores are not displayed.
This is the header from a spam and no scores appear.
Received: from mail2.domain.com ([192.168.2.66]) by ex1.exchange.com with Microsoft SMTPSVC(6.0.3790.3959);
Fri, 13 Jun 2014 19:50:50 -0400
Received: from localhost (mail2.domain.com [127.0.0.1])
by mail2.domain.com (Postfix) with ESMTP id 6E1E680AA9
for <user1@domain2.com>; Fri, 13 Jun 2014 15:51:42 -0400 (EDT)
X-Virus-Scanned: amavisd-new at mail2.domain.com
Received: from mail2.domain.com ([127.0.0.1])
by localhost (mail2.domain.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id SHVeI3k6RpDi for <user1@domain2.com>;
Fri, 13 Jun 2014 15:51:42 -0400 (EDT)
Received: from updatedjunenewlifepolicy.club (unknown [206.190.144.168])
by mail2.domain.com (Postfix) with ESMTP id D859080A0D
for <user1@domain2.com>; Fri, 13 Jun 2014 15:51:41 -0400 (EDT)
Date: Fri, 13 Jun 2014 12:50:46 -0700
From: Amy <Amy@updatedjunenewlifepolicy.club>
To: <user1@domain2.com>
Message-ID: <14366306.16879195@updatedjunenewlifepolicy.club>
Content-Type: text/plain
Subject: Re: Your LifeInsurance-Payment: Policy # 14366306
Mime-Version: 1.0
X-OriginalArrivalTime: 13 Jun 2014 23:50:50.0943 (UTC) FILETIME=[4E6E4CF0:01CF8762]
X-Antivirus: AVG for E-mail 2014.0.4570 [3964/7672]
X-AVG-ID: ID74841454-19380658
spam assassin only works with the main domain
==== Required information ====
- iRedMail version: v0.3 (MySQL)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version: Ubuntu 12.04.4 LTS
- Related log if you're reporting an issue:
====
Spam Assassin works fine for any email I have on my main domain but it does not work with any other domains I have. I added the domains in the 50-user file for amavis, is there anywhere else I have to add these?
Re: spam assassin only works with the main domain
Only /etc/amavis/conf.d/50-user.
Re: Trusted hosts email marked as spam
You can decrease value of Amavisd parameter $sa_tag_level_deflt, so that amavisd will insert mail headers in almost all mails which 'X-Spam-Score' larger than it. For example:
$sa_tag_level_deflt = -100; # add spam info headers if at, or above that level
Re: IP Rotation with iRedMail
You can try this solution:
http://marinovl.blogspot.cz/2012/09/pos … mails.html
Re: spam assassin only works with the main domain
any idea why it wouldnt work with the other domains?
Re: spam assassin only works with the main domain
Amavisd only add mail headers for domains which listed in its '@local_domains_maps'.
Some Quetions About iRedMail
==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: Centos 6
- Related log if you're reporting an issue: -------
====
I have some questions about iRedMail:-
1. If Move Spam to Junk filter is not set then where the spam will go?
2. How do i set Move spam to Junk by default for every user?
3. How mails are classified as spam?
4. How to classify hosts as trusted or not trusted?
5. I want to create a new folder for every user and for future new uses also, how do i do that??I want to move all mails that are sent as group emails(mostly advertisements.) to that folder.
6. HOw can i host the RoundCube mail on another host?(to save my vps' RAM)
7. How can i set the auto-reponse mail more specific such add current date get sender's name via mysql database?
8. How can i store my emails on a different host via ftp?
Thank You!
bypass content_filter
( HUMM i thought i had posted this but I cant find it sorry if it is duplicated)
I need to bypass the content filter for some servers, users and email from root.
I have tried several options as described on postfix filter but no luck
amavisd stops from time to time for no reason and when that does no email goes out, I need to send out some alert to a pager but root email are stuck in the queue.
I have try to add t new entry in master.cf
10026 inet n - n - - lmtp
-o content_filter=
-o smtpd_client_restrictions=permit_mynetworks,reject
then
created a /etc/postfix/filter-whitelist with this in it and postmap it
/root@localhost/ FILTER smtp:[127.0.0.1]:10026
127.0.0.1 FILTER smtp:[127.0.0.1]:10026
and added this to main.cf
smtpd_sender_restrictions =
check_sender_access hash:/etc/postfix/filter-whitelist
if amavisd stops root email does not go out, root email should not be filtered or should it?
thanks
==== Required information ====
- iRedMail version: latest
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): sql
- Linux/BSD distribution name and version: centis 6
- Related log if you're reporting an issue:
====
Re: bypass content_filter
I guess you need to update 'pickup' transport in /etc/postfix/master.cf like below:
pickup - ...
-o content_filter=
Then all emails generated locally will bypass content filter.
Re: Some Quetions About iRedMail
1. If Move Spam to Junk filter is not set then where the spam will go?
Delivered to INBOX.
2. How do i set Move spam to Junk by default for every user?
Add a global sieve rule in Dovecot (parameter 'sieve_before' or 'sieve_after').
3. How mails are classified as spam?
Detected by SpamAssassin.
4. How to classify hosts as trusted or not trusted?
Several ways. e.g. list the host in Postfix "mynetworks" parameter.
5. I want to create a new folder for every user and for future new uses also, how do i do that??I want to move all mails that are sent as group emails(mostly advertisements.) to that folder.
Make this folder auto-subscribed in Dovecot, and create sieve to move mail to folder.
6. HOw can i host the RoundCube mail on another host?(to save my vps' RAM)
Just setup web server (Apache/Nginx/...) and Roundcube webmail, but point IMAP/SMTP server to the real mail server in Roundcube config file.
7. How can i set the auto-reponse mail more specific such add current date get sender's name via mysql database?
Vacation message is sent by sieve rule/script, as far as i know, you cannot query SQL database with sieve rule.
8. How can i store my emails on a different host via ftp?
Currently, only on local file system or mounted remote file system (e.g. NFS). Why ftp?
What and where should I change the entry if I change the hostname
Hello,
I have a problem with all mail I send from my server with iRedmail fresh installed : they fall, all, in spam box (I have test with Gmail only for this time).
I have read that for the hostname it's better to use a domain that exist. I have left the proposition made in installation, but it's an error I suppose because the domaine name (dedibox.fr) should be banned from the most server in the planet.
Now I want better use a domain I have.
Can I use for hostname : mail.myspecialdomainforallmyservice.com ?
When and what should I change for iRedmail works with my changes?
Thx.
==== Required information ====
- iRedMail version: iRedMail-0.8.7
- Store mail accounts in which backend : MySQL
- Linux/BSD distribution name and version: Ubuntu LTS 14.04 64 bits
- Related log if you're reporting an issue:
====
Re: bypass content_filter
Not exactly what I was looking for but Ill try that, thanks
I was hopping we could do a white list for other addresses like reports from other systems that may contain spam related text. I have systems that runs pflogsum being cought by the filter.
Xbox Live Codes - Know More
The popularity of the Xbox games has soared with every pass month and gathering. There are so more folks you can jest games with around the globe using the Xbox and the see is something that can ready you feat for hours on end. Is it any inquire then, that there are so more folks who would meet compassion to have disengage Xbox untaped points that leave aid them get access to the Xbox spirited, which is quite an inimitable get! You also screw many fill trying to get these points finished online forums and conversation rooms, which may not be the most paragon way to go about this. download Xbox live code generator
There are quite a few websites that support disentangled Xbox untaped points in arrival for your playing both of the games that they entertainer on their websites. These points can be exchanged for take Xbox test codes which yield you accession to Xbox games. Do refer that you screw to be quite skilled at playacting games on the tract in ordination to hit any possibleness of success in exploit and accumulating a figure of supply Xbox attemptable to get and merchandise escaped Xbox living points with added users and players online through forums and added sites. There are various sites and contrasting rules and regulations for this, which you essential to essentially, study to get these points. In any occurrence, you beggary to appreciate the fact that there are not set present or seasons when these whippy points can be prefab useable, due to which you testament acquire to ensure that you ask experience off to countenance for sites and added a Xbox Charged body? http://www.xboxlivecodes.us
Problem installing iRedMail on Debian 7.5
==== 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.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7.5 i386
- Related log if you're reporting an issue:
====
I've set up iRedMail on Ubuntu 14.04 without running into issues but decided to move to Debian instead.
Went through the installer options as documented on this site, but upon confirming to start installation, I get this:
< Question > Continue? [y|N]y
< INFO > Installing package(s): mysql-server mysql-client postfix-mysql libapache2-mod-auth-mysql libapache2-mod-php5 php5-imap php5-json php5-gd php5-mcrypt php5-curl mcrypt php-apc php5-mysql postfix postfix-pcre postfix-cluebringer postfix-cluebringer-mysql dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-mysql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl phpmyadmin python-mysqldb libapache2-mod-wsgi python-jinja2 python-netifaces python-webpy awstats fail2ban bzip2 acl patch cron tofrodos logwatch
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php5-common' instead of 'php5-json'
Package amavisd-new is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package lzop is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package zoo is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package unrar-free is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libmail-dkim-perl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package postfix-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package postfix-pcre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package python-mysqldb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package python-netifaces is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package php-apc is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postfix-mysql' has no installation candidate
E: Unable to locate package libapache2-mod-auth-mysql
E: Package 'mcrypt' has no installation candidate
E: Package 'php-apc' has no installation candidate
E: Package 'postfix-pcre' has no installation candidate
E: Unable to locate package postfix-cluebringer
E: Unable to locate package postfix-cluebringer-mysql
E: Package 'amavisd-new' has no installation candidate
E: Unable to locate package libcrypt-openssl-rsa-perl
E: Package 'libmail-dkim-perl' has no installation candidate
E: Unable to locate package clamav-daemon
E: Unable to locate package altermime
E: Package 'zoo' has no installation candidate
E: Unable to locate package nomarch
E: Package 'lzop' has no installation candidate
E: Package 'unrar-free' has no installation candidate
E: Unable to locate package ripole
E: Package 'python-mysqldb' has no installation candidate
E: Unable to locate package python-jinja2
E: Package 'python-netifaces' has no installation candidate
E: Unable to locate package python-webpy
E: Unable to locate package awstats
E: Unable to locate package tofrodos
E: Unable to locate package logwatch
< ERROR > Installation failed, please check the terminal output.
I am unsure of how to proceed
SMTP Error: SMTP error: Failed to add recipient
==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Linux/BSD distribution name and version: RedHat 6
- Related log if you're reporting an issue: iredapd and maillog logs
====
I installed IredAdmin on my Red Hat server instance, I am trying to send an email with the roudcube UI and and am not able to do so,
The below is an extract from maillog
[root@ip-172-32-51-178 ~]# tail /var/log/maillog
Jun 15 13:30:03 ip-172-32-51-178 postfix/postfix-script[2360]: starting the Postfix mail system
Jun 15 13:30:03 ip-172-32-51-178 postfix/master[2362]: daemon started -- version 2.11.0, configuration /etc/postfix
Jun 15 13:30:44 ip-172-32-51-178 postfix/smtpd[2377]: connect from ip-172-32-51-178.ec2.internal[127.0.0.1]
Jun 15 13:30:44 ip-172-32-51-178 postfix/smtpd[2377]: warning: connect to 127.0.0.1:10031: Connection refused
Jun 15 13:30:44 ip-172-32-51-178 postfix/smtpd[2377]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Jun 15 13:30:45 ip-172-32-51-178 postfix/smtpd[2377]: warning: connect to 127.0.0.1:10031: Connection refused
Jun 15 13:30:45 ip-172-32-51-178 postfix/smtpd[2377]: warning: problem talking to server 127.0.0.1:10031: Connection refused
Jun 15 13:30:45 ip-172-32-51-178 postfix/smtpd[2377]: NOQUEUE: reject: RCPT from ip-172-32-51-178.ec2.internal[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<vivek.a@testgroup.in> to=<vivek.a@testgroup.in> proto=ESMTP helo=<testgroup.in>
Jun 15 13:30:45 ip-172-32-51-178 roundcube: SMTP Error: SMTP error: Failed to add recipient 'vivek.a@testgroup.in' in /var/www/roundcubemail-1.0.1/program/lib/Roundcube/rcube.php on line 1504 (POST /mail/?_task=mail&_unlock=loading1402853510945&_lang=en_US?_task=mail&_action=send)
Jun 15 13:30:45 ip-172-32-51-178 postfix/smtpd[2377]: disconnect from ip-172-32-51-178.ec2.internal[127.0.0.1]
[root@ip-172-32-51-178 ~]# /etc/init.d/iredapd status
iredapd is running.
Below is an extract from ireadpd logs
2014-06-15 13:30:44 DEBUG Connect from 127.0.0.1, port 44932.
2014-06-15 13:30:44 DEBUG smtp session: request=smtpd_access_policy
2014-06-15 13:30:44 DEBUG smtp session: protocol_state=RCPT
2014-06-15 13:30:44 DEBUG smtp session: protocol_name=ESMTP
2014-06-15 13:30:44 DEBUG smtp session: client_address=127.0.0.1
2014-06-15 13:30:44 DEBUG smtp session: client_name=ip-172-32-51-178.ec2.internal
2014-06-15 13:30:44 DEBUG smtp session: reverse_client_name=ip-172-32-51-178.ec2.internal
2014-06-15 13:30:44 DEBUG smtp session: helo_name=testgroup.in
2014-06-15 13:30:44 DEBUG smtp session: sender=vivek.a@testgroup.in
2014-06-15 13:30:44 DEBUG smtp session: recipient=vivek.a@testgroup.in
2014-06-15 13:30:44 DEBUG smtp session: recipient_count=0
2014-06-15 13:30:44 DEBUG smtp session: queue_id=
2014-06-15 13:30:44 DEBUG smtp session: instance=949.539dd844.318f5.0
2014-06-15 13:30:44 DEBUG smtp session: size=0
2014-06-15 13:30:44 DEBUG smtp session: etrn_domain=
2014-06-15 13:30:44 DEBUG smtp session: stress=
2014-06-15 13:30:44 DEBUG smtp session: sasl_method=LOGIN
2014-06-15 13:30:44 DEBUG smtp session: sasl_username=vivek.a@testgroup.in
2014-06-15 13:30:44 DEBUG smtp session: sasl_sender=
2014-06-15 13:30:44 DEBUG smtp session: ccert_subject=
2014-06-15 13:30:44 DEBUG smtp session: ccert_issuer=
2014-06-15 13:30:44 DEBUG smtp session: ccert_fingerprint=
2014-06-15 13:30:44 DEBUG smtp session: ccert_pubkey_fingerprint=
2014-06-15 13:30:44 DEBUG smtp session: encryption_protocol=TLSv1
2014-06-15 13:30:44 DEBUG smtp session: encryption_cipher=ECDHE-RSA-AES256-SHA
2014-06-15 13:30:44 DEBUG smtp session: encryption_keysize=256
2014-06-15 13:30:44 DEBUG --> Apply plugin: sql_alias_access_policy
2014-06-15 13:30:44 DEBUG SQL: SELECT accesspolicy, goto, moderators
FROM alias
WHERE
address='vivek.a@testgroup.in'
AND address <> goto
AND domain='testgroup.in'
AND active=1
LIMIT 1
2014-06-15 13:30:44 DEBUG SQL Record: None
2014-06-15 13:30:44 DEBUG <-- Result: DUNNO (Not mail alias)
2014-06-15 13:30:44 DEBUG --> Apply plugin: sql_user_restrictions
2014-06-15 13:30:44 DEBUG SQL to get restriction rules of sender (vivek.a@testgroup.in):
SELECT
allowedrecipients, rejectedrecipients,
allowedsenders, rejectedsenders
FROM mailbox
WHERE username='vivek.a@testgroup.in'
LIMIT 1
2014-06-15 13:30:44 DEBUG Returned SQL Record: (None, None, None, None)
2014-06-15 13:30:44 DEBUG No restrictions of sender.
2014-06-15 13:30:44 DEBUG No restrictions of recipient.
2014-06-15 13:30:44 DEBUG <-- Result: DUNNO
2014-06-15 13:30:44 INFO [127.0.0.1] vivek.a@testgroup.in -> vivek.a@testgroup.in, DUNNO
2014-06-15 13:30:44 DEBUG Connection closed
2014-06-15 13:30:44 DEBUG Closed SQL connection.
While I am running
echo "Test mail from postfix" | mail -s "Test Postfix" shreepad1@gmail.com
I get this email in my gmail box,
This is also the issue when I am returning the email from my gmail id (shreepad1@gmail.com) to say vivek.a@testgroup.in.
I have also added
smtpd_sasl_local_domain = www.testgroup.in in my postfix config and restarted postfix ,
I am assuming there is an access rights issue , need help to debug
==============================================================================================
I was also looking at this particular error in maillog "warning: problem talking to server 127.0.0.1:10031: Connection refused"
I see that this relates to poilicyd and this is not installed on my server
rpm -qi policyd
package policyd is not installed
Should I be installing it, Ideally if there is a need it should have been installed with iredadmin installation, correct ? , If I install it using yum install, should I be backing up any files, lest the new yum install does not override any changes made by iredadmin, thanks
iRedMail Setup Question
Hello,
I'm setting up iRedMail 0.8.7 on my new VPS (Linux CentOS Linux 6.2).
My question is:
I haven't changed the DNS settings to my registrar, so I'm presently only ably to resolve to my 'IP'.
The first step in the iRedMail setup describes setting the HOSTNAME. Should I use my server hostname instead, i.e. 'apollo'?
# Part of file: /etc/sysconfig/network
HOSTNAME=mx.example.com
==== Required information ====
- iRedMail version: 1RedMail 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====
Re: Features disabled due to AD integration
I just tested my solution, it seems to work, here's how I did for those interested :
I start with a iRedadmin MySQL backend server.
First, install iRedMail with MySQL backend. When install is complete, install postfix-ldap, dovecot-ldap and ldap-utils packages.
I used this page to help me.
Configure postfix :
Create those files (touch) :
# touch /etc/postfix/ldap/ad_virtual_mailbox_maps.cf
# touch /etc/postfix/ldap/ad_virtual_group_maps.cf
# touch /etc/postfix/ldap/ad_sender_login_maps.cf
Don't disable iRedmail special settings as said in the howto.
Edit "smtpd_sasl_local_domain" and "transport_maps" like said in the howto.
Enable AD query :
Verify SMTP senders :
# postconf -e smtpd_sender_login_maps='proxy:ldap:/etc/postfix/ldap/ad_sender_login_maps.cf'
Used to verify local mail users :
# postconf -e virtual_mailbox_maps='proxy:ldap:/etc/postfix/ldap/ad_virtual_mailbox_maps.cf'
Used to verify local mail lists/groups :
# postconf -e virtual_alias_maps='proxy:ldap:/etc/postfix/ldap/ad_virtual_group_maps.cf \
proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, \
proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, \
proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, \
proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf'
As you can see, just add the LDAP entry to the existent line.
Don't create /etc/postfix/transport (still stored in MySQL database)
Edit /etc/postfix/ldap/ad_sender_login_maps.cf :
server_host = ad.example.com
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = vmail
bind_pw = password_of_vmail
search_base = cn=users,dc=example,dc=com
scope = sub
query_filter = (&(userPrincipalName=%s)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
result_attribute= userPrincipalName
debuglevel = 0
Edit /etc/postfix/ldap/ad_virtual_mailbox_maps.cf :
server_host = ad.example.com
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = vmail
bind_pw = passwd_of_vmail
search_base = cn=users,dc=example,dc=com
scope = sub
query_filter = (&(objectclass=person)(userPrincipalName=%s))
result_attribute= userPrincipalName
result_format = %d/%u/Maildir/
debuglevel = 0
/etc/postfix/ldap/ad_virtual_group_maps.cf : (but still not configured in main.cf)
server_host = ad.example.com
server_port = 389
version = 3
bind = yes
start_tls = no
bind_dn = vmail
bind_pw = password_of_vmail
search_base = cn=users,dc=example,dc=com
scope = sub
query_filter = (&(objectClass=group)(mail=%s))
special_result_attribute = member
leaf_result_attribute = mail
result_attribute= userPrincipalName
debuglevel = 0
In the "query filter" and "result_attribute" for each files, I set "mail" in place of "userPrincipalName".
This allows me to only enable users who have an email adress specified in their AD profile. As a result, the default user "administrator" don't have access to the mail server, for example.
I repeat that you cannot set a "search_base" with only "dc=exemple,dc=com". I must create an OU where I store my users. it results : OU=mycompany,dc=example,dc=com".
Verify LDAP queries as mentionned in the howto. Groups you'll create in you AD database must have their "mail" field completed to make the query working.
Configure Dovecot :
Create /etc/dovecot/dovecot-ldap.conf :
hosts = ad.example.com:389
ldap_version = 3
auth_bind = yes
dn = vmail
dnpass = passwd_of_vmail
base = cn=users,dc=example,dc=com
scope = subtree
deref = never
user_filter = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs = userPassword=password
default_pass_scheme = CRYPT
user_attrs = =home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/
The same as above, I remplaced "userPrincipalName=%u" by "mail=%u" for the same reasons.
I'm testing if advanced features are working. In a first time, authentications are working well based on the AD database.
To be continued...