[Dovecot] LDA Problem

Dumitru Negara dumitru at itcnetworks.ro
Wed May 24 10:31:12 EEST 2006


Quotation from http://www.postfix.org/postconf.5.html#mailbox_command

mailbox_command (default: empty)

Optional external command that the local(8) delivery agent should use 
for mailbox delivery. The command is run with the user ID and the 
primary group ID privileges of the recipient. Exception: command 
delivery for root executes with $default_privs privileges. This is not a 
problem, because 1) mail for root should always be aliased to a real 
user and 2) don't log in as root, use "su" instead.

default_privs (default: nobody)

The default rights used by the local(8) delivery agent for delivery to 
external file or command. These rights are used when delivery is 
requested from an aliases(5) file that is owned by root, or when 
delivery is done on behalf of root. DO NOT SPECIFY A PRIVILEGED USER OR 


1. I recommend you to make an mail alias to root account.
Edit /etc/aliases and add a line like this:
root: somerealuser
Save changes and run command newaliases.

2. Try to change access rights on /var/mail to 777. This should solve 
"Permission denied" problem.


Alexander Dreweke wrote:
> Hi
>> Maybe this is not important, but I mistyped this line.
>> Should be mailbox_command = /usr/lib/dovecot/deliver
>> instead of mailbox_command =/usr/lib/dovecot/deliver
>> Don't forget to reload postfix config after changes.
> I've checked the config line again and reloaded the postfix server.
>> And you should put correct path to deliver instead of 
>> /usr/lib/dovecot/deliver. This is default location on 
>> my Debian server.
> On my Debian server too. :-)
> Ok. Now postfix finds dovecot deliver (juhuuu) thanks a lot. But another problem arose. :( I get the following error messages:
> postfix/local[2051]: BD01D154E5C5: to=<root>, orig_to=<root>, relay=local, delay=20703, status=deferred (temporary failure)
> deliver: mkdir(/var/mail/nobody/cur) failed: Permission denied
> deliver: stat(/root/.dovecot.sieve) failed: Permission denied
> deliver: mkdir(/var/mail/nobody/cur) failed: Permission denied
> For testig purpose I replaced the /usr/lib/dovecot/deliver program with a shell script that shows me the given parameters and the set environment:
> MAIL_CONFIG=/etc/postfix
> SENDER=root at domain.ca
> RECIPIENT=root at domain.ca
> SHELL=/bin/bash
> USER=root
> LOCAL=root
> PATH=/usr/bin:/bin
> PWD=/var/spool/postfix
> DOMAIN=domain.ca
> HOME=/root
> LOGNAME=root
> So it seems that all necessary environment variables are set by postfix. But then I can't understand why deliver tries to create /var/mail/nobody instead of /var/mail/root.
> Can you help me with this one too?
> cu
>   Alexander

More information about the dovecot mailing list