Dovecot uninstall

Leriss

Verified User
Joined
Nov 14, 2007
Messages
17
Hello,

How to completely remove dovecot ?
While installing it in the first place via DirectAdmin some packages were missing so it didn't install properly.
However even after installing them right after and rebuilding Dovecot it still doesn't want to work so I guess the only solution is to completely remove it and rebuild from scratch.
When starting/stopping/restarting there are no errors, however the service itself doesn't work.
OS: Debian 6 64bit ( By the way there are quite some issues with DirectAdmin on it, I'm wondering if it's normal ).
 
Last edited:
Thing is, there are no errors in the logs.
Restarting Dovecot doesn't give any errors, however it is Stopped in DirectAdmin and when I try to access Webmail I get Server Connection Error.

How to swiftly remove it manually ?
 
What exact errors are you having?

reinstall dovecot with:

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build dovecot d

Check your firewall to make sure it is not blocking port 143.

Make sure you have a line for localhost in /etc/hosts

Make sure there are no errors in /var/log/maillog or /var/log/mail.err or /var/log/mail.info
 
I tried the above but it didn't help.

This is how my /etc/hosts looks like:

Code:
127.0.0.1       localhost
127.0.1.1       host689.slaskdatacenter.com     host689

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
178.19.106.170          alpha.atlantiss.pl

/var/log/maillog doesn't exist.
/var/log/mail.err is empty.
/var/log/mail.info is empty.

In CSF firewall port 143 is allowed as TCP_IN and TCP_OUT

I installed DirectAdmin on a seperate server, preinstalling first the dependency that was needed for Dovecot to install properly before running the DirectAdmin installer, and it works fine.
Although I need to fix somehow this issue on Alpha server.
 
It didn't help with what?

What are you expecting?

/var/log/maillog will report logins through Dovecot if/when Dovecot is installed by DirectAdmin. I have no idea if it will use that log if installed by any other method.

/var/log/mail.err and /var/log/mail/info are not part of a standard DirectAdmin Dovecot or exim install. They don't exist for me either.

What's your question?

Jeff
 
My questions is, and was - What's the possible fix for this issue, there are no errors in the logs available in DirectAdmin log viewer regarding Dovecot, but it doesn't work.
 
Provide screenshots then to EXACTLY what isnt working.
 
Try running this as root:
Code:
/usr/sbin/dovecot -F
Assuming your dovecot binary in is /usr/bin. That will attempt to run dovecot in the foreground and any errors will be directed to the terminal you are logged in.

Paste any output to this forum.
 
Try running this as root:
Code:
/usr/sbin/dovecot -F
Assuming your dovecot binary in is /usr/bin. That will attempt to run dovecot in the foreground and any errors will be directed to the terminal you are logged in.

Paste any output to this forum.

I did that, but... Nothing appears, nothing happens, same as I would've restart/stop/start Dovecot - it gives zero messages, there is no output.
 
By nothing happens, what exactly do you mean? Did it come back to the prompt? If it did, that is 'something', it means that dovecot exited which is NOT what is supposed to happen. If that is the case (and I can't really tell by your reply), the next step I might do to help identify the problem is run the same command with strace in front of it to trace system calls to which one fails or even run it in the debugger (gdb) to see if it is exiting cleanly and if not where.
 
Back
Top