Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1747 connectés 

 


Dernière réponse
Sujet : postfix+cyrus-imap+ldap : problème autocreate
fazouye up

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
fazouye up
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 :
  1. ldaplocal_server_host = 127.0.0.1
  2. ldaplocal_search_base = , dc=domaine, dc=fr
  3. ldaplocal_query_filter = (&(mail=%s))
  4. 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 :
  1. Oct  5 09:59:53 localhost postfix/pickup[9276]: B13633C08E: uid=500 from=<fazouye>
  2. Oct  5 09:59:53 localhost postfix/cleanup[9711]: B13633C08E: message-id=<20051005075953.B13633C08E@localhost.localdomain>
  3. Oct  5 09:59:53 localhost postfix/qmgr[9277]: B13633C08E: from=<fazouye@localhost.localdomain>, size=340, nrcpt=1 (queue active)
  4. Oct  5 09:59:53 localhost master[9716]: about to exec /usr/lib/cyrus-imapd/lmtpd
  5. Oct  5 09:59:53 localhost lmtpunix[9716]: executed
  6. Oct  5 09:59:53 localhost lmtpunix[9698]: autocreateinbox: User titi, INBOX was successfully created in partition default
  7. Oct  5 09:59:53 localhost lmtpunix[9698]: IOERROR: fstating sieve script /var/lib/imap/sieve/t/titi/defaultbc: No such file or directory
  8. Oct  5 09:59:53 localhost lmtpunix[9698]: duplicate_check: <20051005075953.B13633C08E@localhost.localdomain> user.titi 0
  9. Oct  5 09:59:53 localhost lmtpunix[9698]: mystore: starting txn 2147483651
  10. Oct  5 09:59:53 localhost lmtpunix[9698]: mystore: committing txn 2147483651
  11. Oct  5 09:59:53 localhost lmtpunix[9698]: duplicate_mark: <20051005075953.B13633C08E@localhost.localdomain> user.titi 1128499193 1
  12. Oct  5 09:59:53 localhost postfix/pipe[9714]: B13633C08E: to=<titi@mondomaine>, relay=cyrus, delay=0, status=sent (localhost.localdomain)
  13. Oct  5 09:59:53 localhost postfix/qmgr[9277]: B13633C08E: removed


 
Help ...  :hello:  
 
 
 
 


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)