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

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Problème de configuration de postfix

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Problème de configuration de postfix

n°1138947
Nico5779
Posté le 29-05-2009 à 10:16:55  profilanswer
 

Bonjour,
 
J'essaye de configurer postfix et courier-imap avec des domaines virtuels (et authentification avec userdb).
Au niveau du stmp, tout va bien, les mails arrive et sont stocker dans les bonnes maildir,
 
Mais au niveau de pop3/imap, l'authentifaction passe dans problème mais il bloque au niveau du téléchargement des mail.
 
Voila le message d'erreur :
 

Code :
  1. telnet ns28402.ovh.net 110
  2. Trying 91.121.94.7...
  3. Connected to ns28402.ovh.net.
  4. Escape character is '^]'.
  5. +OK Hello there.
  6. USER test@ns28402.ovh.net
  7. +OK Password required.
  8. PASS test
  9. +OK logged in.
  10. RETR 1
  11. -ERR Can't open the message file - it's gone!
  12. LIST
  13. +OK POP3 clients that break here, they violate STD53.
  14. 1 0
  15. .


 
Avez vous une idée d'ou je dois commencer a chercher?
Merci d'avance

mood
Publicité
Posté le 29-05-2009 à 10:16:55  profilanswer
 

n°1138952
o'gure
Modérateur
Multi grognon de B_L
Posté le 29-05-2009 à 10:27:13  profilanswer
 

Ce n'est donc pas un problème de postfix, mais un problème du daemon pop3 ou imap.
 
Là en l'occurence du te connecte sur le port POP.
 
Tu utilises quoi pour faire du POP3 et de l'IMAP ?


---------------
Relax. Take a deep breath !
n°1138954
Nico5779
Posté le 29-05-2009 à 10:29:31  profilanswer
 

courier-imap?

n°1138956
o'gure
Modérateur
Multi grognon de B_L
Posté le 29-05-2009 à 10:31:38  profilanswer
 

Nico5779 a écrit :

courier-imap?


C'est une question ?
=> Vérifie donc si la configuration de courier-imap est cohérente avec la conf de postfix.


---------------
Relax. Take a deep breath !
n°1138964
Nico5779
Posté le 29-05-2009 à 10:58:35  profilanswer
 

Citation :

C'est une question ?


 
Non, c'est juste que j'etais pas sur que c'etait la réponse que t'attendais  :)  
 

Citation :

=> Vérifie donc si la configuration de courier-imap est cohérente avec la conf de postfix.


 
Justement c'est la que je me perd.
 
Tout m'a l'air en ordre, qd je fais un RETR le message passe bien du dossier new vers cur, mais j'obtiens qd même ce message.
 
voici mon fichier de config de pop3d :
 


##VERSION: $Id: pop3d.dist.in,v 1.16 2005/07/05 12:42:51 mrsam Exp $
#
# pop3d created from pop3d.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
#  Copyright 1998 - 2004 Double Precision, Inc.  See COPYING for
#  distribution information.
#
#  Courier POP3 daemon configuration
#
##NAME: PIDFILE:0
#
 
PIDFILE=/var/run/pop3d.pid
 
##NAME: MAXDAEMONS:0
#
#  Maximum number of POP3 servers started
#
 
MAXDAEMONS=40
 
##NAME: MAXPERIP:4
#
#  Maximum number of connections to accept from the same IP address
 
MAXPERIP=4
 
##NAME: POP3AUTH:1
#
# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
# variable:
#
# POP3AUTH="LOGIN"
#
# If you have configured the CRAM-MD5, CRAM-SHA1 or CRAM-SHA256, set POP3AUTH
# to something like this:
#
POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"
 
#POP3AUTH=""
 
##NAME: POP3AUTH_ORIG:1
#
# For use by webadmin
 
POP3AUTH_ORIG="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"
 
##NAME: POP3AUTH_TLS:1
#
# To also advertise SASL PLAIN if SSL is enabled, uncomment the
# POP3AUTH_TLS environment variable:
#
# POP3AUTH_TLS="LOGIN PLAIN"
 
POP3AUTH_TLS=""
 
##NAME: POP3AUTH_TLS_ORIG:0
#
# For use by webadmin
 
POP3AUTH_TLS_ORIG="LOGIN PLAIN"
 
##NAME: POP3_PROXY:0
#
# Enable proxying.  See README.proxy
 
POP3_PROXY=0
 
##NAME: PROXY_HOSTNAME:0
#
# Override value from gethostname() when checking if a proxy connection is
# required.
 
# PROXY_HOSTNAME=
 
##NAME: PORT:1
#
# Port to listen on for connections.  The default is port 110.
#
#  Multiple port numbers can be separated by commas.  When multiple port
#  numbers are used it is possibly to select a specific IP address for a
#  given port as "ip.port".  For example, "127.0.0.1.900,192.68.0.1.900"
#  accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
#  The ADDRESS setting is a default for ports that do not have a specified
#  IP address.
 
PORT=110
 
##NAME: ADDRESS:0
#
# IP address to listen on.  0 means all IP addresses.
 
ADDRESS=0
 
##NAME: TCPDOPTS:0
#
# Other couriertcpd(1) options.  The following defaults should be fine.
#
 
TCPDOPTS="-nodnslookup -noidentlookup"
 
##NAME: LOGGEROPTS:0
#
# courierlogger(1) options.
#
 
LOGGEROPTS="-name=pop3d"
 
##NAME: DEFDOMAIN:0
#
# Optional default domain. If the username does not contain the
# first character of DEFDOMAIN, then it is appended to the username.
# If DEFDOMAIN and DOMAINSEP are both set, then DEFDOMAIN is appended
# only if the username does not contain any character from DOMAINSEP.
# You can set different default domains based on the the interface IP
# address using the -access and -accesslocal options of couriertcpd(1).
 
#DEFDOMAIN="@example.com"
 
##NAME: POP3DSTART:0
#
# POP3DSTART is not referenced anywhere in the standard Courier programs
# or scripts.  Rather, this is a convenient flag to be read by your system
# startup script in /etc/rc.d, like this:
#
#  . /etc/courier/pop3d
#  case x$POP3DSTART in
#  x[yY]*)
#        /usr/courier/libexec/pop3d.rc start
#        ;;
#  esac
#
# The default setting is going to be NO, until Courier is shipped by default
# with enough platforms so that people get annoyed with having to flip it to
# YES every time.
 
POP3DSTART=YES
 
##NAME: MAILDIRPATH:0
#
# MAILDIRPATH - directory name of the maildir directory.
#
MAILDIRPATH=/var/mail/vhosts
 
 


 

n°1138969
ipnoz
Sapé comme jamais !
Posté le 29-05-2009 à 11:12:59  profilanswer
 

Regarde les log de postfix et courier lors d'une tentative de connection
 
tail -n 20 /var/log/syslog

n°1138970
Nico5779
Posté le 29-05-2009 à 11:20:00  profilanswer
 


May 29 11:16:03 ns28402 pop3d: Connection, ip=[:ffff:81.241.52.135]
May 29 11:16:03 ns28402 authdaemond: received auth request, service=pop3, authtype=login
May 29 11:16:03 ns28402 authdaemond: authuserdb: trying this module
May 29 11:16:03 ns28402 authdaemond: userdb: opened /usr/local/etc/authlib/userdb.dat
May 29 11:16:03 ns28402 authdaemond: userdb: looking up 'test@ns28402.ovh.net'
May 29 11:16:03 ns28402 authdaemond: userdb: home=/var/mail/vhosts/ns28402.ovh.net/test, uid=5000, gid=5000, shell=<unset>, mail=/var/mail/vhosts/ns28402.ovh.net/test, quota=<unset>, gecos=<unset>, options=<unset>
May 29 11:16:03 ns28402 authdaemond: found systempw in userdbshadow
May 29 11:16:03 ns28402 authdaemond: authuserdb: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/mail/vhosts/ns28402.ovh.net/test, address=test@ns28402.ovh.net, fullname=<null>, maildir=/var/mail/vhosts/ns28402.ovh.net/test, quota=<null>, options=<null>
May 29 11:16:03 ns28402 authdaemond: authuserdb: clearpasswd=<null>, passwd=$1$lxa73CPm$j853zNkW2/4B9AMuHxpmK.
May 29 11:16:03 ns28402 authdaemond: password matches successfully
May 29 11:16:03 ns28402 authdaemond: Authenticated: sysusername=<null>, sysuserid=5000, sysgroupid=5000, homedir=/var/mail/vhosts/ns28402.ovh.net/test, address=test@ns28402.ovh.net, fullname=<null>, maildir=/var/mail/vhosts/ns28402.ovh.net/test, quota=<null>, options=<null>
May 29 11:16:03 ns28402 authdaemond: Authenticated: clearpasswd=******, passwd=$1$lxa73CPm$j853zNkW2/4B9AMuHxpmK.
May 29 11:16:03 ns28402 pop3d: LOGIN, user=test@ns28402.ovh.net, ip=[:ffff:81.241.52.135], port=[1786]
May 29 11:16:03 ns28402 pop3d: LOGOUT, user=test@ns28402.ovh.net, ip=[:ffff:81.241.52.135], port=[1786], top=0, retr=0, rcvd=26, sent=149, time=0


 
Voila, tout m'a l'air ok :/
 

n°1138971
ipnoz
Sapé comme jamais !
Posté le 29-05-2009 à 11:28:51  profilanswer
 

Hmm, bon deja authdaemond trouve le home de test dans /var/mail/vhosts/ns28402.ovh.net alors que dans ta conf pop3d ta :
 
MAILDIRPATH=/var/mail/vhosts  
 
rajoutes-y ns28402.ovh.net pour voir.
 
Apres /var/mail/vhosts/ns28402.ovh.net/test c'est quoi ? la mailbox? ou un maildir :
 
# ls -alh /var/mail/vhosts/ns28402.ovh.net/test  
stp .

n°1138985
Nico5779
Posté le 29-05-2009 à 12:05:31  profilanswer
 

Merci, ipnoz, tes manip mon permis de voir qu'en fait lorsque le mail arrive dans la maildir n'avais pas les bon uid et gid,
j'ai juste adapter le main.cf et tout roule impec  :bounce:  
 
Comme d'hab, le détail qui tue...
 
Merci à vous deux pour votre aide  :)

n°1216725
Nico5779
Posté le 08-05-2010 à 16:14:08  profilanswer
 

Je suis retomber sur mon post en faisant une recherche pour le même problème 1 après, alors en prévision pour le prochain serveur, les uid et gid des utilisateurs vmail doit être a 5000.
Vous n'avez rien vu, circulez...


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Problème de configuration de postfix

 

Sujets relatifs
Problème avec GVIM et l'UNICODEProblème de transfert sFTP/SSH entre 2 Ubuntu
configuration de modem huawei smartax mt810 usb sur unbuntu 9.04Problème IP Forward FreeBSD
problème de configuration postfix: serveur secondaire (:cry: inside)[RESOLU] [POSTFIX] probleme de configuration
[POSTFIX] Probleme de ConfigurationProbléme de configuration Postfix + ldap + maildrop
postfix/mysql probleme de configuration[Postfix] Problème de configuration... FIXED
Plus de sujets relatifs à : Problème de configuration de postfix


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR