| fazouye |
Bonjour, j'utilise postfix + cyrus imap , le tout basé sur un annuaire LDAP
Je voudrais qu'une boite imap soit créée à la réception d'un mail ... j'utilise donc le patch autocreate pour cyrus imap . Pas de problème, la boite se crée à la réception d'un mail, même si le destinataire n'est pas dans l'annuaire ...
Pour éviter cela, je renseigne dans le champ local_recipient_maps dans main.cf
local_recipient_maps = ldap:ldaplocal
Code :
- ldaplocal_server_host = 127.0.0.1
- ldaplocal_search_base = , dc=domaine, dc=fr
- ldaplocal_query_filter = (&(mail=%s))
- ldaplocal_result_attribute = uid
|
Je teste avec postmap -q 'toto@mondomane.fr' et j'obtiens l'uid de toto : nikel Pourtant cyrus continue à me créer des boites pour les destinataires non présents dans l'annuaire !
voici un extrait du maillog pour l'envoi d'un mail à titi (qui n'est pas dans l'annuaire)
Code :
- Oct 5 09:59:53 localhost postfix/pickup[9276]: B13633C08E: uid=500 from=<fazouye>
- Oct 5 09:59:53 localhost postfix/cleanup[9711]: B13633C08E: message-id=<20051005075953.B13633C08E@localhost.localdomain>
- Oct 5 09:59:53 localhost postfix/qmgr[9277]: B13633C08E: from=<fazouye@localhost.localdomain>, size=340, nrcpt=1 (queue active)
- Oct 5 09:59:53 localhost master[9716]: about to exec /usr/lib/cyrus-imapd/lmtpd
- Oct 5 09:59:53 localhost lmtpunix[9716]: executed
- Oct 5 09:59:53 localhost lmtpunix[9698]: autocreateinbox: User titi, INBOX was successfully created in partition default
- Oct 5 09:59:53 localhost lmtpunix[9698]: IOERROR: fstating sieve script /var/lib/imap/sieve/t/titi/defaultbc: No such file or directory
- Oct 5 09:59:53 localhost lmtpunix[9698]: duplicate_check: <20051005075953.B13633C08E@localhost.localdomain> user.titi 0
- Oct 5 09:59:53 localhost lmtpunix[9698]: mystore: starting txn 2147483651
- Oct 5 09:59:53 localhost lmtpunix[9698]: mystore: committing txn 2147483651
- Oct 5 09:59:53 localhost lmtpunix[9698]: duplicate_mark: <20051005075953.B13633C08E@localhost.localdomain> user.titi 1128499193 1
- Oct 5 09:59:53 localhost postfix/pipe[9714]: B13633C08E: to=<titi@mondomaine>, relay=cyrus, delay=0, status=sent (localhost.localdomain)
- Oct 5 09:59:53 localhost postfix/qmgr[9277]: B13633C08E: removed
|
Help ... :hello:
|