En effet la config de postfix était mauvais et j'ai ajouter comme conseillé dans le domain et destionation de postifix bizbuz.eu
Ebsuite pour la personne sous ubuntu la promiere chose a avoir c'est une nom de domaine sur internet. Si tu n'as pas de non de domaines sur internet ca ne fonctionnera pas .
Ok merci pour la réponse, mais me voila avec un nouveau message d'erreur :)
Mar 18 13:29:30 smtp postfix/master[1855]: terminating on signal 15
Mar 18 13:29:31 smtp postfix/master[2361]: daemon started -- version 2.5.5, configuration /etc/postfix
Mar 18 13:30:00 smtp postfix/master[2361]: terminating on signal 15
Mar 18 13:30:01 smtp postfix/master[2459]: daemon started -- version 2.5.5, configuration /etc/postfix
Mar 18 13:30:17 smtp postfix/smtpd[2467]: connect from unknown[192.168.2.7]
Mar 18 13:30:17 smtp postfix/smtpd[2467]: 8912254170: client=unknown[192.168.2.7]
Mar 18 13:30:17 smtp postfix/cleanup[2471]: 8912254170: message-id=<4BA21CC0.4020101@network.local>
Mar 18 13:30:17 smtp postfix/qmgr[2462]: 8912254170: from=<titi@network.local>, size=578, nrcpt=1 (queue active)
Mar 18 13:30:17 smtp postfix/smtpd[2467]: disconnect from unknown[192.168.2.7]
Mar 18 13:30:17 smtp postfix/smtp[2472]: 8912254170: to=<tutu@network.local>, relay=none, delay=0.16, delays=0.1/0.04/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=network.local type=A: Host not found)
Mar 18 13:30:17 smtp postfix/cleanup[2471]: A762D54172: message-id=<20100318123017.A762D54172@smtp.network.local>
Mar 18 13:30:17 smtp postfix/qmgr[2462]: A762D54172: from=<>, size=2484, nrcpt=1 (queue active)
Mar 18 13:30:17 smtp postfix/bounce[2473]: 8912254170: sender non-delivery notification: A762D54172
Mar 18 13:30:17 smtp postfix/qmgr[2462]: 8912254170: removed
Mar 18 13:30:17 smtp postfix/smtp[2472]: A762D54172: to=<titi@network.local>, relay=none, delay=0.05, delays=0.03/0.01/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=network.local type=A: Host not found)
Mar 18 13:30:17 smtp postfix/qmgr[2462]: A762D54172: removed
Je comprend bien que c'est en rapport avec mon domain (je n'ai pas de DNS en place) mais je ne sais pas ce que je dois modifier pour résoudre la problème
Je suppose que tu dois parler de la commande suivante:
postmap -q flo-debian.gescom ldap:/etc/postfix/ldap-domains.cf
Lorsque je la tape dans le terminal:
flo-debian:/var/log# postmap -q flo-debian.gescom ldap:/etc/postfix/ldap-domains.cf
flo-debian:/var/log#
Si je tape la commande pour un user:
flo-debian:/var/log# postmap -q flo@flo-debian.gescom ldap:/etc/postfix/ldap-accounts.cf
maildir:/home/flo/Maildir/
Et pour finir j'ai remis mais fichier host et hostname comme au départ...
Et maintenant en telnet:
220 flo-debian.gescom ESMTP Postfix (Ubuntu)
mail from:
250 2.1.0 Ok
rcpt to:
550 5.1.1 : Recipient address rejected: User unknown in local recipient table
Alors voila ce que j'ai fait pour obtenir l'attribut mailbox:
- Ouverture du fichier inetorgperson.schema
- Ajout des lignes suivantes:
attributetype ( 2.16.840.1.113730.3.1.217 ==>+1 par rapport au dernier attribut
NAME 'mailbox'
DESC 'RFC2798:home mail box'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 ) ==>repis celui de l'attributs du dessus
ensuite ajout de l'attribut dans la calsse existante:
objectclass ( 2.16.840.1.113730.3.2.2
NAME 'inetOrgPerson'
DESC 'RFC2798: Internet Organizational Person'
SUP organizationalPerson
STRUCTURAL
MUST mailbox
MAY ( ......))
Une fois fait je delete le user dupont et le créé de nouveau avec mailbox en plus. Résultat il accepte mon champs mailbox mais je dois y mettre une valeur binaire. Comprend pas. Pour vérifier la création de dupont je regarde dans phpldapadmin et pour le nouveau champs j'ai un bouton parcourir :s
Pour l'utilisateur j'en ai créé un nouveau ci dessus mais toujours pas d'attributs mailbox donc je suppose que je dois l'ajouter en auxiliaire dans le schéma inetOrgPerson.
Pour le numéro c'est moi qui l'ai ajouté et je n'ai fait qu'ajouter un a l'objectclass qui se trouvais au dessus du schéma mail.schéma que j'ai acquis avec le plugin MMC...
Suivant ton conseil j'ai rétiré tout modif de ma part dans les schémas ...
Alors voila j'ai créer un compte posixAccount comme suite:
dn: mail=dupont@flo-debian.gescom, ou=Users, dc=flo-debian, dc=gescom
objectClass: top
objectClass: posixAccount
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
uid: dupont
cn: Dupont Jean
sn: Dupont
givenName: Jean
uidNumber: 1100
gidNumber: 1111
homeDirectory: /home/vmail/dupont
loginShell: /bin/bash
userPassword: dupont
mail: dupont@flo-debian.gescom
J'ai change le filter dans dovecot pour avoir un objetClass=posixAccount et en telnet ca fonctionne.
Cependant je n'ai toujours pas d'attributs mailbox et lorsque je me log en telnet j'ai une erreur de permission sur la création d'un dossier mais je ne sais pas comment changer les droits:
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): ldap(dupont@flo-debian.gescom,127.0.0.1): bind search: base=ou=Users,dc=flo-debian,dc=gescom filter=(&(objectclass=posixAccount)(mail=dupont@flo-debian.gescom))
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): ldap(dupont@flo-debian.gescom,127.0.0.1): result: mail(user)=dupont@flo-debian.gescom
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): ldap(dupont@flo-debian.gescom,127.0.0.1): bind: dn=mail=dupont@flo-debian.gescom,ou=Users,dc=flo-debian,dc=gescom
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): client out: OK#0111#011user=dupont@flo-debian.gescom
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): master in: REQUEST#0111#0114658#0111
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): passwd(dupont@flo-debian.gescom,127.0.0.1): lookup
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): passwd(dupont@flo-debian.gescom,127.0.0.1): unknown user
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): ldap(dupont@flo-debian.gescom,127.0.0.1): user search: base=ou=Users,dc=flo-debian,dc=gescom scope=subtree filter=(&(objectclass=posixAccount)(mail=dupont@flo-debian.gescom)) fields=mailbox
Mar 2 15:31:01 Flo-Debian dovecot: auth(default): master out: USER#0111#011dupont@flo-debian.gescom#011uid=500#011gid=8
Mar 2 15:31:01 Flo-Debian dovecot: IMAP(dupont@flo-debian.gescom): mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/Maildir/cur) failed: Permission denied
Mar 2 15:31:01 Flo-Debian dovecot: imap-login: Login: user=<dupont@flo-debian.gescom>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Pour finir j'ai bien trouvé le posixAccount mais il n'y a pas tout les attributs dont j'ai besoin ... Comment faire pour ajouter un attributs mail, mailbox, ...
Alors oui j'ai ajouter "objectClass" a la fin du schéma installé avec onpenldap "inetorgperson"
Pour le posix j'ai bien la création de "ou" posix mais je n'ai pas de posixAccount. J'ai bien un Courier Mail Account mais a chaque fois que je remplis les champs, j'ai le message d'erreur suivant:
0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Jme doute bien que j'ai mal renseigné un attribut mais je tape ce qu'il me semble logique et je sais pas vraiment quoi mettre d'autre.
Sinon je vais être franc, IANA jamais entendu parlé ...
Une dernier chose aussi c'est que grace a l objectClass que j'ai ajouter je peux choisir le RDN sur attributs que je veux ce qui me permet d'avoir un dn du type:
mail=test@flo-debian.gescom,ou=Users,dc=flo-debian,dc=gescom
Et ceci, si je comprend comment ca fonctionne, me permet de trouver mon user avec le filtre mis en place dans dovecot-ldap
Ok pour le mailbox mais je n'arrive pas a trouve la syntax correcte: Lors de l'ajout du mailbox via phpldapadmin j'ai une erreur:
Error number: 0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Description: You tried to perform an operation that would cause an undefined attribute to exist or that would remove a required attribute, given the current list of ObjectClasses. This can also occur if you do not specify a structural objectClass when creating an entry, or if you specify more than one structural objectClass.
Pour le schéma je l'ai définit comme suite dans mail.schéma:
objectclass ( 1.3.6.1.4.1.40098.1.2.13.4
NAME 'CompteMail'
DESC 'Mail Account'
SUP top
AUXILIARY
MUST (
mail $ sn $ cn $ userPassword
)
MAY (
mailbox
)
)
Ok et merci pour tout:
Un petite erreur dans le fichier de config, une lettre de trop dans la définition du DN. Avec l'utilisateur test avec le mail test@flo-debain.gescom j'ai réussi a me logger sur le serveur IMAP avec authentification LDAP:
Flo-Debian:/home/florian# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Dovecot ready.
. login test@flo-debian.gescom test
. OK Logged in.
fichier log:
Mar 2 10:48:52 Flo-Debian slapd[3986]: <= test_filter 6
Mar 2 10:48:52 Flo-Debian slapd[3986]: <= test_filter_and 6
Mar 2 10:48:52 Flo-Debian slapd[3986]: <= test_filter 6
Mar 2 10:48:52 Flo-Debian slapd[3986]: conn=0 op=4 SEARCH RESULT tag=101 err=0 nentries=1 text=
Mar 2 10:48:52 Flo-Debian dovecot: auth(default): master out: USER#0111#011test@flo-debian.gescom#011uid=500#011gid=8
Mar 2 10:48:52 Flo-Debian slapd[3986]: daemon: activity on 1 descriptor
Mar 2 10:48:52 Flo-Debian slapd[3986]: daemon: activity on:
Mar 2 10:48:52 Flo-Debian slapd[3986]:
Mar 2 10:48:52 Flo-Debian slapd[3986]: daemon: epoll: listen=8 active_threads=0 tvp=zero
Mar 2 10:48:52 Flo-Debian slapd[3986]: daemon: epoll: listen=9 active_threads=0 tvp=zero
Mar 2 10:48:52 Flo-Debian dovecot: imap-login: Login: user=<test@flo-debian.gescom>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Mar 2 10:48:52 Flo-Debian dovecot: IMAP(test@flo-debian.gescom): mkdir(/HOME_DIRECTORY_USED_BUT_NOT_GIVEN_BY_USERDB/Maildir/cur) failed: Permission denied
J'ai un petit soucis sur le home directory mais le plus important est la :)
Encore merci
Lorsque je tape la commande que tu m'as donné, il ne se passe pas grand chose, j'ai un prompt (>) dans la console et rien d'autre.
Si on augement le -d 1024 ou 2048 le résultat est le meme :s
Sinon pour infos ca peut toujours aider, j'arrive a me connecter en telnet avec le compte florian qui est mon compte utilisateur sous Debian est-ce normale? Je ne devrais pas savoir me connecter uniquement avec les utilisateurs de LDAP ?
L'objet class de inetorgperson.schéma (que j'ai intégré dans le schéma...):
objectclass ( 2.16.840.1.113730.3.2.2.1
NAME 'CourierMailAccount'
DESC 'RFC2798: Internet Organizational Person'
SUP top
STRUCTURAL
MUST mail
MAY (sn $ userPassword )
)
Sinon c'est vrai que j'ai un peu de mal avec LDAP alors:
Pourquoi avoir créé le user dovecot? Et pour le filtre je me mélange un peu dans les héritage les différents ObjectClass ... Et au cas ou ca changerais qq chose j'utilise phpadmin ldap. Et pour finir meme apres avoir changé la requete et test ca ne va toujours pas :s La même erreur de le fichier log
# Features to permit
#allow bind_v2
# Schema and objectClass definitions
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/mmc.schema
include /etc/ldap/schema/mail.schema
# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile /var/run/slapd/slapd.pid
# List of arguments that were passed to the server
argsfile /var/run/slapd/slapd.args
# Read slapd.conf(5) for possible values
loglevel 256
# Where the dynamically loaded modules are stored
modulepath /usr/lib/ldap
moduleload back_bdb
# The maximum number of entries that is returned for a search operation
sizelimit 500
# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1
#######################################################################
# Specific Backend Directives for bdb:
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
backend bdb
#######################################################################
# Specific Backend Directives for 'other':
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
#backend
#######################################################################
# Specific Directives for database #1, of type bdb:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database bdb
# The base of your directory in database #1
suffix "dc=flo-debian,dc=gescom"
# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl.
rootdn "cn=admin,dc=flo-debian,dc=gescom"
rootpw gescom
# Where the database file are physically stored for database #1
directory "/var/lib/ldap"
# The dbconfig settings are used to generate a DB_CONFIG file the first
# time slapd starts. They do NOT override existing an existing DB_CONFIG
# file. You should therefore change these settings in DB_CONFIG directly
# or remove DB_CONFIG and restart slapd for changes to take effect.
# For the Debian package we use 2MB as default but be sure to update this
# value if you have plenty of RAM
dbconfig set_cachesize 0 2097152 0
# Sven Hartge reported that he had to set this value incredibly high
# to get slapd running at all. See http://bugs.debian.org/303057 for more
# information.
# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500
# Indexing options for database #1
index objectClass eq
index cn,sn pres,eq,sub,subany
# Save the time that the entry gets modified, for database #1
lastmod on
# Checkpoint the BerkeleyDB database periodically in case of system
# failure and to speed slapd shutdown.
checkpoint 512 30
# Where to store the replica logs for database #1
# replogfile /var/lib/ldap/replog
# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
# These access lines apply to database #1 only
access to attrs=userPassword,shadowLastChange
by dn="cn=admin,dc=flo-debian,dc=gescom" write
by anonymous auth
by self write
by * none
# Ensure read access to the base for things like
# supportedSASLMechanisms. Without this you may
# have problems with SASL not knowing what
# mechanisms are available and the like.
# Note that this is covered by the 'access to *'
# ACL below too but if you change that as people
# are wont to do you'll still need this if you
# want SASL (and possible other things) to work
# happily.
access to dn.base="" by * read
# The admin dn has full write access, everyone else
# can read everything.
access to *
by dn="cn=admin,dc=flo-debian,dc=gescom" write
by * none
by * read
# For Netscape Roaming support, each user gets a roaming
# profile for which they have write access to
#access to dn=".*,ou=Roaming,o=morsnet"
# by dn="cn=admin,dc=flo-debian,dc=gescom" write
# by dnattr=owner write
#######################################################################
# Specific Directives for database #2, of type 'other' (can be bdb too):
# Database specific directives apply to this databasse until another
# 'database' directive occurs
#database
# The base of your directory for database #2
#suffix "dc=debian,dc=org"
- ldap.conf:
# LDAP Defaults
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
host localhost
base dc=flo-debian,dc=gescom
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
- dovecot.conf:
protocols = imap
auth default {
# Space separated list of wanted authentication mechanisms:
# plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
# NOTE: See also disable_plaintext_auth setting.
mechanisms = plain login
# LDAP database <doc/wiki/AuthDatabase.LDAP.txt>
passdb ldap {
# Path for LDAP configuration file
args = /etc/dovecot/dovecot-ldap.conf
}
userdb ldap {
# Path for LDAP configuration file
args = /etc/dovecot/dovecot-ldap.conf
}
user = root
master {
# Master socket provides access to userdb information. It's typically
# used to give Dovecot's local delivery agent access to userdb so it
# can find mailbox locations.
path = /var/run/dovecot/auth-master
#mode = 0600
# Default user/group is the one who started dovecot-auth (root)
user = vmail
group = mail
}
dovecot-ldap.conf:
#
# NOTE: If you're not using authentication binds, you'll need to give
# dovecot-auth read access to userPassword field in the LDAP server.
# With OpenLDAP this is done by modifying /etc/ldap/slapd.conf. There should
# already be something like this:
# access to attribute=userPassword
# by dn="<dovecot's dn>" read # add this
# by anonymous auth
# by self write
# by * none
# Space separated list of LDAP hosts to use. host:port is allowed too.
hosts = flo-debian.gescom
# LDAP URIs to use. You can use this instead of hosts list. Note that this
# setting isn't supported by all LDAP libraries.
#uris =
# Distinguished Name - the username used to login to the LDAP server
#dn = cn=test,ou=Users,dc=flo-debian,dc=gescom
# Password for LDAP server
#dnpass = test
# Use SASL binding instead of the simple binding. Note that this changes
# ldap_version automatically to be 3 if it's lower. Also note that SASL binds
# and auth_bind=yes don't work together.
#sasl_bind = no
# SASL mechanism name to use.
#sasl_mech =
# SASL realm to use.
#sasl_realm =
# SASL authorization ID, ie. the dnpass is for this "master user", but the
# dn is still the logged in user. Normally you want to keep this empty.
#sasl_authz_id =
# Use TLS to connect to the LDAP server.
#tls = no
# Use authentication binding for verifying password's validity. This works by
# logging into LDAP server using the username and password given by client.
# The pass_filter is used to find the DN for the user. Note that the pass_attrs
# is still used, only the password field is ignored in it. Before doing any
# search, the binding is switched back to the default DN.
auth_bind = yes
#
# If you use this setting, it's a good idea to use a different
# dovecot-ldap.conf for userdb (it can even be a symlink, just as long as the
# filename is different in userdb's args). That way one connection is used only
# for LDAP binds and another connection is used for user lookups. Otherwise
# the binding is changed to the default DN before each user lookup.
#
# For example:
# auth_bind_userdn = cn=%u,ou=people,o=org
#
#auth_bind_userdn =
# LDAP protocol version to use. Likely 2 or 3.
ldap_version = 3
# LDAP base. %variables can be used here.
base = dc=flo-debian, dc=gescom
# Dereference: never, searching, finding, always
deref = never
# Search scope: base, onelevel, subtree
scope = subtree
# User attributes are given in LDAP-name=dovecot-internal-name list. The
# internal names are:
# uid - System UID
# gid - System GID
# home - Home directory
# mail - Mail location
#
# There are also other special fields which can be returned, see
# http://wiki.dovecot.org/UserDatabase/ExtraFields
user_attrs = mailbox=home
# Filter for user lookup. Some variables can be used (see
# http://wiki.dovecot.org/Variables for full list):
# %u - username
# %n - user part in user@domain, same as %u if there's no domain
# %d - domain part in user@domain, empty if user there's no domain
user_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
# Password checking attributes:
# user: Virtual user name (user@domain), if you wish to change the
# user-given username to something else
# password: Password, may optionally start with {type}, eg. {crypt}
# There are also other special fields which can be returned, see
# http://wiki.dovecot.org/PasswordDatabase/ExtraFields
pass_attrs = mail=user,userPassword=password
# If you wish to avoid two LDAP lookups (passdb + userdb), you can use
# userdb prefetch instead of userdb ldap in dovecot.conf. In that case you'll
# also have to include user_attrs in pass_attrs field prefixed with "userdb_"
# string. For example:
#pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
# Filter for password lookups
pass_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
# Default password scheme. "{scheme}" before password overrides this.
# List of supported schemes is in: http://wiki.dovecot.org/Authentication
#default_pass_scheme = CRYPT
# You can use same UID and GID for all user accounts if you really want to.
# If the UID/GID is still found from LDAP reply, it overrides these values.
user_global_uid = vmail
user_global_gid = mail
Pour info, je ne cherche pas a mettre en place, dans un 1er temps en tout cas, de sécurité ssl ou autres.
Voila pour les fichiers et sinon merci pour l'info telnet :)
Ben merci bien pour le lien mais c'est le tuto que j'utilise justement pour la configuration du serveur et il me semble que j'ai configurer ca comme indiqué mais toujours le meme problème :s
[^] # Re: Revoir les bases de l'admin postfix
Posté par xillion . En réponse au message Multi Domaines Postfix. Évalué à 2.
[^] # Re: à la main / lvm
Posté par xillion . En réponse au message Debian point de montage. Évalué à 1.
# Resolut
Posté par xillion . En réponse au message Gmail Postfix. Évalué à 1.
En effet la config de postfix était mauvais et j'ai ajouter comme conseillé dans le domain et destionation de postifix bizbuz.eu
Ebsuite pour la personne sous ubuntu la promiere chose a avoir c'est une nom de domaine sur internet. Si tu n'as pas de non de domaines sur internet ca ne fonctionnera pas .
Bien a vous
[^] # Re: heu...
Posté par xillion . En réponse au message Dovecot et postfix serveur distant. Évalué à 1.
Mar 18 13:29:30 smtp postfix/master[1855]: terminating on signal 15
Mar 18 13:29:31 smtp postfix/master[2361]: daemon started -- version 2.5.5, configuration /etc/postfix
Mar 18 13:30:00 smtp postfix/master[2361]: terminating on signal 15
Mar 18 13:30:01 smtp postfix/master[2459]: daemon started -- version 2.5.5, configuration /etc/postfix
Mar 18 13:30:17 smtp postfix/smtpd[2467]: connect from unknown[192.168.2.7]
Mar 18 13:30:17 smtp postfix/smtpd[2467]: 8912254170: client=unknown[192.168.2.7]
Mar 18 13:30:17 smtp postfix/cleanup[2471]: 8912254170: message-id=<4BA21CC0.4020101@network.local>
Mar 18 13:30:17 smtp postfix/qmgr[2462]: 8912254170: from=<titi@network.local>, size=578, nrcpt=1 (queue active)
Mar 18 13:30:17 smtp postfix/smtpd[2467]: disconnect from unknown[192.168.2.7]
Mar 18 13:30:17 smtp postfix/smtp[2472]: 8912254170: to=<tutu@network.local>, relay=none, delay=0.16, delays=0.1/0.04/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=network.local type=A: Host not found)
Mar 18 13:30:17 smtp postfix/cleanup[2471]: A762D54172: message-id=<20100318123017.A762D54172@smtp.network.local>
Mar 18 13:30:17 smtp postfix/qmgr[2462]: A762D54172: from=<>, size=2484, nrcpt=1 (queue active)
Mar 18 13:30:17 smtp postfix/bounce[2473]: 8912254170: sender non-delivery notification: A762D54172
Mar 18 13:30:17 smtp postfix/qmgr[2462]: 8912254170: removed
Mar 18 13:30:17 smtp postfix/smtp[2472]: A762D54172: to=<titi@network.local>, relay=none, delay=0.05, delays=0.03/0.01/0.01/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=network.local type=A: Host not found)
Mar 18 13:30:17 smtp postfix/qmgr[2462]: A762D54172: removed
Je comprend bien que c'est en rapport avec mon domain (je n'ai pas de DNS en place) mais je ne sais pas ce que je dois modifier pour résoudre la problème
[^] # Re: heu...
Posté par xillion . En réponse au message Dovecot et postfix serveur distant. Évalué à 1.
[^] # Re: Virtual domain / local domain
Posté par xillion . En réponse au message Postifx sender non-delivery. Évalué à 1.
postmap -q flo-debian.gescom ldap:/etc/postfix/ldap-domains.cf
Lorsque je la tape dans le terminal:
flo-debian:/var/log# postmap -q flo-debian.gescom ldap:/etc/postfix/ldap-domains.cf
flo-debian:/var/log#
Si je tape la commande pour un user:
flo-debian:/var/log# postmap -q flo@flo-debian.gescom ldap:/etc/postfix/ldap-accounts.cf
maildir:/home/flo/Maildir/
Et pour finir j'ai remis mais fichier host et hostname comme au départ...
Et maintenant en telnet:
220 flo-debian.gescom ESMTP Postfix (Ubuntu)
mail from:
250 2.1.0 Ok
rcpt to:
550 5.1.1 : Recipient address rejected: User unknown in local recipient table
[^] # Re: Virtual domain / local domain
Posté par xillion . En réponse au message Postifx sender non-delivery. Évalué à 1.
[^] # Re: Config
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
- Ouverture du fichier inetorgperson.schema
- Ajout des lignes suivantes:
attributetype ( 2.16.840.1.113730.3.1.217 ==>+1 par rapport au dernier attribut
NAME 'mailbox'
DESC 'RFC2798:home mail box'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 ) ==>repis celui de l'attributs du dessus
ensuite ajout de l'attribut dans la calsse existante:
objectclass ( 2.16.840.1.113730.3.2.2
NAME 'inetOrgPerson'
DESC 'RFC2798: Internet Organizational Person'
SUP organizationalPerson
STRUCTURAL
MUST mailbox
MAY ( ......))
Une fois fait je delete le user dupont et le créé de nouveau avec mailbox en plus. Résultat il accepte mon champs mailbox mais je dois y mettre une valeur binaire. Comprend pas. Pour vérifier la création de dupont je regarde dans phpldapadmin et pour le nouveau champs j'ai un bouton parcourir :s
[^] # Re: Config
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
Pour le numéro c'est moi qui l'ai ajouté et je n'ai fait qu'ajouter un a l'objectclass qui se trouvais au dessus du schéma mail.schéma que j'ai acquis avec le plugin MMC...
Suivant ton conseil j'ai rétiré tout modif de ma part dans les schémas ...
# Config
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
Pour le posix j'ai bien la création de "ou" posix mais je n'ai pas de posixAccount. J'ai bien un Courier Mail Account mais a chaque fois que je remplis les champs, j'ai le message d'erreur suivant:
0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Jme doute bien que j'ai mal renseigné un attribut mais je tape ce qu'il me semble logique et je sais pas vraiment quoi mettre d'autre.
Sinon je vais être franc, IANA jamais entendu parlé ...
Une dernier chose aussi c'est que grace a l objectClass que j'ai ajouter je peux choisir le RDN sur attributs que je veux ce qui me permet d'avoir un dn du type:
mail=test@flo-debian.gescom,ou=Users,dc=flo-debian,dc=gescom
Et ceci, si je comprend comment ca fonctionne, me permet de trouver mon user avec le filtre mis en place dans dovecot-ldap
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
Error number: 0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Description: You tried to perform an operation that would cause an undefined attribute to exist or that would remove a required attribute, given the current list of ObjectClasses. This can also occur if you do not specify a structural objectClass when creating an entry, or if you specify more than one structural objectClass.
Pour le schéma je l'ai définit comme suite dans mail.schéma:
objectclass ( 1.3.6.1.4.1.40098.1.2.13.4
NAME 'CompteMail'
DESC 'Mail Account'
SUP top
AUXILIARY
MUST (
mail $ sn $ cn $ userPassword
)
MAY (
mailbox
)
)
As tu une idée de ou peut venir le soucis ?
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
Si on augement le -d 1024 ou 2048 le résultat est le meme :s
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
Flo-Debian:/home/florian# slapd -d 256
@(#) $OpenLDAP: slapd 2.4.11 (Nov 26 2009 09:17:06) $
root@SD6-Casa:/tmp/buildd/openldap-2.4.11/debian/build/servers/slapd
/etc/ldap/slapd.conf: line 104: rootdn is always granted unlimited privileges.
/etc/ldap/slapd.conf: line 122: rootdn is always granted unlimited privileges.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
Sinon jme demandais si ca ne viendrais pas de la ligne:
devocet.conf:
pass_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
Si j'ai bien compris je vais faire un filtre sur mes compte mail avec l'objet MaillAcount ?
Donc est ce que la requête ne poserait pas problème ?
[^] # Re: Configuration ?
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.
[^] # Re: Un petit lien
Posté par xillion . En réponse au message Installation Dovecot Postfix. Évalué à 1.