[RÉSOLU]Démon imap

Je suis sous debian 2.6.8 , mon serveur de mail est ok ( pop et smtp) mais impossible d’installer le démon imap…

quelqu’un a une idée? merci

[quote=“bob786”]impossible d’installer le démon imap[/quote]Quel est le message d’erreur? Quelle manip as tu fait pour l’installer?

salut Ashgenesis,

deja j’ai installé le module imapd sous webmin (car avec ma debian je bosse sous webmin), kan je clike sur ce module voila le message d’erreur:

Dans la configuration du module il cherche a configurer 2 fichiers mais ce ci ne sont pas présent dans ma debian, voici les 2 fichier:

/etc/idmapd.conf (Fichier de configuration d’idmapd) et /usr/sbin/rpc.idmapd (Chemin du démon rpc.idmapd)

bon, as tu installé ton module webmin dans webmin ?
parceque je ne vois pas de module de gestion de l’imap dans les modules webmin debian.
Donc ce n’est pas parceque tu as installé le module webmin pour gèrer le service que tu as forcément installé le service.
qu’as tu installé comme service pop ? courier-pop ?
il faudrait juste installer le paquet debian correspondant en imap. courier-imap ?

Oui j’ai deja installé courier-imap, courier-imap-ssl, courier-authdaemon, j’ai aussi essayé avec uw-imapd, squierrelmail,…
je regarde sur le net les doc pour installer le serveur imap mais il n’y a jamas de doc avec qmail et imap, ou si il yen a une mais sa marche pas! sa me soule trop la, j’ai envie de passer a un autre MTA mais mon entreprise refuse… je suis vraiment coincé… :angry: :confused: :cry:

j’ai trouvé le meilleure tutau qu’il existe pour le serveur de mail ( http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php ) mais je comprend pas car après avoir fait sa, je n’arrive toujours pas a me connecter à mon serveur imap, son adresse est sencé être 192.168.0.210:143, je voulais savoir s’il était possible de modifier cette adresse :question:

Bon, là, tu dis que tu as testé 200 trucs, du coup on ne sait plus du tout ou tu en es.
Pour qu’on puisse t’aider, recommences au début:
quel paquet imap précisément utilises tu ?
Comment l’as tu configuré lors de l’installation?
Qu’y a t il dans les fichiers de configuration?
Que disent les messages d’erreur (dans /var/log, en cherchant ce qui est pertinent) ?
Quel outil utilises tu pour tester ta relève imap ?
Que dit il de son coté quand ça plante ?
Soit plus riche que “à l’aide”, et tu auras peut être des réponses…

Salu, désolé si je suis pas assez explicite…c’est parce que sa va faire plus de 2 semaines que j’arrive pas à lancé ce foutu serveur imap, bref…

en fait je fais exactement comme la documentation suivante: http://sylvestre.ledru.info/howto/howto_qmail_vpopmail.php, tout se compile très bien mais comme par hazard quand je lance mon qmail “/etc/init.d/qmail start”, il n’y a aucun message disant que qmail a démarré, et effectivement il ne demarre pas: message dans var/log:

May 29 12:01:57 debian authdaemond.plain: modules="authpam", daemons=5 May 29 12:02:04 debian qmail: 1148896924.551286 alert: cannot start: unable to read controls May 29 12:03:42 debian qmail: 1148897022.652686 alert: cannot start: unable to read controls May 29 12:03:47 debian qmail: 1148897027.820858 alert: cannot start: unable to read controls May 29 12:04:22 debian imaplogin: Connection, ip=[::ffff:192.168.0.210] May 29 12:04:27 debian imaplogin: LOGIN FAILED, ip=[::ffff:192.168.0.210] May 29 12:04:37 debian last message repeated 2 times May 29 12:04:37 debian imaplogin: LOGOUT, ip=[::ffff:192.168.0.210]
et comme vous pouvez le constater, impossible aussi de joindre le serveur imap (courier-imap-3.0.8.tar.bz2)

je teste mon serveur imap en essayant de me connecter dessus via outlook, voici le message d’erreur: “une connexion au serveur n’a pas pu etre établie, 192.168.0.210 est maintenant en mode hors connexion”

et voici les messages d’erreur quand je clique sur “envoyer/recevoir” sous outlook:

Désolé, mais là, je n’avais pas vu que tu utilisais un tuto “tout compilé à la main”, et je ne vais pas pouvoir t’aider plus longtemps. On ne peux pas savoir, vu la complexité du tuto que tu as suivi, à quel endroit tu as pu te planter (quel droit tu aurais oublié, quel fichier tu aurais oublié de créer, etc). Quand on choisit d’installer sauvagement comme ça, on est tout seul :wink: . En plus, contrairement à ce que tu dis, ce tuto est super mal fait, sans explication de ce qui est fait, et sans point de controle en cours de route pour détecter les erreurs et les corriger au fur et à mesure.

Tout ce que je peux te dire, c’est que tu as deux problêmes distincts:

  • qmail qui ne démarre pas. Peut être parcequ’il lui manque des droits pour accèder à/créer un pipe ?
  • courrier imap, qui n’est peut être simplement pas accessible autrement que le 127.0.0.1. AMA, ce n’est pas la peine de s’attaquer à ce pb tant que le premier n’est pas résolu.
    Quoi qu’il en soit, sans les fichiers de configuration des différents softs, ont peut pas diagnostiquer grand chose.

Pourquoi n’as tu pas utilisé des paquets debian ?

En fait j’utilise les “apt-get” pour les install, si tu as un bon site pour les paquets debian je prends :smiley: , sinon moi je les télécharge souvent d’ici:
http://packages.debian.org/stable/

Mon serveur qmail tourne c’est OK, il me manque toujours la connexion au serveur imap, n’y a t-il pas un moyen d’intégrer le démon imap dans un module de qmail :question:
mon démon imap tourne aussi mais à mon avis il manque le lien entre qmail et imap , enfin je pense que c’est sa le problème :confused:

Est ce que quelq’un a deja mis en place un serveur de mail ?
Si oui, quel MTA avez-vous choisi?
votre imap fonctionne-t-il?

Cela m’étonnerais que quelqu’un ici n’a jamais mis e place un serveur de mail imap? (qui marche biensur :laughing: )

Je crois que tu confonds le MDA (mail delivery agent, comme pop ou imap) qui distribue au MUA (mail user agent, comme outlook), avec le MTA (mail transfert agent, comme qmail), qui lui s’occupe avec ses homologues MTAs d’acheminer le mail depuis un MUA distant vers ton MDA.
Personnellement, j’ai installé plusieurs solutions d’imap différentes, jamais vraiment simplement.
En fait, je ne connais pas qmail (j’utilise plutot postfix), donc je ne sais pas comment il interagit avec courier-imap.
D’autant plus que tu n’as pas dit ce que tu utilisais finalement comme configuration sur ton courier-imap. :wink:

Salu,
tu veux dire quoi par “la configuration de mon courier-imap”?
(au fait merci pour l’info sur les MUA, MDA et MTA,je savais mais je m’y emmèle tout le temps les pinceaux!)

ben chez moi, c’est /etc/courier/imapd

Salut, oui moi aussi c’est dans /etc/courier/imapd

J’ai remarque un truk quand j’essai d’établir une connexion en telnet:
-> “telnet 192.168.0.210 25”: la connexion est établie et je peux envoyer du courier, c’est a dire le test du service SMTP est ok.
-> “telnet 192.168.0.210 110”: message d’erreur:

Trying 192.168.0.210... telnet: Unable to connect to remote host: Connection refused
Donc le service POP3 ne fonctionne pas.
-> j’ai un message d’erreur avec un “telnet 192.168.0.210 143”:

Trying 192.168.0.210... Connected to 192.168.0.210. Escape character is '^]'. Connection closed by foreign host.
donc le service imap ne fonctionne pas non plus…

Voici mon imapd : (j’ai deja modifié l’“ADDRESS” à mon ip pas c’est toujours pareil…

[quote]##VERSION: $Id: imapd.dist.in,v 1.29 2004/04/18 15:54:39 mrsam Exp $

imapd created from imapd.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.

This configuration file sets various options for the Courier-IMAP server

when used with the couriertcpd server.

A lot of the stuff here is documented in the manual page for couriertcpd.

NOTE - do not use \ to split long variable contents on multiple lines.

This will break the default imapd.rc script, which parses this file.

##NAME: ADDRESS:0

Address to listen on, can be set to a single IP address.

ADDRESS=127.0.0.1

ADDRESS=0

##NAME: PORT:1

Port numbers that connections are accepted on. The default is 143,

the standard IMAP port.

Multiple port numbers can be separated by commas. When multiple port

numbers are used it is possible 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 previous ADDRESS setting is a default for ports that do not have

a specified IP address.

PORT=143

##NAME: AUTHSERVICE:0

It’s possible to authenticate using a different ‘service’ parameter

depending on the connection’s port. This only works with authentication

modules that use the ‘service’ parameter, such as PAM. Example:

AUTHSERVICE143=imap

AUTHSERVICE993=imaps

##NAME: MAXDAEMONS:0

Maximum number of IMAP servers started

MAXDAEMONS=40

##NAME: MAXPERIP:0

Maximum number of connections to accept from the same IP address

MAXPERIP=20

##NAME: PIDFILE:0

File where couriertcpd will save its process ID

PIDFILE=/var/run/courier/imapd.pid

##NAME: TCPDOPTS:0

Miscellaneous couriertcpd options that shouldn’t be changed.

TCPDOPTS="-nodnslookup -noidentlookup"

##NAME: AUTHMODULES:0

Authentication modules. Here’s the default list:

authdaemon

The default is set during the initial configuration.

If this is currently set to AUTHMODULES=“authdaemon”, DO NOT CHANGE IT.

Instead, change the parameter authmodulelist in authdaemonrc.

AUTHMODULES=“authvchkpw”

##NAME: AUTHMODULES_ORIG:0

For use by webadmin

AUTHMODULES_ORIG=“authvchkpw”

##NAME: DEBUG_LOGIN:0

Dump additional login diagnostics to syslog

DEBUG_LOGIN=0 - turn off login debugging

DEBUG_LOGIN=1 - turn on login debugging

DEBUG_LOGIN=2 - turn on login debugging + log passwords too

Note that most information is sent to syslog at level ‘debug’, so

you may need to modify your /etc/syslog.conf to be able to see it.

DEBUG_LOGIN=0

##NAME: IMAP_CAPABILITY:1

IMAP_CAPABILITY specifies what most of the response should be to the

CAPABILITY command.

If you have properly configured Courier to use CRAM-MD5 or CRAM-SHA1

authentication (see INSTALL), set IMAP_CAPABILITY as follows:

IMAP_CAPABILITY=“IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE”

IMAP_CAPABILITY=“IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE”

##NAME: KEYWORDS_CAPABILITY:0

IMAP_KEYWORDS=1 enables custom IMAP keywords. Set this option to 0 to

disable custom keywords.

IMAP_KEYWORDS=1

##NAME: SMAP1_CAPABILITY:0

EXPERIMENTAL

To enable the experimental “Simple Mail Access Protocol” extensions,

uncomment the following setting.

SMAP_CAPABILITY=SMAP1

##NAME: IMAP_CAPABILITY_ORIG:1

For use by webadmin

IMAP_CAPABILITY_ORIG=“IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE”

##NAME: IMAP_IDLE_TIMEOUT:0

This setting controls how often

the server polls for changes to the folder, in IDLE mode (in seconds).

IMAP_IDLE_TIMEOUT=60

##NAME: IMAP_CAPABILITY_TLS:0

The following setting will advertise SASL PLAIN authentication after

STARTTLS is established. If you want to allow SASL PLAIN authentication

with or without TLS then just comment this out, and add AUTH=PLAIN to

IMAP_CAPABILITY

IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"

##NAME: IMAP_TLS_ORIG:0

For use by webadmin

IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"

##NAME: IMAP_DISABLETHREADSORT:0

Set IMAP_DISABLETHREADSORT to disable the THREAD and SORT commands -

server side sorting and threading.

Those capabilities will still be advertised, but the server will reject

them. Set this option if you want to disable all the extra load from

server-side threading and sorting. Not advertising those capabilities

will simply result in the clients reading the entire folder, and sorting

it on the client side. That will still put some load on the server.

advertising these capabilities, but rejecting the commands, will stop this

silliness.

IMAP_DISABLETHREADSORT=0

##NAME: IMAP_CHECK_ALL_FOLDERS:0

Set IMAP_CHECK_ALL_FOLDERS to 1 if you want the server to check for new

mail in every folder. Not all IMAP clients use the IMAP’s new mail

indicator, but some do. Normally new mail is checked only in INBOX,

because it is a comparatively time consuming operation, and it would be

a complete waste of time unless mail filters are used to deliver

mail directly to folders.

When IMAP clients are used which support new mail indication, and when

mail filters are used to sort incoming mail into folders, setting

IMAP_CHECK_ALL_FOLDERS to 1 will allow IMAP clients to announce new

mail in folders. Note that this will result in slightly more load on the

server.

IMAP_CHECK_ALL_FOLDERS=0

##NAME: IMAP_OBSOLETE_CLIENT:0

Set IMAP_OBSOLETE_CLIENT if your IMAP client expects \NoInferiors to mean

what \HasNoChildren really means.

IMAP_OBSOLETE_CLIENT=0

##NAME: IMAP_ULIMITD:0

IMAP_ULIMITD sets the maximum size of the data segment of the server

process. The value of IMAP_ULIMITD is simply passed to the “ulimit -d”

command (or ulimit -v). The argument to ulimi sets the upper limit on the

size of the data segment of the server process, in kilobytes. The default

value of 65536 sets a very generous limit of 64 megabytes, which should

be more than plenty for anyone.

This feature is used as an additional safety check that should stop

any potential denial-of-service attacks that exploit any kind of

a memory leak to exhaust all the available memory on the server.

It is theoretically possible that obscenely huge folders will also

result in the server running out of memory when doing server-side

sorting (by my calculations you have to have at least 100,000 messages

in a single folder, for that to happen).

IMAP_ULIMITD=65536

##NAME: IMAP_USELOCKS:0

Setting IMAP_USELOCKS to 1 will use dot-locking to support concurrent

multiple access to the same folder. This incurs slight additional

overhead. Concurrent multiple access will still work without this setting,

however occasionally a minor race condition may result in an IMAP client

downloading the same message twice, or a keyword update will fail.

IMAP_USELOCKS=1 is strongly recommended when shared folders are used.

IMAP_USELOCKS=1

##NAME: IMAP_SHAREDINDEXFILE:0

The index of all accessible folders. Do not change this setting unless

you know what you’re doing. See README.sharedfolders for additional

information.

IMAP_SHAREDINDEXFILE=/etc/courier/shared/index

##NAME: IMAP_ENHANCEDIDLE:0

If Courier was compiled with the File Alteration Monitor, setting

IMAP_ENHANCEDIDLE to 1 enables enhanced IDLE mode, where multiple

clients may open the same folder concurrently, and receive updates to

folder contents in realtime. See the imapd(8) man page for additional

information.

IMPORTANT: IMAP_USELOCKS MUST also be set to 1, and IDLE must be included

in the IMAP_CAPABILITY list.

IMAP_ENHANCEDIDLE=0

##NAME: IMAP_TRASHFOLDERNAME:0

The name of the magic trash Folder. For MSOE compatibility,

you can set IMAP_TRASHFOLDERNAME=“Deleted Items”.

IMPORTANT: If you change this, you must also change IMAP_EMPTYTRASH

IMAP_TRASHFOLDERNAME=Trash

##NAME: IMAP_EMPTYTRASH:0

The following setting is optional, and causes messages from the given

folder to be automatically deleted after the given number of days.

IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default

setting, below, purges 7 day old messages from the Trash folder.

Another useful setting would be:

IMAP_EMPTYTRASH=Trash:7,Sent:30

This would also delete messages from the Sent folder (presumably copies

of sent mail) after 30 days. This is a global setting that is applied to

every mail account, and is probably useful in a controlled, corporate

environment.

Important: the purging is controlled by CTIME, not MTIME (the file time

as shown by ls). It is perfectly ordinary to see stuff in Trash that’s

a year old. That’s the file modification time, MTIME, that’s displayed.

This is generally when the message was originally delivered to this

mailbox. Purging is controlled by a different timestamp, CTIME, which is

changed when the file is moved to the Trash folder (and at other times too).

You might want to disable this setting in certain situations - it results

in a stat() of every file in each folder, at login and logout.

IMAP_EMPTYTRASH=Trash:7

##NAME: IMAP_MOVE_EXPUNGE_TO_TRASH:0

Set IMAP_MOVE_EXPUNGE_TO_TRASH to move expunged messages to Trash. This

effectively allows an undo of message deletion by fishing the deleted

mail from trash. Trash can be manually expunged as usually, and mail

will get automatically expunged from Trash according to IMAP_EMPTYTRASH.

NOTE: shared folders are still expunged as usual. Shared folders are

not affected.

IMAP_MOVE_EXPUNGE_TO_TRASH=0

##NAME: OUTBOX:0

The next set of options deal with the “Outbox” enhancement.

Uncomment the following setting to create a special folder, named

INBOX.Outbox

OUTBOX=.Outbox

##NAME: SENDMAIL:0

If OUTBOX is defined, mail can be sent via the IMAP connection by copying

a message to the INBOX.Outbox folder. For all practical matters,

INBOX.Outbox looks and behaves just like any other IMAP folder. If this

folder doesn’t exist it must be created by the IMAP mail client, just

like any other IMAP folder. The kicker: any message copied or moved to

this folder is will be E-mailed by the Courier-IMAP server, by running

the SENDMAIL program. Therefore, messages copied or moved to this

folder must be well-formed RFC-2822 messages, with the recipient list

specified in the To:, Cc:, and Bcc: headers. Courier-IMAP relies on

SENDMAIL to read the recipient list from these headers (and delete the Bcc:

header) by running the command “$SENDMAIL -oi -t -f $SENDER”, with the

message piped on standard input. $SENDER will be the return address

of the message, which is set by the authentication module.

DO NOT MODIFY SENDMAIL, below, unless you know what you’re doing.

SENDMAIL=/usr/sbin/sendmail

##NAME: HEADERFROM:0

For administrative and oversight purposes, the return address, $SENDER

will also be saved in the X-IMAP-Sender mail header. This header gets

added to the sent E-mail (but it doesn’t get saved in the copy of the

message that’s saved in the folder)

WARNING - By enabling OUTBOX above, every IMAP mail client will receive

the magic OUTBOX treatment. Therefore advance LARTing is in order for

all of your lusers, until every one of them is aware of this. Otherwise if

OUTBOX is left at its default setting - a folder name that might be used

accidentally - some people may be in for a rude surprise. You can redefine

the name of the magic folder by changing OUTBOX, above. You should do that

and pick a less-obvious name. Perhaps brand it with your organizational

name ( OUTBOX=.WidgetsAndSonsOutbox )

HEADERFROM=X-IMAP-Sender

##NAME: IMAPDSTART:0

IMAPDSTART is not used directly. Rather, this is a convenient flag to

be read by your system startup script in /etc/rc.d, like this:

. /etc/courier/imapd

case x$IMAPDSTART in

x[yY]*)

/usr/lib/courier/imapd.rc start

;;

esac

The default setting is going to be NO, so you’ll have to manually flip

it to yes.

IMAPDSTART=YES

##NAME: MAILDIRPATH:0

MAILDIRPATH - directory name of the maildir directory.

MAILDIRPATH=Maildir[/quote]

Bon, il faut que tu voies plus clairement le cheminement du mail:
ton smtp, qui fait l’acheminement jusqu’à la machine ou le mail doit être livré, c’est le systeme qmail qui s’en occupe chez toi, et à priori il marche. Comme tu va le voir, tu va peut être devoir verifier la configuration (je ne sais pas ou elle est, je n’ai pas qmail, sans doutes du coté de /etc/qmail, ou /usr/local/etc/qmail, suivant comment tu l’as installé).
quand ton qmail décide que le mail qu’on lui demande d’acheminer n’est pas a envoyer à l’exterieur, il le passe à un “dropper”, genre procmail ou maildrop. Ca, il faut le déterminer dans la config de qmail.
le dropper décide ensuite suivant sa config de quelle manière il sert le mail: typiquement, c’est en mbox (un fichier unique par boite dans /var/spool/mail), ou en maildir (une arborescence de fichier, dans le repertoire de chaque user réel, ou éventuellement dans une arborescence à part pour les répertoires virtuels).

Maintenant, pop et imap de leur coté, ne s’occupent pas de l’acheminement du mail, mais permettent la consultation des boites.
Il faudrait déjà savoir, (avec ‘ps aux’ par exemple), si tes processus courier tournent bien. S’ils ne tournent pas, et c’est pour ça que j’ai precisé la notion de drop, ça peut être parceque le dropper sert les mails en mbox (ton imap regarde en maildir, lui).
Ensuite, savoir s’il ecoutent et où. Ca doit pouvoir se faire avec un ‘netstat -aide’, ou quelquechose comme ça (je crois qu’il y a un trucs et astuces sur netstat).

sinon, tu as essayé de mettre ADDRESS en commentaire, ou d’y preciser le lo plus les eth sur lesquelles tu ecoutes ?

salut,
j’ai fait se que tu m’a dit Matt et j’en ai eu marre car sa marchait toujours pas… :angry:
Du coup je suis passé à un truk beaucoup plus simple: exim4+cyrus-imapd :laughing:
Bref tout allait bien jusqu’à ce que j’ai le souci suivant:
Dans mon module imap admin sous webmin il me donne le message d’erreur suivant:

J’ai donc pensé à créer des boîtes avec "#maildirmake maildir"
Mais j’ai toujours cette erreur…
comment faire pour créer une mailbox :question:

ah ouais, mais non, moi j’etais avec difficulté monté en croupe, tu changes de cheval en route, alors maintenant, je ne te suis plus: demerdes toi :wink: .

salut,
pour information je bosse sur des machines virtuels (VMware station), donc en fait j’ai plusieur machines virtuelles de sauvegardées!!

Donc Matt ne me lâche pas! :laughing:

Oui je bosse en parallèle sur la configuration de qmail+imap mais aussi sur la configuration de exim4+cyrus :slightly_smiling:

Continuez à m’aider sil vous plait!! merci!!!