[Dovecot] Mail error in log
Hi All,
I am getting the following in the mail error log
deliver(julie): safe_mkstemp(/home/julie/.temp.geomail.10443.) failed: Permission denied
This is correct julie does not have access to write to her home directory
Julie is a system user who is chrooted so her home is owned by root, this is for when she logs in via sftp to retrieve files she can only access folders below her home.
I am using Maildir and julie does have access to ~Maildir, is there any reason why deliver is attempting to use her user directory and not her Maildir?
Cheers
Ian
On 2010-08-31 10:30 AM, Ian macdonald ianmac51@gmail.com wrote:
I am using Maildir and julie does have access to ~Maildir, is there any reason why deliver is attempting to use her user directory and not her Maildir?
Did you assign her a 'home' directory?
What version of dovecot? dovecot -n output?
--
Best regards,
Charles
On Tue, Aug 31, 2010 at 3:35 PM, Charles Marcus CMarcus@media-brokers.com wrote:
On 2010-08-31 10:30 AM, Ian macdonald ianmac51@gmail.com wrote:
I am using Maildir and julie does have access to ~Maildir, is there any reason why deliver is attempting to use her user directory and not her Maildir?
Did you assign her a 'home' directory?
What version of dovecot? dovecot -n output?
--
Best regards,
Charles
Hi,
Yes she has a home directory sorry not being clear, all mail users have a home of the format /home/user and mail is in /home/user/Maildir it is her home directory that is owned by root
dovecot -n below
cheers
Ian
# OS: Linux 2.6.32-24-server x86_64 Ubuntu 10.04.1 LTS ext3 log_timestamp: %Y-%m-%d %H:%M:%S protocols: imaps pop3s ssl_cert_file: /etc/ssl/certs/ssl-cert-dove.pem ssl_key_file: /etc/ssl/private/ssl-cert-dove.key login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_privileged_group: mail mail_location: maildir:/home/%u/Maildir mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): deleted_to_trash acl imap_acl mail_plugins(imap): deleted_to_trash acl imap_acl mail_plugins(pop3): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: shared separator: / prefix: shared/%%u/ location: maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%u list: yes lda: postmaster_address: ianmac51@gmail.com mail_plugins: acl auth default: passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 plugin: deleted_to_trash_folder: Trash acl: vfile acl_shared_dict: file:/var/lib/dovecot/shared-mailboxes.db
On Tue, 2010-08-31 at 16:11 +0100, Ian macdonald wrote:
On Tue, Aug 31, 2010 at 3:35 PM, Charles Marcus CMarcus@media-brokers.com wrote:
On 2010-08-31 10:30 AM, Ian macdonald ianmac51@gmail.com wrote:
I am using Maildir and julie does have access to ~Maildir, is there any reason why deliver is attempting to use her user directory and not her Maildir?
If you tell Dovecot a user's home directory, Dovecot expects to be able to use it.
userdb: driver: passwd
One of these should work (in preferred order):
userdb passwd { args = home= }
userdb passwd { args = home }
userdb passwd { args = home=/home/%u/Maildir }
participants (3)
-
Charles Marcus
-
Ian macdonald
-
Timo Sirainen