Bonjour à tous,
Je suis en train d’installer un serveur mail postfix/dovecot sur un sheevaplug en auto-hébergement.
La partie DNS fonctionne bien avec Bind9.
Je précise tout de suite que tout tourne en (GNU/Linux) Debian testing car c’est le seul moyen que j’aie trouvé pour faire fonctionner debian+sheevaplug sur une clé USB de 32 Go. Tout en libre vrms is proud
root@debian:~# uname -a
Linux debian 3.2.0-4-kirkwood #1 Debian 3.2.32-1 armv5tel GNU/Linux
Voici ce qui m’amène à vous:
Après une première installation, postfix et dovecot-imapd fonctionnaient bien en local mais pas vers l’exterieur…
En novice que je suis, j’ai écumé les forums et ait fini par trouver la solution, le smtp à débloquer de ma freebox.
Mais le mal était déjà fait, à force de modifications dans les fichiers de conf issues de divers tutos adaptés à ma sauce (de Squeeze vers Wheezy), ça plantait.
Peu importait pensais-je, un petit apt-get --purge autoremove postfix dovecot-imap et une ré-installation et tout irait pour le mieux…
Sauf que entre temps, mes vieux réflexes du temps où j’étais encore windowsien me firent lancer un irréparable rm -rf /etc/postfix /etc/dovecot juste après la désinstallation histoire de…
Histoire d’imbécile oui, postfix se réinstalle sans souci, en revanche concernant dovecot, j’obtiens:
[code]root@debian:~# apt-get install dovecot-imapd
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
dovecot-imapd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/413 kB of archives.
After this operation, 568 kB of additional disk space will be used.
Selecting previously unselected package dovecot-imapd.
(Reading database … 23755 files and directories currently installed.)
Unpacking dovecot-imapd (from …/dovecot-imapd_1%3a2.1.7-2_armel.deb) …
Setting up dovecot-imapd (1:2.1.7-2) …
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
cp: cannot create regular file `/etc/dovecot/conf.d/20-imap.conf’: No such file or directory
dpkg: error processing dovecot-imapd (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
dovecot-imapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:~#[/code]
dpkg --configure -a et dpkg-reconfigure me revoient le même genre d’erreur:
[code]root@debian:~# dpkg --configure -a
Setting up dovecot-imapd (1:2.1.7-2) …
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
cp: cannot create regular file `/etc/dovecot/conf.d/20-imap.conf’: No such file or directory
dpkg: error processing dovecot-imapd (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
dovecot-imapd
root@debian:~# dpkg-reconfigure dovecot-imapd
/usr/sbin/dpkg-reconfigure: dovecot-imapd is broken or not fully installed
root@debian:~# [/code]
Mon dovecot-imapd semble cassé, je suis bien embêté et ne sais que faire, si vous pouvez me dépanner…
Merci d’avance.