I've been trying to get dovecot working with postfix with virtual domain setting. I noticed that if I started dovecot with "sudo /usr/sbin/dovecot", everything would work fine. But if I started with "sudo /etc/init.d/dovecot start", I would get the following permission error. I checked "ps -ef | grep dovecot" and didn't find anything different. Sep 29 16:54:35 localhost imap-login: Login: xyz at example.com [::ffff: 192.168.0.4 <http://192.168.0.4>] Sep 29 16:54:36 localhost imap(xyz at example.com): mkdir_parents(/var/spool /virtual_mailboxes/example.com/xyz/.imap/INBOX) failed: Permission denied Here's the directory for storing virtual domain email. [localhost ~]$ sudo ls -al /var/spool/virtual_mailboxes/example.com total 24 drwx------ 3 vuser vuser 4096 Sep 29 16:43 . drwxrwxr-x 3 root mail 4096 Sep 21 21:57 .. drwx------ 3 vuser vuser 4096 Sep 29 16:55 xyz [localhost ~]$ sudo ls -al /var/spool/virtual_mailboxes/example.com/xyz total 32 drwx------ 3 vuser vuser 4096 Sep 29 16:55 . drwx------ 3 vuser vuser 4096 Sep 29 16:43 .. -rw------- 1 vuser vuser 1209 Sep 29 19:10 Inbox -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20050929/dee7f632/attachment-0001.html>
Is it possible that dovecot came with your system and you have actually two dovocots on your system. Then each one of them is using different config file and thats why its working and not working depending on which one you start. Mike ----- Original Message ----- From: Sam Fung To: dovecot at dovecot.org Sent: Thursday, September 29, 2005 11:29 PM Subject: [Dovecot] sudo /etc/init.d/dovecot start doesn't work I've been trying to get dovecot working with postfix with virtual domain setting. I noticed that if I started dovecot with "sudo /usr/sbin/dovecot", everything would work fine. But if I started with "sudo /etc/init.d/dovecot start", I would get the following permission error. I checked "ps -ef | grep dovecot" and didn't find anything different. Sep 29 16:54:35 localhost imap-login: Login: xyz at example.com [::ffff:192.168.0.4] Sep 29 16:54:36 localhost imap( xyz at example.com): mkdir_parents(/var/spool /virtual_mailboxes/example.com/xyz/.imap/INBOX) failed: Permission denied Here's the directory for storing virtual domain email. [localhost ~]$ sudo ls -al /var/spool/virtual_mailboxes/example.com total 24 drwx------ 3 vuser vuser 4096 Sep 29 16:43 . drwxrwxr-x 3 root mail 4096 Sep 21 21:57 .. drwx------ 3 vuser vuser 4096 Sep 29 16:55 xyz [localhost ~]$ sudo ls -al /var/spool/virtual_mailboxes/example.com/xyz total 32 drwx------ 3 vuser vuser 4096 Sep 29 16:55 . drwx------ 3 vuser vuser 4096 Sep 29 16:43 .. -rw------- 1 vuser vuser 1209 Sep 29 19:10 Inbox -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20050930/a0512988/attachment-0001.html>
On Thu, 2005-09-29 at 20:29 -0700, Sam Fung wrote:> I've been trying to get dovecot working with postfix with virtual > domain setting. I noticed that if I started dovecot with > "sudo /usr/sbin/dovecot", everything would work fine. But if I > started with "sudo /etc/init.d/dovecot start", I would get the > following permission error. I checked "ps -ef | grep dovecot" and > didn't find anything different.Most likely SELinux problem. Turn it off or fix its configuration. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20051001/0565b378/attachment.bin>
Reasonably Related Threads
- Virtual Users and permission denied on POP3 Authentication - cur directory
- Upgrade Question about mail_location
- dovecot and virtual mailbox - suggestions please
- Dovecot service needs a second restart after boot - euid is not dir owner
- Virtual user and post-login 2.0.13