I have been trying to get a dovecot/postfix server up an running to serve e-mail for my start up business, and I too have fallen victim to poorly written, outdated guides.
At first I installed Postfix and Dovecot, and selected an empty configuration thinking I'd configure it all myself. At a certain point I lost track of what I was actually doing and what I had configured, so I decided to apt-purge
all the packages I had installed and start over.
After trying to install dovecot using sudo apt-get install dovecot-imapd
, I'm running into the following error:
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/425 kB of archives.
After this operation, 565 kB of additional disk space will be used.
Selecting previously unselected package dovecot-imapd.
(Reading database ... 23009 files and directories currently installed.)
Unpacking dovecot-imapd (from .../dovecot-imapd_1%3a2.1.7-7_amd64.deb) ...
Setting up dovecot-imapd (1:2.1.7-7) ...
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)
When I dir
/etc/
, I can't see a dovecot folder, and if I create it manually using mkdir
and chmod it to 777, I still get the error that 20-imap.conf doesn't exist and that it cannot create a regular file.
I'm out of ideas here and would greatly appreciate any help you guys can give me!
Thanks!