Dovecot not running. Help plz!

Hi,

I just installed dovecut on opensuse and I cannot get it running; I can’t get the status to say Active: running.
It currently is on Active: failed. I haven’t done anything, just installed it and ran service dovecot start to try to get it up.

Does anyone have any tips ?

Thanks

Alex

Every help request must include your openSUSE version, desktop used and from what source you installed dovecut. openSUSE 13.1 YaST default repos do not include the dovecut email server software package and the program seems to be aimed for debian systems though they mention openSUSE. I have never used it before and know nothing about it. The added info can help us find our way here perhaps.

Thank You,

Oops! Sorry about that!

openSUSE 13.1 (x86_64)
VERSION = 13.1
CODENAME = Bottle

I’m running GNOME and I installed dovecut (2.1.17-2.1.2) with YAST, I also tried before with zypper and I got the same problem (so I since removed it and reinstalled with YAST).
There are other people in my Linux class who have installed it the same way on the same system (as far as I know) and it is running for them.

Let me know if I forgot anything.

Thanks

Alex

On 2013-11-21 23:16, cleomenes1999 wrote:
>
> Hi,
>
> I just installed dovecut on opensuse and I cannot get it running; I
> can’t get the status to say Active: running.

What does status say exactly? It normally prints several lines of info…

> It currently is on Active: failed. I haven’t done anything, just
> installed it and ran service dovecot start to try to get it up.
>
> Does anyone have any tips ?

Read the manual and configure it? {smile} :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

This is the exact output:

opensuse11:/etc/dovecot/conf.d # service dovecot status
dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/usr/lib/systemd/system/dovecot.service; disabled)
Active: failed (Result: exit-code) since Thu 2013-11-21 17:06:27 EST; 1h 38min ago
Process: 3142 ExecStart=/usr/sbin/dovecot -F (code=exited, status=84)
Main PID: 3142 (code=exited, status=84)

Nov 21 17:06:27 opensuse11 systemd[1]: Starting Dovecot IMAP/POP3 email server…
Nov 21 17:06:27 opensuse11 systemd[1]: Started Dovecot IMAP/POP3 email server.
Nov 21 17:06:27 opensuse11 dovecot[3142]: Fatal: execv(/usr/bin/doveconf) failed: Permission denied
Nov 21 17:06:27 opensuse11 systemd[1]: dovecot.service: main process exited, code=exited, status=84/n/a
Nov 21 17:06:27 opensuse11 systemd[1]: Unit dovecot.service entered failed state.

Thanks

Alex

“Read the manual and configure it? {smile} :-)”

I have configured it, I’ve tried every which way followed every instruction and still nothing.
The thing is it should say “Running” right after you install and enable it, like everyone else in my class (well almost everyone, a few others have the same issue).

Alex

If you could open up terminal and run this command:

zypper repos -u

Copy the result and post it in you reply message. Be sure to highlight just the copied text and press the code # tag button to prevent from being reformatting, which makes it hard to read. When you use preview it looks like the code block shown above.

Thank You,

Here it is:

opensuse11:/etc/dovecot/conf.d # zypper repos -u
# | Alias                     | Name                               | Enabled | Refresh | URI                                                            
--+---------------------------+------------------------------------+---------+---------+----------------------------------------------------------------
1 | repo-debug                | openSUSE-13.1-Debug                | No      | Yes     | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ 
2 | repo-debug-update         | openSUSE-13.1-Update-Debug         | No      | Yes     | http://download.opensuse.org/debug/update/13.1/                
3 | repo-debug-update-non-oss | openSUSE-13.1-Update-Debug-Non-Oss | No      | Yes     | http://download.opensuse.org/debug/update/13.1-non-oss/        
4 | repo-non-oss              | openSUSE-13.1-Non-Oss              | Yes     | Yes     | http://download.opensuse.org/distribution/13.1/repo/non-oss/   
5 | repo-oss                  | openSUSE-13.1-Oss                  | Yes     | Yes     | http://download.opensuse.org/distribution/13.1/repo/oss/       
6 | repo-source               | openSUSE-13.1-Source               | No      | Yes     | http://download.opensuse.org/source/distribution/13.1/repo/oss/
7 | repo-update               | openSUSE-13.1-Update               | Yes     | Yes     | http://download.opensuse.org/update/13.1/                      
8 | repo-update-non-oss       | openSUSE-13.1-Update-Non-Oss       | Yes     | Yes     | http://download.opensuse.org/update/13.1-non-oss/              

Thanks!

On 2013-11-22 00:36, cleomenes1999 wrote:
>
> Oops! Sorry about that!
>
> openSUSE 13.1 (x86_64)
> VERSION = 13.1
> CODENAME = Bottle
>
> I’m running GNOME and I installed dovecut (2.1.17-2.1.2) with YAST, I
> also tried before with zypper and I got the same problem (so I since
> removed it and reinstalled with YAST).

Are you sure you installed “dovecut”? Because I can not find it.

> There are other people in my Linux class who have installed it the same
> way on the same system (as far as I know) and it is running for them.

ROTFL!


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

lol dovecot wtv, yes i installed the right one

So I have the same repos and when I search for dovecot I do not find it. I am missing some detail on its installation. If I can’t install it, I can not with its operation.

Thank You,

Hmmm…I don’t know what other info I can provide… you can install it with YAST, just search for dovecot or type zypper install dovecot21 if thats what you mean…

On 2013-11-22 00:56, cleomenes1999 wrote:
>
> “Read the manual and configure it? {smile} :-)”
>
> I have configured it, I’ve tried every which way followed every
> instruction and still nothing.
> The thing is it should say “Running” right after you install and enable
> it, like everyone else in my class (well almost everyone, a few others
> have the same issue).

The thing is, you are using the newest release, done this week, of
openSUSE 13.1. There are problems yet to be found and polished or
corrected, there are bugs lurking around. You people should have used 12.3.

Yes, you should have said you installed dovecot21, that’s the correct
package name. Other people here may also be using an older version.

Now.

Your problem is this one:


> Nov 21 17:06:27 opensuse11 dovecot[3142]: Fatal: execv(/usr/bin/doveconf) failed: Permission denied

Do you notice the box? I’m using code tags. It is important you use code
tags when posting computer generated text so that the forum software
does not alter it. You get it using the ‘#’ button in the editor.

Now, I’m familiar with dovecot as I use it daily. But I don’t use
openSUSE 13.1 yet, so you have got to be me eyes. I can guess at things,
but I’m not at your keyboard to find out things.

So, first, what are the permissions of that file? (ls -l …). Post it
here in a code tags block.

What do you see in the syslog? In Linux, as services don’t have a window
or icon to click at and ask things, where the program says whatever, the
programs (daemons) write whatever happens to the syslog.

Syslog is also a service which you can configure, dedicated to writing
those messages to files.

dovecot is one of the possible mail daaemons, so it writes things via
syslog to… /var/log/mail.

Now, you open a terminal and type:


# tailf /var/log/mail

and then restart the dovecot daemon.


# systemctl restart dovecot.service

and watch what messages go by in the mail log. Copy it here if you don’t
find the reason.

(Your teacher should be explaining you all this. If he did not already,
he is a bad Linux teacher. I should get HIS money for doing this…)

Suggestion: try stopping apparmor.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I just upgraded from 12.3 to 13.1 (by using “zypper dup”) and also observed the error messages as the author of the original post. The journal log after trying to restart dovecot is like


Nov 22 15:21:29 odysseus systemd[1]: Starting Dovecot IMAP/POP3 email server...
Nov 22 15:21:29 odysseus systemd[1]: Started Dovecot IMAP/POP3 email server.
Nov 22 15:21:29 odysseus systemd[1]: dovecot.service: main process exited, code=exited, status=84/n/a
Nov 22 15:21:29 odysseus systemd[1]: Unit dovecot.service entered failed state.
Nov 22 15:21:29 odysseus kernel: type=1400 audit(1385130089.675:34): apparmor="DENIED" operation="exec" parent=1 profile="/usr/sbin/dovecot" name="/usr/bin/doveconf" pid=8779 comm="dovecot" requested_mask="x" denied_..."x" fsuid=0 ouid=0
Nov 22 15:21:29 odysseus dovecot[8779]: Fatal: execv(/usr/bin/doveconf) failed: Permission denied

So, it is a problem with apparmor. I was able to solve the problem for me by removing the AppArmor profile for dovecot and simply reinstalling the package apparmor-profiles to get a fresh profile.

Best Regards

You should report this at http://bugzilla.novell.com/ (same username/password as here).

Thanks!

That was it, I just removed and then reinstalled apparmor-profiles and it worked. Thanks a lot!!!

I might as well necropost here…

Dovecot under 13.1, with a fresh dovecot install, fails with:

samwise /root# dovecot
Fatal: execv(/usr/bin/doveconf) failed: Permission denied


Nothing shows up in /var/log/mail so I think it’s execv that’s failing. What’s happening here?

Probably AppArmor blocking.

Does it start when you stop AppArmor?

sudo /sbin/rcapparmor stop

If that helps, run “sudo /usr/sbin/logprof” and allow the things dovecot needs.

Or as suggested by the previous posts, removing and re-installing apparmor-profiles might help as well.

An updated AppArmor profile for dovecot will be part of the pending AppArmor update as well (should be released soon), along with an updated/fixed profile for Samba.

On 2014-01-29 19:06, RBEmerson wrote:
>
> I might as well necropost here…

Mmmm.

> dovecot Wrote:
>> Dovecot can simply be started by running dovecot as root. If there are
>> any problems, they’re usually written to terminal, but they may also be
>> written to [/var/log/mail] as well.
> Dovecot under 13.1, with a fresh dovecot install, fails with:
>
> Code:
> --------------------
> samwise /root# dovecot
> Fatal: execv(/usr/bin/doveconf) failed: Permission denied
>
>
> --------------------

Well, the proper way to start it is:


systemctl start dovecot.service
systemctl status dovecot.service


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Deja vu all over…


samwise /root# systemctl start dovecot.service
samwise /root# systemctl status dovecot.service
dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/usr/lib/systemd/system/dovecot.service; disabled)
   Active: failed (Result: exit-code) since Wed 2014-01-29 15:32:21 EST; 3s ago
  Process: 5345 ExecStart=/usr/sbin/dovecot -F (code=exited, status=84)
 Main PID: 5345 (code=exited, status=84)

Jan 29 15:32:21 samwise systemd[1]: Starting Dovecot IMAP/POP3 email server...
Jan 29 15:32:21 samwise systemd[1]: Started Dovecot IMAP/POP3 email server.
Jan 29 15:32:21 samwise dovecot[5345]: **Fatal: execv(/usr/bin/doveconf) fail...ed**
Jan 29 15:32:21 samwise systemd[1]: dovecot.service: main process exited, c.../a
Jan 29 15:32:21 samwise systemd[1]: Unit dovecot.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.