Page 1 of 2
Can not send/recieve Emails
Posted: Thu Nov 14, 2013 3:40 am
by jgriggs79
Hello,
I have installed the Vesta Web Control Panel and I have set up a domain with an email account, but when I try to send out email in Roundcube, I get the error: "Failed to Send Message" I am also unable to receive email into Roundcube. Can anyone help me troubleshoot/solve this?
Thanks
Juston
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 8:28 am
by skid
On a "Service" page you can check if exim is up and running.
Or check it with following command
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 5:01 pm
by jgriggs79
okay its not running:
Code: Select all
root@g3-services:~# v-list-sys-services
NAME STATE CPU MEM RTIME
------ ------ ------ ------ ------
nginx running 0 202 918
apache2 running 0 2371 918
bind9 running 0 0 918
exim4 stopped 0 0 0
dovecot running 0 21 918
mysql running 0 0 918
vsftpd running 0 24 918
cron running 0 19 920
root@g3-services:~#
I tried to start it via the panel but it will not start?
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 5:20 pm
by jgriggs79
tried to manually start it from command line...
Code: Select all
root@g3-services:/etc/init.d# exim4 start
2013-11-14 10:19:57 1Vh0PB-0001gd-1D Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=101 egid=103
2013-11-14 10:19:57 1Vh0PB-0001gd-1D Failed to create spool file /var/spool/exim4/input//1Vh0PB-0001gd-1D-D: Permission denied
2013-11-14 10:19:57 1Vh0PB-0001gd-1D Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=101 egid=103
exim: could not open panic log - aborting: see message(s) above
root@g3-services:/etc/init.d#
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 10:25 pm
by skid
try to create exim folder manually
Code: Select all
mkdir /var/log/exim4
chown Debian-exim:mail /var/log/exim4
and then restart exim again
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 10:28 pm
by jgriggs79
Tried that, but got this error:
Code: Select all
mkdir: cannot create directory `/var/log/exim4': File exists
but still attempted to start exim4 anyway, but still no go:
Code: Select all
2013-11-14 15:26:41 1Vh5N1-0005LB-4y Failed to create spool file /var/spool/exim4/input//1Vh5N1-0005LB-4y-D: Permission denied
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 10:35 pm
by skid
Have you upgraded exim or maybe changed configuration? Wondering why permissions has been changed.
Anyway it is something that can be easily fixed. Check ownership of /var/log/exim4 and /var/spool/exim4 directories. You can recursively set this with following command:
Code: Select all
chown -R Debian-exim:mail /var/log/exim4
chown -R Debian-exim:mail /var/spool/exim4
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 10:36 pm
by jgriggs79
no, this is a fresh server with a fresh install
Re: Can not send/recieve Emails
Posted: Thu Nov 14, 2013 10:53 pm
by jgriggs79
Still did not start
Re: Can not send/recieve Emails
Posted: Fri Nov 15, 2013 9:31 am
by skid
Ok, what OS do you use?
Here is how directory listing should look like on Ubuntu 12.04.3 LTS (precise)
root@adm:~# ls -all /var/log/exim4/
total 12
drwxr-s--- 2 Debian-exim adm 4096 Nov 15 09:27 .
drwxr-xr-x 16 root root 4096 Nov 15 09:27 ..
-rw-r----- 1 Debian-exim adm 700 Nov 15 09:28 mainlog
root@adm:~# ls -all /var/spool/exim4/
total 24
drwxr-x--- 5 Debian-exim Debian-exim 4096 Nov 15 09:27 .
drwxr-xr-x 6 root root 4096 Nov 15 09:25 ..
drwxr-x--- 2 Debian-exim Debian-exim 4096 Nov 15 09:28 db
-rw-r--r-- 1 root root 424 Jul 19 2008 gnutls-params
drwxr-x--- 2 Debian-exim Debian-exim 4096 Nov 15 09:28 input
drwxr-x--- 2 Debian-exim Debian-exim 4096 Nov 15 09:28 msglog