Page 1 of 1

Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Tue Jul 28, 2015 12:37 pm
by suassive
I did a completely new installation of VestaCP twice now, the first time I installed it I got the same error(s) I have been having
I tried fixing it by removing Exim + Dovecot and re-installing those packages.
I still get the same exact errors which are these
Image
As you can see it's grayed out because the services aren't running but that's one of the error(s) as I did the new installation again (reimaging my VPS and installing Vesta) the services don't start by default. So before to start the services, I did

Code: Select all

apt-get remove exim4-*
apt-get purge exim4-*
apt-get remove dovecot-*
apt-get purge dovecot-*
apt-get autoremove
apt-get install exim4
apt-get install dovecot
They install fine, and the services then start just fine, but for some reason Exim keeps shutting down on it's own.
Then roundcube gives me the error "Connection to storage server failed"
Image
I am confused as to what's going wrong exactly. I'm assuming it could be the configuration files? but I'm not sure. Any help would be much appreciated. Thank you

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Tue Jul 28, 2015 12:58 pm
by tjebbeke
Which server OS do you use? You've already looked at the log files? There you might find what is going wrong.

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Tue Jul 28, 2015 1:44 pm
by suassive
tjebbeke wrote:Which server OS do you use? You've already looked at the log files? There you might find what is going wrong.
Sorry I forgot to mention that, I use Ubuntu 14.04
and no I haven't looked into those yet...not sure how really.

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Tue Jul 28, 2015 1:58 pm
by skurudo
What's in logs? When you restart services in console, what error you get?

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Tue Jul 28, 2015 2:48 pm
by suassive
skurudo wrote:What's in logs? When you restart services in console, what error you get?
I can't seem to find the Exim4 logs, the only one that is showing is the Dovecot log

Code: Select all

Jul 28 07:42:38 master: Fatal: Failed to start listeners
Jul 28 07:42:38 master: Error: socket() failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: socket() failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: socket() failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: socket() failed: Address family not supported by protocol
Jul 28 07:42:38 master: Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol
Jul 28 07:42:38 master: Fatal: Failed to start listeners
Edit: I believe I've found the error log

Code: Select all

2015-07-28 07:46:23 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (7 more tries)
2015-07-28 07:46:35 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (1 more try)
2015-07-28 07:46:53 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (6 more tries)
2015-07-28 07:47:05 socket bind() to port 25 for address (any IPv4) failed: Address already in use: daemon abandoned
2015-07-28 07:47:23 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (5 more tries)
2015-07-28 07:47:53 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (4 more tries)
2015-07-28 07:48:23 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (3 more tries)
2015-07-28 07:48:53 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (2 more tries)
2015-07-28 07:49:23 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (1 more try)
2015-07-28 07:49:53 socket bind() to port 25 for address (any IPv4) failed: Address already in use: daemon abandoned

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Wed Jul 29, 2015 2:17 pm
by skurudo
Address already in use: daemon abandoned

Ta da ;-)
You get in.
Let's see, what service at 25 port:

Code: Select all

netstat -tulpn | grep :25
and you can try something like this:

Code: Select all

killall exim
service exim start

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Thu Jul 30, 2015 12:28 pm
by suassive
skurudo wrote:Address already in use: daemon abandoned

Ta da ;-)
You get in.
Let's see, what service at 25 port:

Code: Select all

netstat -tulpn | grep :25
and you can try something like this:

Code: Select all

killall exim
service exim start
Haha, I managed to fix it before this comment :P
I just need to configure it to my server now, which I'm having problems with because I'm not receiving any emails from my domain but im sure I'll figure it out
Thanks for your help @skurudo

Re: Mail-Roundcube-Exim-Dovecot issue(s)

Posted: Thu Jul 30, 2015 2:50 pm
by skurudo
suassive wrote:Haha, I managed to fix it before this comment :P
Nice! ;-)
suassive wrote:I just need to configure it to my server now, which I'm having problems with because I'm not receiving any emails from my domain but im sure I'll figure it out
Logs will help and on forum, I sure too ;-)