OpenSMTPd not allowed to deliver to: root

Hi all.

I'm trying to setting up an OpenSMTPd mail server (under a jail). Here's my /usr/local/etc/mail/smtpd.conf:
Code:
listen on localhost

action "local" maildir 
action "relay" relay host smtp://192.168.1.10

match for local action "local"
match from local for any action "relay"

When I do a echo "test" | mail -s "subject" user@mydomain.tld, the mail is sent.
When I do a echo "test" | mail -s "subject" local_user, the mail is sent.
However, when I do a echo "test" | mail -s "subject" root, the mail is not sent:

In my /var/log/maillog, this is what I got:
Code:
stat=Error (permission denied: not allowed to deliver to: root

Any ideas? As you can see, my /usr/local/etc/mail/smtpd.conf has two lines, one for local/maildir, and the other one with a relay.

Thanks a lot.

Regards,
 
Ok, I had to replace this:
Code:
action "local" maildir

By this:
Code:
action "local" mbox
Someone could explain to me?

My /root folder:
Code:
drwxr-x---   2 root wheel   10 Jan 24 15:33 root/

My /home folder:
Code:
drwxr-xr-x  3 local_user local_user 10 Jan 24 15:24 local_user/

They are writable only for the owner.
 
Back
Top