Hi all.
I'm trying to setting up an OpenSMTPd mail server (under a jail). Here's my /usr/local/etc/mail/smtpd.conf:
When I do a
When I do a
However, when I do a
In my /var/log/maillog, this is what I got:
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,
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,