Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 12/04/2008, à 07:34

sylvain1970

[résolu] petit pb postfix (installation presque finalisée)

Bonjour,
j'ai installé un serveur mail en suivant ce tuto.
il me me reste qu'un petit problème à régler, mais je ne trouve pas la solution, à savoir qu'un mail arrivant appartient à root mail et non à l'utilisateur, donc thunderbird ne l'indique pas dans la boîte mail de l'utilisateur.
si je change en indiquant l'appartenance du mail à l'utilisateur, il apparaît de suite dans thunderbird.
(je ne suis pas sûr d'être très clair alors je quote)

root@ubuntu64-server:/home/sylvain/Maildir/new# ls -l
total 4
-rw------- 1 root mail 1212 2008-04-12 07:27 1207978060.26204_1.ubuntu64-server
root@ubuntu64-server:/home/sylvain/Maildir/new#

çà ne marche pas.
si je change le propriétaire du fichier en sylvain sylvain, çà marche tout de suite dans thunderbird.

comment faire pour que le propriétaire du fichier soit l'utilisateur et non root mail ?
ou aurais-je loupé un truc ?
merci de votre aide.

Dernière modification par sylvain1970 (Le 12/04/2008, à 14:25)

Hors ligne

#2 Le 12/04/2008, à 07:54

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

Bonjour ;

Tu emploi quel agent de livraison ?

Si c'est procmail (c'est le cas dans le cadre du tuto sus-visé en référence), il me semble qu'il faut que tu ajoute :

DROPPRIVS=yes

dans le fichier de configuration global de procmail (le créer s'il n'existe pas).

De cette façon, les messages sont enregistrés avec les privilèges de l'utilisateur de destination au lieu de ceux de l'utilisateur root.

Dernière modification par M. DECLERCQ (Le 12/04/2008, à 08:43)


Cordialement ;

Hors ligne

#3 Le 12/04/2008, à 08:37

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

Merci beaucoup, çà marche.

Hors ligne

#4 Le 12/04/2008, à 09:02

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

Heu, c'est ok pour le propriétaire du mail.
Mais, maintenant, impossible de me connecter sur le serveur mail (avec thunderbird):
la connexion a été rejetée !
je ne comprends pas pourquoi.
merci.

Hors ligne

#5 Le 12/04/2008, à 09:08

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

sylvain1970 a écrit :

Heu, c'est ok pour le propriétaire du mail.
Mais, maintenant, impossible de me connecter sur le serveur mail (avec thunderbird):
la connexion a été rejetée !
je ne comprends pas pourquoi.
merci.

Tu veux dire quoi au juste ?

Tu n'arrive plus à lister tes nouveaux messages ou tu n'arrive simplement plus à envoyer de  message ?

Dernière modification par M. DECLERCQ (Le 12/04/2008, à 09:12)


Cordialement ;

Hors ligne

#6 Le 12/04/2008, à 09:12

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

je n'arrive plus à les lister
(login/pass sont ok)

Hors ligne

#7 Le 12/04/2008, à 09:15

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

sylvain1970 a écrit :

je n'arrive plus à les lister
(login/pass sont ok)

Ok, dans ce cas, ouvre une deuxième console et tape ceci :

tail -f /var/log/mail.log

Ensuite, essai de te connecter à imap via thunder... et reporte ce qui s'affiche sur la console.

On est bien d'accord que tu ouvre thunder... sous le compte de l'utilisateur pour lequel tu veux lister le courrier.

Ps : Je vais en ville boire un café, je te répondrai en rentrant.

Dernière modification par M. DECLERCQ (Le 12/04/2008, à 09:17)


Cordialement ;

Hors ligne

#8 Le 12/04/2008, à 11:12

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

Merci de ton aide.
dsl du retard (rdv chez le coiffeur pour mon fils).
tail -f .... :

sylvain@ubuntu64-server:~$ tail -f /var/log/mail.log
Apr 12 10:06:46 ubuntu64-server postfix/cleanup[6308]: A43E4AB068: message-id=<20080412080646.A43E4AB068@mail.sylvain-martin.net>
Apr 12 10:06:46 ubuntu64-server postfix/qmgr[6267]: A43E4AB068: from=<root@sylvain-martin.net>, size=528, nrcpt=1 (queue active)
Apr 12 10:06:46 ubuntu64-server postfix/pickup[6266]: D5A3CAB067: uid=0 from=<root>
Apr 12 10:06:46 ubuntu64-server postfix/cleanup[6308]: D5A3CAB067: message-id=<20080412080646.D5A3CAB067@mail.sylvain-martin.net>
Apr 12 10:06:47 ubuntu64-server postfix/qmgr[6267]: D5A3CAB067: from=<root@sylvain-martin.net>, size=452, nrcpt=1 (queue active)
Apr 12 10:06:51 ubuntu64-server postfix/local[6329]: A43E4AB068: to=<AAAAAA@sylvain-martin.net>, orig_to=<root>, relay=local, delay=5.3, delays=1/0.1/0/4.2, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN)
Apr 12 10:06:51 ubuntu64-server postfix/qmgr[6267]: A43E4AB068: removed
Apr 12 10:06:51 ubuntu64-server postfix/local[6356]: D5A3CAB067: to=<AAAAAA@sylvain-martin.net>, orig_to=<root>, relay=local, delay=164, delays=160/0/0/4.1, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN)
Apr 12 10:06:51 ubuntu64-server postfix/qmgr[6267]: D5A3CAB067: removed
Apr 12 10:06:56 ubuntu64-server postfix/master[6265]: reload configuration /etc/postfix
Apr 12 10:14:14 ubuntu64-server postfix/master[6265]: terminating on signal 15
Apr 12 10:14:14 ubuntu64-server postfix/master[7531]: daemon started -- version 2.4.5, configuration /etc/postfix
Apr 12 10:15:52 ubuntu64-server postfix/smtpd[7592]: connect from wmproxy1-g27.free.fr[212.27.42.91]
Apr 12 10:15:52 ubuntu64-server postfix/smtpd[7592]: A547AAB066: client=wmproxy1-g27.free.fr[212.27.42.91]
Apr 12 10:15:52 ubuntu64-server postfix/cleanup[7596]: A547AAB066: message-id=<1207988152.48006fb8ad68e@imp.free.fr>
Apr 12 10:15:52 ubuntu64-server postfix/smtpd[7592]: disconnect from wmproxy1-g27.free.fr[212.27.42.91]
Apr 12 10:15:52 ubuntu64-server postfix/qmgr[7536]: A547AAB066: from=<xxxxxxx@free.fr>, size=1125, nrcpt=1 (queue active)
Apr 12 10:15:52 ubuntu64-server postfix/local[7597]: A547AAB066: to=<sylvain@sylvain-martin.net>, relay=local, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN)
Apr 12 10:15:52 ubuntu64-server postfix/qmgr[7536]: A547AAB066: removed
Apr 12 10:16:28 ubuntu64-server postfix/pickup[7535]: 602ABAB067: uid=1001 from=<sylvain>
Apr 12 10:16:28 ubuntu64-server postfix/cleanup[7596]: 602ABAB067: message-id=<20080412081628.602ABAB067@mail.sylvain-martin.net>
Apr 12 10:16:28 ubuntu64-server postfix/qmgr[7536]: 602ABAB067: from=<sylvain@sylvain-martin.net>, size=340, nrcpt=1 (queue active)
Apr 12 10:16:28 ubuntu64-server postfix/smtp[7627]: 602ABAB067: to=<xxxxxxxx@free.fr>, relay=smtp.free.fr[212.27.48.4]:25, delay=0.42, delays=0.03/0.01/0.26/0.12, dsn=2.0.0, status=sent (250 Ok: queued as 3949912B6BA)
Apr 12 10:16:28 ubuntu64-server postfix/qmgr[7536]: 602ABAB067: removed
Apr 12 10:19:12 ubuntu64-server postfix/anvil[7594]: statistics: max connection rate 1/60s for (smtp:212.27.42.91) at Apr 12 10:15:52
Apr 12 10:19:12 ubuntu64-server postfix/anvil[7594]: statistics: max connection count 1 for (smtp:212.27.42.91) at Apr 12 10:15:52
Apr 12 10:19:12 ubuntu64-server postfix/anvil[7594]: statistics: max cache size 1 at Apr 12 10:15:52

l'envoi et la réception de mail fonctionne (j'ai bien mon mail de test dans /home/sylvain/Maildir/new.
Mais thunderbird ne veut rien savoir, connexion serveur de mail refusée

Dernière modification par sylvain1970 (Le 12/04/2008, à 11:37)

Hors ligne

#9 Le 12/04/2008, à 12:29

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

Re ;

Malheureusement, tes logs m'aident pas beaucoup car je ne vois pas de tentative de connexion imap.

Qu'utilise tu exactement au niveau de l'authentification ? Courier Authentication (authdaemon) ?

Peux tu me reporter le résultat d'un px aux svp ?
Poste aussi ton /etc/postfix/main.cf

Merci


Cordialement ;

Hors ligne

#10 Le 12/04/2008, à 12:53

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

 ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   5116  1964 ?        Ss   11:47   0:01 /sbin/init
root         2  0.0  0.0      0     0 ?        S<   11:47   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   11:47   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        SN   11:47   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   11:47   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   11:47   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        SN   11:47   0:00 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S<   11:47   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S<   11:47   0:00 [events/0]
root        10  0.0  0.0      0     0 ?        S<   11:47   0:00 [events/1]
root        11  0.0  0.0      0     0 ?        S<   11:47   0:00 [khelper]
root        30  0.0  0.0      0     0 ?        S<   11:47   0:00 [kblockd/0]
root        31  0.0  0.0      0     0 ?        S<   11:47   0:00 [kblockd/1]
root        32  0.0  0.0      0     0 ?        S<   11:47   0:00 [kacpid]
root        33  0.0  0.0      0     0 ?        S<   11:47   0:00 [kacpi_notify]
root       186  0.0  0.0      0     0 ?        S<   11:47   0:00 [kseriod]
root       221  0.0  0.0      0     0 ?        S    11:47   0:00 [pdflush]
root       222  0.0  0.0      0     0 ?        S    11:47   0:00 [pdflush]
root       223  0.0  0.0      0     0 ?        S<   11:47   0:00 [kswapd0]
root       276  0.0  0.0      0     0 ?        S<   11:47   0:00 [aio/0]
root       277  0.0  0.0      0     0 ?        S<   11:47   0:00 [aio/1]
root      2192  0.0  0.0      0     0 ?        S<   11:47   0:00 [ata/0]
root      2193  0.0  0.0      0     0 ?        S<   11:47   0:00 [ata/1]
root      2194  0.0  0.0      0     0 ?        S<   11:47   0:00 [ata_aux]
root      2206  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_0]
root      2207  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_1]
root      2228  0.0  0.0      0     0 ?        S<   11:47   0:00 [ksuspend_usbd]
root      2229  0.0  0.0      0     0 ?        S<   11:47   0:00 [khubd]
root      2297  0.0  0.0      0     0 ?        S<   11:47   0:00 [khpsbpkt]
root      2361  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_2]
root      2362  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_3]
root      2381  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_4]
root      2382  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_5]
root      2467  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_6]
root      2468  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_7]
root      2564  0.0  0.0      0     0 ?        S<   11:47   0:00 [knodemgrd_0]
root      2635  0.0  0.0      0     0 ?        S<   11:47   0:00 [kjournald]
root      2730  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_8]
root      2731  0.0  0.0      0     0 ?        S<   11:47   0:00 [scsi_eh_9]
root      2840  0.0  0.0  20192  2024 ?        S<s  11:47   0:00 /sbin/udevd --d
root      3873  0.0  0.0      0     0 ?        S<   11:47   0:00 [kpsmoused]
root      4365  0.0  0.0      0     0 ?        S<   11:47   0:00 [kjournald]
root      4366  0.0  0.0      0     0 ?        S<   11:47   0:00 [kjournald]
root      4367  0.0  0.0      0     0 ?        S<   11:47   0:00 [kjournald]
root      4368  0.0  0.0      0     0 ?        S<   11:47   0:00 [kjournald]
root      4623  0.0  0.0   3824   572 tty4     Ss+  11:47   0:00 /sbin/getty 384
root      4624  0.0  0.0   3824   576 tty5     Ss+  11:47   0:00 /sbin/getty 384
root      4626  0.0  0.0   3828   576 tty2     Ss+  11:47   0:00 /sbin/getty 384
root      4629  0.0  0.0   3828   572 tty3     Ss+  11:47   0:00 /sbin/getty 384
root      4630  0.0  0.0   3828   576 tty1     Ss+  11:47   0:00 /sbin/getty 384
root      4631  0.0  0.0   3824   576 tty6     Ss+  11:47   0:00 /sbin/getty 384
root      4817  0.0  0.0  13032  1684 ?        Ss   11:47   0:00 /usr/sbin/acpid
root      4852  0.0  0.0      0     0 ?        S<   11:47   0:00 [kondemand/0]
root      4853  0.0  0.0      0     0 ?        S<   11:47   0:00 [kondemand/1]
syslog    4938  0.0  0.0  12252   728 ?        Ss   11:47   0:00 /sbin/syslogd -
root      4996  0.0  0.0   8084   576 ?        S    11:47   0:00 /bin/dd bs 1 if
klog      4998  0.0  0.0   5140  1848 ?        Ss   11:47   0:00 /sbin/klogd -P
103       5019  0.0  0.0  23712  1244 ?        Ss   11:47   0:00 /usr/bin/dbus-d
root      5035  0.0  0.1  54196  2148 ?        Ssl  11:47   0:00 /usr/sbin/Netwo
root      5049  0.0  0.0  21960  1348 ?        Ss   11:47   0:00 /usr/sbin/Netwo
root      5062  0.0  0.0  15620   876 ?        Ss   11:47   0:00 /usr/bin/system
root      5063  0.0  0.0  23448  1324 ?        S    11:47   0:00 dbus-daemon --s
107       5082  0.0  0.2  27076  4132 ?        Ss   11:47   0:00 /usr/sbin/hald
root      5083  0.0  0.0  15628  1132 ?        S    11:47   0:00 hald-runner
107       5131  0.0  0.0  16624   964 ?        S    11:47   0:00 hald-addon-keyb
107       5132  0.0  0.0  16620   952 ?        S    11:47   0:00 hald-addon-keyb
107       5133  0.0  0.0  16620   956 ?        S    11:47   0:00 hald-addon-keyb
107       5147  0.0  0.0  16616   944 ?        S    11:47   0:00 hald-addon-acpi
root      5160  0.0  0.0  48816  1084 ?        Ss   11:47   0:00 /usr/sbin/sshd
avahi     5199  0.0  0.0  29652  1424 ?        Ss   11:47   0:00 avahi-daemon: r
avahi     5200  0.0  0.0  29528   492 ?        Ss   11:47   0:00 avahi-daemon: c
root      5280  0.0  0.1  72192  2496 ?        Ss   11:47   0:00 /usr/sbin/cupsd
107       5452  0.0  0.0  23988  1304 ?        S    11:47   0:00 hald-addon-stor
clamav    5982  0.0  2.7  83924 57432 ?        Ss   11:47   0:01 /usr/sbin/clamd
clamav    6094  0.0  0.0  27844  1436 ?        Ss   11:47   0:00 /usr/bin/freshc
root      6112  0.0  0.0   6072   424 ?        S    11:47   0:00 /usr/sbin/couri
root      6113  0.0  0.0  18532   680 ?        S    11:47   0:00 /usr/lib/courie
root      6118  0.0  0.0  18532   248 ?        S    11:47   0:00 /usr/lib/courie
root      6119  0.0  0.0  18532   248 ?        S    11:47   0:00 /usr/lib/courie
root      6120  0.0  0.0  18532   248 ?        S    11:47   0:00 /usr/lib/courie
root      6121  0.0  0.0  18532   248 ?        S    11:47   0:00 /usr/lib/courie
root      6122  0.0  0.0  18532   248 ?        S    11:47   0:00 /usr/lib/courie
root      6164  0.0  0.3  37556  6400 ?        S    11:47   0:00 ddclient - slee
root      6379  0.0  0.0  53172   864 ?        Ss   11:47   0:00 /usr/sbin/sasla
root      6380  0.0  0.0  53172   596 ?        S    11:47   0:00 /usr/sbin/sasla
root      6381  0.0  0.0  53172   488 ?        S    11:47   0:00 /usr/sbin/sasla
root      6382  0.0  0.0  53172   488 ?        S    11:47   0:00 /usr/sbin/sasla
root      6383  0.0  0.0  53172   488 ?        S    11:47   0:00 /usr/sbin/sasla
root      6450  0.0  0.0  11928   712 ?        S    11:47   0:00 /usr/sbin/smart
root      6577  0.0  0.1  28252  2208 ?        Ssl  11:47   0:00 /usr/sbin/conso
root      6655  0.0  0.0   6228   924 ?        Ss   11:47   0:00 /usr/sbin/dhcdb
root      6674  0.0  0.0  11340  1244 ?        Ss   11:47   0:00 /usr/sbin/hcid
root      6686  0.0  0.0  11164  1024 ?        S    11:47   0:00 /usr/lib/blueto
root      6687  0.0  0.0  11244  1276 ?        S    11:47   0:00 /usr/lib/blueto
root      6692  0.0  0.0      0     0 ?        S<   11:47   0:00 [krfcommd]
root      6726  0.0  0.0 105152  1968 ?        Ss   11:47   0:00 /usr/sbin/gdm
root      6729  0.0  0.1 119940  3388 ?        S    11:47   0:00 /usr/sbin/gdm
root      6732  0.3  1.5 105352 31992 tty7     SLs+ 11:47   0:14 /usr/bin/X :0 -
root      6780  0.0  0.0  18968   732 ?        Ssl  11:47   0:00 /usr/bin/dns-fl
ntp       6807  0.0  0.0  27432  1372 ?        Ss   11:47   0:00 /usr/sbin/ntpd
daemon    6842  0.0  0.0  16396   432 ?        Ss   11:47   0:00 /usr/sbin/atd
root      6856  0.0  0.0  20900   932 ?        Ss   11:47   0:00 /usr/sbin/cron
dhcp      6884  0.0  0.0  15064  1412 ?        S    11:47   0:00 /sbin/dhclient
root      6890  0.0  0.4 195992  9724 ?        Ss   11:47   0:00 /usr/sbin/apach
root      6950  0.0  0.2  83416  5764 ?        Sl   11:47   0:00 /usr/bin/python
www-data  6987  0.0  0.2 195992  5788 ?        S    11:47   0:00 /usr/sbin/apach
www-data  6988  0.0  0.2 195992  5928 ?        S    11:47   0:00 /usr/sbin/apach
www-data  6989  0.0  0.2 195992  5796 ?        S    11:47   0:00 /usr/sbin/apach
www-data  6990  0.0  0.2 195992  5788 ?        S    11:47   0:00 /usr/sbin/apach
www-data  6991  0.0  0.2 195992  5796 ?        S    11:47   0:00 /usr/sbin/apach
root      7009  0.0  1.5 105352 31992 tty7     SL+  11:47   0:00 /usr/bin/X :0 -
www-data  7148  0.0  0.5 203500 12232 ?        S    11:48   0:00 /usr/sbin/apach
sylvain   7154  0.0  0.0  46568  1952 ?        SL   11:49   0:00 /usr/bin/gnome-
sylvain   7157  0.0  0.4 184508  9056 ?        Ssl  11:49   0:00 x-session-manag
sylvain   7195  0.0  0.0  33548   628 ?        Ss   11:49   0:00 /usr/bin/ssh-ag
sylvain   7197  0.0  0.2  39660  5880 ?        S    11:49   0:00 /usr/lib/libgco
sylvain   7201  0.0  0.0  23572  1084 ?        Ss   11:49   0:00 dbus-daemon --f
sylvain   7203  0.0  0.6 223124 13060 ?        Sl   11:49   0:00 /usr/lib/gnome-
sylvain   7209  0.0  0.5 117412 12344 ?        S    11:49   0:00 /usr/bin/metaci
sylvain   7212  0.0  1.1 293460 22968 ?        S    11:49   0:00 gnome-panel --s
sylvain   7215  0.0  0.9 327800 18784 ?        S    11:49   0:00 nautilus --no-d
sylvain   7222  0.0  0.2 178208  5716 ?        Ss   11:49   0:00 gnome-volume-ma
sylvain   7233  0.0  0.1 145808  3852 ?        Ssl  11:49   0:00 /usr/lib/bonobo
sylvain   7235  0.0  0.4 173984  8380 ?        S    11:49   0:00 vino-session --
sylvain   7237  0.0  0.1  85928  4084 ?        S    11:49   0:00 /usr/lib/gnome-
sylvain   7239  0.0  0.3 109780  6392 ?        S    11:49   0:00 bluetooth-apple
sylvain   7259  0.0  0.5 246220 11736 ?        Sl   11:49   0:00 /usr/lib/evolut
sylvain   7261  1.0  0.5  71308 11976 ?        SNl  11:49   0:39 trackerd
sylvain   7268  0.0  0.2 148132  5584 ?        Ss   11:49   0:00 gnome-screensav
sylvain   7270  0.0  0.6 204240 13776 ?        S    11:49   0:00 nm-applet --sm-
sylvain   7274  0.0  0.7 178148 16148 ?        S    11:49   0:00 python /usr/sha
sylvain   7276  0.0  0.4 214360  9108 ?        Ss   11:49   0:00 gnome-power-man
sylvain   7284  0.0  0.5 298264 10960 ?        S    11:49   0:00 /usr/lib/gnome-
sylvain   7286  0.0  0.0  15108   976 ?        S    11:49   0:00 /usr/lib/nautil
sylvain   7309  0.0  0.6 215416 14228 ?        S    11:49   0:00 /usr/lib/gnome-
sylvain   7312  0.0  0.4 184832  9632 ?        S    11:49   0:00 /usr/lib/gnome-
sylvain   7314  0.0  0.7 224896 15204 ?        Sl   11:49   0:00 /usr/lib/gnome-
sylvain   7317  0.0  2.0 399360 41272 ?        S    11:49   0:00 /usr/bin/python
sylvain   7322  0.0  0.0   3908   568 ?        S    11:49   0:00 /bin/sh /usr/bi
sylvain   7334  0.0  0.0   3908   588 ?        S    11:49   0:00 /bin/sh /usr/li
sylvain   7338  0.0  0.6 208892 13900 ?        S    11:49   0:00 /usr/lib/fast-u
sylvain   7340  0.2  3.1 544012 65148 ?        Sl   11:49   0:08 /usr/lib/firefo
sylvain   7388  0.0  1.3 275104 28408 ?        Sl   11:50   0:00 gnome-terminal
sylvain   7391  0.0  0.0  17156   808 ?        S    11:50   0:00 gnome-pty-helpe
sylvain   7392  0.0  0.1  21008  3952 pts/0    Ss   11:50   0:00 bash
syladmin  7409  0.0  0.0  36812  1332 pts/0    S    11:50   0:00 su syladmin
syladmin  7410  0.0  0.2  21688  4544 pts/0    S    11:50   0:00 bash
root      8504  0.0  2.3 118872 48924 ?        Ss   11:55   0:00 /usr/sbin/spamd
root      8537  0.0  0.0   6072   360 ?        S    11:55   0:00 /usr/sbin/couri
root      8538  0.0  0.0   9248   652 ?        S    11:55   0:00 /usr/sbin/couri
root      8545  0.0  2.2 118872 47076 ?        S    11:55   0:00 spamd child
root      8546  0.0  2.2 118872 46992 ?        S    11:55   0:00 spamd child
root     10102  0.0  0.0  36604  2048 ?        Ss   12:09   0:00 /usr/lib/postfi
postfix  10106  0.0  0.0  38660  1992 ?        S    12:09   0:00 pickup -l -t fi
postfix  10107  0.0  0.0  38704  2032 ?        S    12:09   0:00 qmgr -l -t fifo
root     10316  0.0  0.0   3908   580 pts/0    S    12:14   0:00 /bin/sh /usr/bi
mysql    10353  0.0  1.0 161196 21960 pts/0    Sl   12:14   0:00 /usr/sbin/mysql
root     10354  0.0  0.0   5024   720 pts/0    S    12:14   0:00 logger -p daemo
www-data 10454  0.0  0.2 195992  5776 ?        S    12:25   0:00 /usr/sbin/apach
syladmin 10553  0.0  0.0  15024  1056 pts/0    R+   12:51   0:00 ps aux
 cat /etc/postfix/main.cf
[sudo] password for syladmin:
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix

myhostname = mail.sylvain-martin.net
mydomain = sylvain-martin.net
masquerade_domains = sylvain-martin.net
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
inet_interfaces = all
mynetworks = 192.168.0.0/24, 127.0.0.0/8
myorigin = /etc/mailname
relayhost = smtp.free.fr
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
setgid_group = postdrop
mail_owner = postfix
mailbox_size_limit = 0
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
#delay_warning_time = 4h
recipient_delimiter = +

et pour courier-authdeamon, je ne sais pas, mais il est installé.
Pour info, un collègue est passé hier soir et à essayer ce tuto.c'est depuis çà je pense que vient le pb d'authentification.
Qu'en penses-tu ?
je ne sais pas quoi toucher pour corriger. j'ai viré quelques trucs installés avec le tuto ce matin (genre base postfix, lien créés à un moment dans le tuto).
merci.

EDIT : j'ai enlevé postfix (avec l'option purge) et repris l'autre tuto (serveur imap) mais pas mieux, toujours l'erreur de connexion.

Dernière modification par sylvain1970 (Le 12/04/2008, à 13:00)

Hors ligne

#11 Le 12/04/2008, à 13:18

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

Re ;

Ok ;

A mon avis, le problème se situe au niveau de l'authentification imap. Normalement, avec courier-imap + courier authentification, cela doit fonctionner correctement sans aucune modification puisque par défaut, authdaemon emploi le module PAM. Commence par vérifier que dans le répertoire /etc/pam.d tu as bien un fichier nommé imap et que dans le fichier /etc/courier/imap/authdaemonrc tu as bien cette ligne :

authmodulelist="authpam"

Si ce n'est pas le cas, modifie la ligne et re-démarre les services.

Sinon, ce que je te conseille :

En premier lieu exécute la commande suivante :

$ sudo authtest sylvain

tu devrais obtenir ce genre de résultat :

authtest webadmin
Authentication succeeded.

     Authenticated: webadmin  (system username: webadmin)
    Home Directory: /home/webadmin
           Maildir: (none)
             Quota: (none)
Encrypted Password: $1$qNaTXlq0$I4fIm8dC/jwqFere5L5UE1
Cleartext Password: (none)
           Options: (none)

Si cela t'indique que l'authentification a échoué, tentes de re-démarrer authdaemon :

$ sudo /etc/init.d/courier-authdaemon restart

et refais le teste avec le programme authtest. Si tu n'obtiens pas le résultat escompté, suis la procédure suivantes :

1. Désinstallation de courier :

$ sudo apt-get remove --purge courier-imap \
courier-base courier-authlib courier-authdaemon

2. Réinstallation :

$ sudo apt-get install courier-imap courier-authlib courier-authdaemon

3. On s'assure que les services sont bien démarrés

$ sudo /etc/init.d/courier-imap start
$ sudo /etc/init.d/courier-authdaemon start

Ensuite, tu fait le teste avec le programme authtest. Si l'authentification s'effectue correctement et que malgrès cela, tu n'arrive toujours pas à lister tes messages via ton client, tu supprime le compte et tu le re-créer en entrant les paramètres SMTP (ceux de ton fai) et IMAP (ton serveur, le nom de ton user comme identifiant et son mdp). Si deux versions du protocole imap son proposée, fait une tentative avec chacune d'entre elles.

Une fois tout ceci fait, reviens ici nous faire un topo.

Edit : En ce qui concerne le deuxième tutorial que tu cite, ce dernier demande un minimum de connaissances. Il n'a rien à voir avec le premier et je pense en effet que tes problèmes proviennent de son application, notamment si tu as fait ceci  :

Courier (MTA: Pop3, IMAP)

Editez le fichier /etc/courier/authdaemonrc Cherchez la ligne authmodulelist="authpam" et remplacez par authmodulelist="authmysql"

Ici, IMAP emploi le module authmysql, or toi, tu dois employer le module authpam puisque tu travail avec des utilisateurs locaux et non virtuels dont les informations pour l'authentification se situent dans une base de données.

Pour info, en ce qui concerne ta remarque :

EDIT : j'ai enlevé postfix (avec l'option purge) et repris l'autre tuto (serveur imap) mais pas mieux, toujours l'erreur de connexion.

Ceci me laisse à penser que tu confonds  SMTP et IMAP. En gros, SMTP (donc postfix) te permet de relayer ton courier (envoyer du courier). Ton problème à toi, c'est pas l'envoi de courier, c'est la consultation du courier délivré dans la boîte aux lettre de ton utilisateur. C'est donc IMAP qui est en cause puisque c'est ce dernier qui te permet de consulter le courier.

Dernière modification par M. DECLERCQ (Le 12/04/2008, à 14:49)


Cordialement ;

Hors ligne

#12 Le 12/04/2008, à 14:03

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

alors,
authdeamonrc est dans /etc/courier/ et il y a bien authpam :

##VERSION: $Id: authdaemonrc.in,v 1.13 2005/10/05 00:07:32 mrsam Exp $
#
# Copyright 2000-2005 Double Precision, Inc.  See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication daemon.
#
# Comments in this file are ignored.  Although this file is intended to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited.  Multiline variable contents,
# with the \ continuation character, are not allowed.  Everything must
# fit on one line.  Do not use any additional whitespace for indentation,
# or anything else.

##NAME: authmodulelist:2
#
# The authentication modules that are linked into authdaemond.  The
# default list is installed.  You may selectively disable modules simply
# by removing them from the following list.  The available modules you
# can use are: authuserdb authpam authpgsql authldap authmysql authcustom authpipe

authmodulelist="authpam"

##NAME: authmodulelistorig:3
#
# This setting is used by Courier's webadmin module, and should be left
# alone

authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom authpipe"

##NAME: daemons:0
#
# The number of daemon processes that are started.  authdaemon is typically
# installed where authentication modules are relatively expensive: such
# as authldap, or authmysql, so it's better to have a number of them running.
# PLEASE NOTE:  Some platforms may experience a problem if there's more than
# one daemon.  Specifically, SystemV derived platforms that use TLI with
# socket emulation.  I'm suspicious of TLI's ability to handle multiple
# processes accepting connections on the same filesystem domain socket.
#
# You may need to increase daemons if as your system load increases.  Symptoms
# include sporadic authentication failures.  If you start getting
# authentication failures, increase daemons.  However, the default of 5
# SHOULD be sufficient.  Bumping up daemon count is only a short-term
# solution.  The permanent solution is to add more resources: RAM, faster
# disks, faster CPUs...

daemons=5

##NAME: authdaemonvar:2
#
# authdaemonvar is here, but is not used directly by authdaemond.  It's
# used by various configuration and build scripts, so don't touch it!

authdaemonvar=/var/run/courier/authdaemon

##NAME: DEBUG_LOGIN:0
#
# Dump additional diagnostics to syslog
#
# DEBUG_LOGIN=0   - turn off debugging
# DEBUG_LOGIN=1   - turn on debugging
# DEBUG_LOGIN=2   - turn on debugging + log passwords too
#
# ** YES ** - DEBUG_LOGIN=2 places passwords into syslog.
#
# 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: DEFAULTOPTIONS:0
#
# A comma-separated list of option=value pairs. Each option is applied
# to an account if the account does not have its own specific value for
# that option. So for example, you can set
#   DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
# and then enable webmail and/or imap on individual accounts by setting
# disablewebmail=0 and/or disableimap=0 on the account.

DEFAULTOPTIONS=""

##NAME: LOGGEROPTS:0
#
# courierlogger(1) options, e.g. to set syslog facility
#

LOGGEROPTS=""

##NAME: LDAP_TLS_OPTIONS:0
#
# Options documented in ldap.conf(5) can be set here, prefixed with 'LDAP'.
# Examples:
#
#LDAPTLS_CACERT=/path/to/cacert.pem
#LDAPTLS_REQCERT=demand
#LDAPTLS_CERT=/path/to/clientcert.pem
#LDAPTLS_KEY=/path/to/clientkey.pem

pour le test :

 sudo authtest sylvain
Authentication succeeded.

     Authenticated: sylvain  (system username: sylvain)
    Home Directory: /home/sylvain
           Maildir: (none)
             Quota: (none)
Encrypted Password: $1$7z5U5$GJAAjQ3uEU4oQk.b4/.XC.
Cleartext Password: (none)
           Options: (none)

donc test échoué.
çà marche pas avec un restart puis retest.

purge puis réinstallation, suppression du compte dans thunderbird, recréation et même problème (même résultat avec authtest sylvain).
merci de m'aider en tout cas.

Hors ligne

#13 Le 12/04/2008, à 14:05

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

ah oui, pour le fichier imap dans /etc/pam.d, il est bien là avec :

# PAM configuration file for Courier IMAP daemon

@include common-auth
@include common-account
@include common-password
@include common-session

il y a aussi les fichiers :

syladmin@ubuntu64-server:/etc/pam.d$ ls
atd             common-auth      cupsys  gdm-autologin      other   smtpd
chfn            common-password  cvs     gnome-screensaver  passwd  ssh
chsh            common-session   ftp     imap               ppp     su
common-account  cron             gdm     login              samba   sudo

si çà peut t'aider à m'aider

Hors ligne

#14 Le 12/04/2008, à 14:06

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

 sudo authtest sylvain
Authentication succeeded.

     Authenticated: sylvain  (system username: sylvain)
    Home Directory: /home/sylvain
           Maildir: (none)
             Quota: (none)
Encrypted Password: $1$7z5U5$GJAAjQ3uEU4oQk.b4/.XC.
Cleartext Password: (none)
           Options: (none)

Au secours yikes  ...Non, justement, ici, la sortie obtenue signifie que l'authentification n'a pas échouée ( Authentication succeeded).

Refais le teste (car tu as ré-installé le tout d'après ce que j'ai compris). Et ensuite, re-configure totalement ton client (thunderbite) tongue

Dernière modification par M. DECLERCQ (Le 12/04/2008, à 14:11)


Cordialement ;

Hors ligne

#15 Le 12/04/2008, à 14:20

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

ah ben gag, j'avais bien lu authentification succeeded, mais j'avais compris que ce n'était pas bon d'après ton exemple.
évidement, chez toi çà marche donc, mauvaise lecture pour ma pomme.
lol

donc, retest et succeeded !
bon çà c'est ok.

reste thunderbird...
(je re dire ce que çà donne).

Hors ligne

#16 Le 12/04/2008, à 14:24

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

Merci, merci, merci beaucoup big_smile
çà marche !
encore merci.

edit : dans /var/log/mail.log :

Apr 12 14:26:19 ubuntu64-server imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 12 14:26:19 ubuntu64-server imapd: LOGIN, user=sylvain, ip=[::ffff:127.0.0.1], protocol=IMAP

il y a bien imap

Dernière modification par sylvain1970 (Le 12/04/2008, à 14:27)

Hors ligne

#17 Le 12/04/2008, à 14:39

M. DECLERCQ

Re : [résolu] petit pb postfix (installation presque finalisée)

sylvain1970 a écrit :

Merci, merci, merci beaucoup big_smile
çà marche !
encore merci.

edit : dans /var/log/mail.log :

Apr 12 14:26:19 ubuntu64-server imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 12 14:26:19 ubuntu64-server imapd: LOGIN, user=sylvain, ip=[::ffff:127.0.0.1], protocol=IMAP

il y a bien imap

Re ;

De rien big_smile

Le problème était ?


Cordialement ;

Hors ligne

#18 Le 12/04/2008, à 16:08

sylvain1970

Re : [résolu] petit pb postfix (installation presque finalisée)

Le problème était ?

je n'en sais rien du tout (imap de fonctionnait visiblement pas).
thunderbird ne voulait rien savoir (je l'ai enlevé avec --purge puis remis histoire de et çà marche).
je pense un joyeux bazar dû à un autre tuto d'utiliser par mon collègue (serveur mail avec mysql).
mais tu m'a bien dépanné en tout cas, je n'y arrivais pas.
lorsque j'ai voulu tout virer (serveur mail), la liste des paquets pouvant être supprimés par aptitude était impressionnante, j'ai préféré (et de loin) venir poster ici mon problème.
En tout cas, merci encore.

Hors ligne