FMCB
By:
FMCB

getting errors when installing Postfix, Courier, MySQL And SquirrelMail

January 9, 2014 7k views
hi mates, I get weird error when I try to follow the tutorial in here: http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-debian-wheezy Basically, I'm trying to setup mail server using these tools : Postfix, Courier, MySQL And SquirrelMail on my Debain 7 web server. when I follow the first instructions, I get into these errors after entering these commands: apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl phpmyadmin apache2 libapache2-mod-php5 php5 php5-mysql libpam-smbpass This is the error where I can't continue: (Reading database ... 31002 files and directories currently installed.) Removing dovecot-imapd ... [....] Starting IMAP/POP3 mail server: dovecotFatal: service(imap) access(/usr/lib/dovecot/imap) failed: No such file or directory failed! invoke-rc.d: initscript dovecot, action "start" failed. dpkg: error processing dovecot-imapd (--remove): subprocess installed post-removal script returned error exit status 1 Removing dovecot-pop3d ... [....] Starting IMAP/POP3 mail server: dovecotFatal: service(imap) access(/usr/lib/dovecot/imap) failed: No such file or directory failed! invoke-rc.d: initscript dovecot, action "start" failed. dpkg: error processing dovecot-pop3d (--remove): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: dovecot-imapd dovecot-pop3d E: Sub-process /usr/bin/dpkg returned an error code (1) And as I understand that there are some issues with dovecot-pop3d and dovecot-imapd any idea what to do with this?? Thanks,
2 Answers
I get the same issue when I try to install dovcot with the following:

# sudo apt-get install dovecot-lmtpd

also I get the same issue when trying to install phpmyadmin

any idea how to solve this issue??
I found the solution. I had to remove the SSL lines from dovcot/dovcot.conf and that did solve the problem.

however, new issues showed up such as below:

Starting IMAP/POP3 mail server: dovecotFatal: service(pop3) access(/usr/lib/dovecot/pop3) failed: No such file or directory
failed!
-------------------------------

I could solve this one by creating the required files when the issue kept persisting:

created:

/usr/lib/dovecot/pop3
/usr/lib/dovecot/pop3-login
/usr/lib/dovecot/imap
/usr/lib/dovecot/imap-login

after all things started working.

Thanks,
Have another answer? Share your knowledge.