Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Can not send/recieve Emails

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
15 posts
  • 1
  • 2
  • Next
jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Can not send/recieve Emails
  • Quote

Post by jgriggs79 » Thu Nov 14, 2013 3:40 am

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
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Can not send/recieve Emails
  • Quote

Post by skid » Thu Nov 14, 2013 8:28 am

On a "Service" page you can check if exim is up and running.
Or check it with following command

Code: Select all

v-list-sys-services
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: Can not send/recieve Emails
  • Quote

Post by jgriggs79 » Thu Nov 14, 2013 5:01 pm

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?
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: Can not send/recieve Emails
  • Quote

Post by jgriggs79 » Thu Nov 14, 2013 5:20 pm

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#
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Can not send/recieve Emails
  • Quote

Post by skid » Thu Nov 14, 2013 10:25 pm

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
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: Can not send/recieve Emails
  • Quote

Post by jgriggs79 » Thu Nov 14, 2013 10:28 pm

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
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Can not send/recieve Emails
  • Quote

Post by skid » Thu Nov 14, 2013 10:35 pm

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
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: Can not send/recieve Emails
  • Quote

Post by jgriggs79 » Thu Nov 14, 2013 10:36 pm

no, this is a fresh server with a fresh install
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: Can not send/recieve Emails
  • Quote

Post by jgriggs79 » Thu Nov 14, 2013 10:53 pm

Still did not start
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: Can not send/recieve Emails
  • Quote

Post by skid » Fri Nov 15, 2013 9:31 am

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
Top


Post Reply
  • Print view

15 posts
  • 1
  • 2
  • Next

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password